comparing bash1 and bash2 with the script below, the only difference is
that the ${1+"$1"} form does glob for bash1. bash2 doesn't glob
for any of the cases below. --posix makes no difference.
#!/bin/bash
echo /bin/bash
echo "${1+"$1"}"
echo ${1+"$1"} # bash1 globs bash2 doesn't.
echo "${1+$1}"
i assume that qmail has a fair number of linux users so this may be an
issue. bash is a fair sized executable (on my setup about 15 times
larger than qlist) would it be worthwhile to rewrite qlist2 in c?
(alternatively does anyone actually use qlist in its raw form, would it
be worth changing the interface?)
stephen
that the ${1+"$1"} form does glob for bash1. bash2 doesn't glob
for any of the cases below. --posix makes no difference.
#!/bin/bash
echo /bin/bash
echo "${1+"$1"}"
echo ${1+"$1"} # bash1 globs bash2 doesn't.
echo "${1+$1}"
i assume that qmail has a fair number of linux users so this may be an
issue. bash is a fair sized executable (on my setup about 15 times
larger than qlist) would it be worthwhile to rewrite qlist2 in c?
(alternatively does anyone actually use qlist in its raw form, would it
be worth changing the interface?)
stephen