X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: Shell scripts on FAT volumes
Date:  Tue, 21 Aug 2007 16:15:16 +0100
Lines: 30
Message-ID: <faevi5$q26$2@sea.gmane.org>
References:  <faetbb$q26$1@sea.gmane.org> <ca5781c80708210742o34466f8xf334892a0a7a898e@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset="utf-8"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
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

* yitzle (Tue, 21 Aug 2007 10:42:24 -0400)
> On 8/21/07, Thorsten Kampe <thorsten@thorstenkampe.de> wrote:
> > I just noticed (on two different Windows XP) Cygwin installation that
> > Shebang shell scripts are not executable on FAT32 volumes (like usb
> > drives). The mount man page says "Normally, files ending in certain
> > extensions (.exe, .com,  .bat,  .cmd) are  assumed  to be executable.
> > Files whose first two characters begin with  '#!' are also considered
> > to be executable."
>
> I created test.sh on my USB key (FAT):
> 
> > cat > test.sh << END
> #!/usr/bin/bash
> echo "Test!"
> END
> 
> Then I did
> > chmod 700 test.sh
> 
> Then I ran it:
> > ./test.sh
> 
> Worked fine.

Hm yeah, I was unprecise. Executing works for me, too. But tab 
completion doesn't or something as simple as "which startkde" for 
scripts in $PATH. Also in start scripts like startxwin.bat I can't 
simply put "startkde", I have to say "sh /bin/startkde".

Thorsten


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

