FW: cygwin 1.7.13-1: can't execute shell scripts on samba share

Michel Bardiaux MBardiaux@mediaxim.be
Mon Apr 23 12:59:00 GMT 2012


Sorry, forgot to change the recipient.

-----Original Message-----

> [snip]
>
>> lgiambro@lorien ~
>> $ cat len.sh
>> #!/bin/sh
>> echo it works
>
> And man sh states " --norc Do  not  read  and  execute the personal 
> initialization file ~/.bashrc if the
>              shell is interactive.  This option is on by default if 
> the shell  is  invoked
>              as sh."
> Which eliminates bashrc as a possible culprit.

> bash as sh will use ~/.profile in interactive and -login mode.  

Yes, I forgot about .profile. The OP should check his .profile does nothing that could cause it to fail when the current directory is a samba share.

> My guess is the remote disk handler is causing Cygwin to not see the file as executable.

Then why would getfacl, and ls, say it *is* executable? (In the OP case; in my case you are absolutely right).



More information about the Cygwin mailing list