shebang env sh stopped working with coreutils-8.32-1

Ken Brown kbrown@cornell.edu
Wed Jun 1 13:01:42 GMT 2022


On 6/1/2022 8:33 AM, Daniel Jeliński wrote:
> Hi all,
> As the title says. To reproduce:
> - create a file (test.sh) with the following contents:
> 
> #!/usr/bin/env sh
> echo success
> 
> - make it executable (chmod a+x test.sh)
> - execute (./test.sh)
> 
> With coreutils-8.26-2 the script prints "success". With
> coreutils-8.32-1 and 9.1-1 nothing happens.

Works for me.

$ cat test.sh
#!/usr/bin/env sh
echo success

$ ./test.sh
success

$ cygcheck -cd coreutils
Cygwin Package Information
Package              Version
coreutils            8.32-1

There must be something else going on in your environment.

Ken


More information about the Cygwin mailing list