delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/31/20:08:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,URI_HEX
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <1351606847888-94081.post@n5.nabble.com>
References: <1351606847888-94081 DOT post AT n5 DOT nabble DOT com>
Date: Tue, 30 Oct 2012 12:30:44 -0700
Message-ID: <CAM-A7MDos2AG6m4U3BeS610tX3VF0M4SOOJCGnQZc=KBgbUpGA@mail.gmail.com>
Subject: Re: Command line arguments
From: Wynfield Henman <wynfield AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Arguments do get passed.  So it seems you're doing something wrong.
You can't get any sensible answer without showing us exactly what you
command line look like.

On Tue, Oct 30, 2012 at 7:20 AM, chesschi <chesschi AT gmail DOT com> wrote:
> In cygwin, is it possible to pass arguments to a shell script file? I have
> installed the latest cygwin with default packages. I found that argument
> zero ($0) is correct. However, the number of arguments always returns zero
> ($#= 0) and $1, $2... are all null even though I did pass arguments.
>
> Any idea? Thanks a lot!
>
>
>
> --
> View this message in context: http://cygwin.1069669.n5.nabble.com/Command-line-arguments-tp94081.html
> Sent from the Cygwin list mailing list archive at Nabble.com.
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019