NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/22846
The following reply was made to PR bin/22846; it has been noted by GNATS.
From: Sean Boudreau <seanb%qnx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/22846
Date: Sun, 15 Nov 2009 19:05:30 -0500
The previous commit breaks the following scenario
# cat ./scr
onexit()
{
rm /tmp/ksh_testfile[12]
}
bomb()
{
echo $1
exit 1
}
trap onexit EXIT
touch /tmp/ksh_testfile1 /tmp/ksh_testfile2 || bomb "couldn't create
/tmp/ksh_testfile\*"
FOO="/tmp/ksh_testfile[1-2]"
RES=$(echo $FOO)
EXPECT="/tmp/ksh_testfile1 /tmp/ksh_testfile2"
if [ "${RES}" != "${EXPECT}" ]; then
bomb "got: \"${RES}\" expected \"${EXPECT}\""
else
echo "Success"
fi
# ksh ./scr
got: "/tmp/ksh_testfile[1-2]" expected "/tmp/ksh_testfile1 /tmp/ksh_testfile2"
Home |
Main Index |
Thread Index |
Old Index