From: John <da_audiophile@yahoo.com>
To: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: zsh will not run scripts as /bin/bash even with #!/bin/bash as the first line
Date: Sat, 24 Nov 2012 17:07:01 -0800 (PST) [thread overview]
Message-ID: <1353805621.95002.YahooMailNeo@web140001.mail.bf1.yahoo.com> (raw)
Been using zsh for a while now and loving it. I ran into a problem today. The following script errors out if run with zsh as my default shell:
#!/bin/bash
v_build() {
echo "The file is $1"
}
export -f v_build
find . -maxdepth 1 -type f | parallel v_build
Output:
% ./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 I switch to a user who has bash as its default shell, the same script runs just fine:
$ ./test
The file is ./test
The file is ./01.jpg
The file is ./02.jpg
The file is ./03.jpg
Love to understand what I have incorrectly configured. It seems like zsh is ignoring the shebang telling it to use /bin/bash as the shell to run the script.
next reply other threads:[~2012-11-25 1:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-25 1:07 John [this message]
2012-11-25 2:41 ` Yichao Yu
2012-11-25 4:22 ` John
2012-11-25 5:05 ` Bart Schaefer
2012-11-25 15:09 ` John
2012-11-25 2:42 ` Kurtis Rader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1353805621.95002.YahooMailNeo@web140001.mail.bf1.yahoo.com \
--to=da_audiophile@yahoo.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).