Re: #!/bin/sh vs #!/bin/bash filename expansion after

2020-08-12 Thread Ken Brown via Cygwin
On 8/12/2020 1:54 PM, Morten Kjærulff via Cygwin wrote: Hi, This script: #!/bin/sh echo hello >hello.txt ls -l cat hell* cat < hell* gives me: $ ./t.sh total 2 -rw-r--r-- 1 vp01mkf Domain Users 6 Aug 12 19:51 hello.txt -rwxr-xr-x 1 vp01mkf Domain Users 60 Aug 12 19:51 t.sh hello ./t.sh: line

Re: #!/bin/sh vs #!/bin/bash filename expansion after

2020-08-12 Thread Eliot Moss
On 8/12/2020 4:07 PM, Andrey Repin wrote: Greetings, Morten Kjærulff! This script: #!/bin/sh echo hello >hello.txt ls -l cat hell* cat < hell* gives me: $ ./t.sh total 2 -rw-r--r-- 1 vp01mkf Domain Users 6 Aug 12 19:51 hello.txt -rwxr-xr-x 1 vp01mkf Domain Users 60 Aug 12 19:51 t.sh h

Re: #!/bin/sh vs #!/bin/bash filename expansion after

2020-08-12 Thread Andrey Repin
Greetings, Morten Kjærulff! > This script: > #!/bin/sh > echo hello >hello.txt > ls -l > cat hell* > cat < hell* > gives me: > $ ./t.sh > total 2 > -rw-r--r-- 1 vp01mkf Domain Users 6 Aug 12 19:51 hello.txt > -rwxr-xr-x 1 vp01mkf Domain Users 60 Aug 12 19:51 t.sh > hello > ./t.sh: line 5: hell

Re: #!/bin/sh vs #!/bin/bash filename expansion after

2020-08-12 Thread Eliot Moss
On 8/12/2020 1:54 PM, Morten Kjærulff via Cygwin wrote: Hi, This script: #!/bin/sh echo hello >hello.txt ls -l cat hell* cat < hell* gives me: $ ./t.sh total 2 -rw-r--r-- 1 vp01mkf Domain Users 6 Aug 12 19:51 hello.txt -rwxr-xr-x 1 vp01mkf Domain Users 60 Aug 12 19:51 t.sh hello ./t.sh: line

#!/bin/sh vs #!/bin/bash filename expansion after

2020-08-12 Thread Morten Kjærulff via Cygwin
Hi, This script: #!/bin/sh echo hello >hello.txt ls -l cat hell* cat < hell* gives me: $ ./t.sh total 2 -rw-r--r-- 1 vp01mkf Domain Users 6 Aug 12 19:51 hello.txt -rwxr-xr-x 1 vp01mkf Domain Users 60 Aug 12 19:51 t.sh hello ./t.sh: line 5: hell*: No such file or directory But if I change line