Date: Thu, 18 Sep 1997 05:58:28 -0700 (PDT) From: haible@seagull.cdrom.com To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: haible@ilog.fr Subject: bin/4568: /bin/sh substitution/concatenation bug Message-ID: <199709181258.FAA13606@seagull.cdrom.com> Resent-Message-ID: <199709181300.GAA04050@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4568
>Category: bin
>Synopsis: simple /bin/sh script produces wrong results
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 18 06:00:00 PDT 1997
>Last-Modified:
>Originator: Bruno Haible
>Organization:
ILOG
>Release: FreeBSD 2.2-STABLE i386
>Environment:
>Description:
The following /bin/sh commands
unset LINGUAS
ALL_LINGUAS="en de fr es"
NEW_LINGUAS=
for lang in ${LINGUAS=$ALL_LINGUAS}; do
case "$ALL_LINGUAS" in
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
esac
done
echo $NEW_LINGUAS
print en de fr de fr es
instead of en de fr es
>How-To-Repeat:
Start a sh, then input the above commands.
>Fix:
unknown
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709181258.FAA13606>
