X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.5 required=5.0 tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_HOSTKARMA_YE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: sourceware.org Date: Tue, 30 Oct 2012 07:20:47 -0700 (PDT) From: chesschi To: cygwin AT cygwin DOT com Message-ID: <1351606847888-94081.post@n5.nabble.com> Subject: Command line arguments MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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