Oh yeah, I wouldn’t use that for scripts. I wouldn’t use zsh for scripts either.
I mean, I believe, it’s generally compatible with bash, but just throwing a shebang like #!/bin/sh or #!/bin/bash into the first line of the script will make it execute with sh or bash, even when you run it from zsh.
Interesting, I might have to check that out someday.
Though when I write scripts, I’m not a fan of blind folder navigation like that, there’s a good reason for the pushd and popd script commands.
Oh yeah, I wouldn’t use that for scripts. I wouldn’t use
zsh
for scripts either.I mean, I believe, it’s generally compatible with
bash
, but just throwing a shebang like#!/bin/sh
or#!/bin/bash
into the first line of the script will make it execute withsh
orbash
, even when you run it fromzsh
.