Page MenuHomePhabricator
Paste P12911

bashisms - z.sh
ActivePublic

Authored by Dzahn on Oct 3 2020, 12:53 AM.
Tags
None
Referenced Files
F32371882: bashisms - z.sh
Oct 3 2020, 12:53 AM
Subscribers
None
script ./ori/.z.sh does not appear to have a #! interpreter line;
you may get strange results
possible bashism in ./ori/.z.sh line 46 (bash arrays, ${name[0|*|@]}):
for exclude in "${_Z_EXCLUDE_DIRS[@]}"; do
possible bashism in ./ori/.z.sh line 51 ($RANDOM):
local tempfile="$datafile.$RANDOM"
possible bashism in ./ori/.z.sh line 109 (${foo:3[:1]}):
-*) local opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in
possible bashism in ./ori/.z.sh line 116 (${foo:3[:1]}):
esac; opt=${opt:1}; done;;
possible bashism in ./ori/.z.sh line 223 (bash arrays, ${name[0|*|@]}):
[[ -n "${precmd_functions[(r)_z_precmd]}" ]] || {
possible bashism in ./ori/.z.sh line 223 (alternative test command ([[ foo ]] should be [ foo ])):
[[ -n "${precmd_functions[(r)_z_precmd]}" ]] || {
possible bashism in ./ori/.z.sh line 230 (read with option other than -r):
read -l compl
possible bashism in ./ori/.z.sh line 234 (complete):
elif complete >/dev/null 2>&1; then
possible bashism in ./ori/.z.sh line 237 (complete):
complete -o filenames -C '_z --complete "$COMP_LINE"' ${_Z_CMD:-z}
possible bashism in ./ori/.z.sh line 240 (<<< here string):
grep "_z --add" <<< "$PROMPT_COMMAND" >/dev/null || {
possible bashism in ./ori/.z.sh line 241 ($'...' should be "$(printf '...')"):
PROMPT_COMMAND="$PROMPT_COMMAND"$'\n''_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null;'