Skip to main content

Thread: zsh will not run scripts as /bin/bash


been using zsh while , loving it. ran problem today. following script errors out if run zsh default shell:

code:
#!/bin/bash    v_build() {  	echo "the file $1"  }    export -f v_build  find . -maxdepth 1 -type f | parallel v_build
output:
code:
% ./test   zsh:1: command not found: v_build  zsh:1: command not found: v_build  zsh:1: command not found: v_build  zsh:1: command not found: v_build
if switch user has bash default shell, same script runs fine:

code:
$ ./test  file ./test  file ./01.jpg  file ./02.jpg  file ./03.jpg
love understand have incorrectly configured. seems zsh ignoring shebang telling use /bin/bash shell run script.

quote posted graysky view post
.........
love understand have incorrectly configured. seems zsh ignoring shebang telling use /bin/bash shell run script.
the paths different.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] zsh will not run scripts as /bin/bash


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?