X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-5.9 required=5.0	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
X-Received: by 10.204.198.3 with SMTP id em3mr7261523bkb.96.1363167493281;        Wed, 13 Mar 2013 02:38:13 -0700 (PDT)
Message-ID: <51404901.1060402@gmail.com>
Date: Wed, 13 Mar 2013 10:38:09 +0100
From: marco atzeri <marco.atzeri@gmail.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: bob.brusa@gmail.com, cygwin@cygwin.com
Subject: Re: bash script under cygwin fails to recognize simple commands
References: <514040CC.8040607@gmail.com> <51404425.5090609@gmail.com> <5140452B.4050501@gmail.com>
In-Reply-To: <5140452B.4050501@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 3/13/2013 10:21 AM, Bob Brusa wrote:
> Am 13.03.2013 10:17, schrieb marco atzeri:
>> On 3/13/2013 10:03 AM, Bob Brusa wrote:
>>> 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@w500 ~
>>> $ ./t1.sh
>>> script running
>>> ls: unknown option --
>>> „ls --help“ gibt weitere Informationen.
>>> script terminating
>>> : Ein numerischer Parameter ist erforderlich.
>>>
>>> rwb@w500 ~
>>>
>>> Why is this? Thanks for advice - Bob
>>>
>>
>>
>> Follow
>>> Problem reports:       http://cygwin.com/problems.html
>>
>> Specifically:
>> "Run cygcheck -s -v -r > cygcheck.out and include that file as an
>> attachment in your report. Please do not compress or otherwise encode
>> the output. Just attach it as a straight text file so that it can be
>> easily viewed. "
>>
> Ok - cygcheck.out attached. Looking forward hearing from you again :-) Bob

No problem on installation, it is just your script with
CRLF line  termination (MS style) instead of LF (unix style)
Convert it with
  "d2u  t1.sh"

and try again

Regards
Marco




--
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

