X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Received: by 10.14.183.67 with SMTP id p43mr56989367eem.10.1363165389318; Wed, 13 Mar 2013 02:03:09 -0700 (PDT) Message-ID: <514040CC.8040607@gmail.com> Date: Wed, 13 Mar 2013 10:03:08 +0100 From: Bob Brusa Reply-To: bob DOT brusa AT gmail DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: cygwin-discuss Subject: bash script under cygwin fails to recognize simple commands Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 Hi, it seems I miss something. The primitive script t1.sh #!/bin/bash echo "script running" ls -l echo "script terminating" exit 0 produces a rather unexpected result when running it from cygwin terminal: rwb AT w500 ~ $ ./t1.sh script running ls: unknown option -- „ls --help“ gibt weitere Informationen. script terminating : Ein numerischer Parameter ist erforderlich. rwb AT w500 ~ Why is this? Thanks for advice - Bob -- 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