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:
output:code:#!/bin/bash v_build() { echo "the file $1" } export -f v_build find . -maxdepth 1 -type f | parallel v_build
if switch user has bash default shell, same script runs fine: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
love understand have incorrectly configured. seems zsh ignoring shebang telling use /bin/bash shell run script.code:$ ./test file ./test file ./01.jpg file ./02.jpg file ./03.jpg
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] zsh will not run scripts as /bin/bash
Ubuntu
Comments
Post a Comment