This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shell scripts on FAT volumes


On 8/21/07, Thorsten Kampe <thorsten@thorstenkampe.de> wrote:
> [Cygwin latest snapshot]
>
> 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."
>
> Is that expected behaviour?
>
>
> Thorsten

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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]