[Pkg-zsh-devel] Bug#772401: zsh-common: bashism in /bin/sh script
Raphael Geissert
atomo64 at gmail.com
Sat Dec 6 13:56:05 UTC 2014
Package: zsh-common
Severity: minor
Version: 5.0.7-5
User: debian-release at lists.debian.org
Usertags: goal-dash
Hi,
I've ran checkbashisms (from the 'devscripts' package) over the whole
archive and I found that your package has a /bin/sh script that uses a
"bashism".
checkbashisms' output:
> possible bashism in ./usr/share/doc/zsh-common/examples/Misc/c2z line 53
> (alternative test command ([[ foo ]] should be [ foo ])):
> if [[ -o INTERACTIVE ]]; then INTERACT="-i"; fi
> -e 's/!\*:q/"$@"/g' \
> -e 's/\(![:#]*[^'"$T"']*\):q/"\1"/g' \
> -e 's/!\([-0-9][0-9]*\)\(:x\)*/$\2(fc -nl \1)/g' \
> -e 's/\$:x(fc/$=(fc/g' \
> -e 's/![:#]*\([^'"$T"']\)/$==\1/g' \
> -e 's/\$=\(=[^'"$T"']*\):x/$\1/g' \
> -e 's/\$cwd/$PWD/' \
> -e 's/^\([^'"$T"']*\)'"$T"'\(.*\)$/\1 () { \2 }/' \
> /tmp/cz$$.2
> error: ./usr/share/doc/zsh-common/examples/Misc/c2z: Unterminated quoted
> string found, EOF reached. Wanted: <">, opened in line 112
Not using bash (or a Debian Policy compliant shell interpreter that doesn't
provide such an extra feature) as /bin/sh is likely to lead to errors or
unexpected behaviours. Please be aware that dash is the default /bin/sh.
Please closely examine the above output and the script, and determine
what the proper severity of the bug is, and adjust it accordingly. If
it's important or greater please hurry to get this fixed for jessie.
Hints about how to fix bashisms can be found at:
https://wiki.ubuntu.com/DashAsBinSh
Thanks in advance,
Raphael Geissert
More information about the Pkg-zsh-devel
mailing list