Article View: comp.bugs.sys5
Article #364shell bugs
From: Eric Gisin
Date: Wed, 20 Mar 1991 23:32
Date: Wed, 20 Mar 1991 23:32
22 lines
820 bytes
820 bytes
The \ character does not work in the IFS variable.
The System Vr3.2 and Sun OS 4 shells have this bug.
The V7 shell did not. It was probably introduced in the 8-bit clean version.
The following demonstrates the bug.
# echo arguments, one per line
args() {
for _ do echo_r "$_"; done
}
# echo without SysV expansions
echo_r() {
cat <<- .
$*
.
}
IFS='\'
thing='a\b\\c'
args $thing
--> a\b\\c
In System V/386 r3.2, the shell nices all background jobs.
This is unacceptable for non-interactive shells.
Technical Details
Message-ID:
<1991Mar20.233210.7410@mks.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!mks.com!ericShow Full Headers
Complete Article Headers
Newsgroups: comp.bugs.sys5 Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!mks.com!eric From: eric@mks.com (Eric Gisin) Subject: shell bugs Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA Date: Wed, 20 Mar 91 23:32:10 GMT Message-ID: <1991Mar20.233210.7410@mks.com>