shell bugs

Eric Gisin eric at mks.com
Thu Mar 21 09:32:10 AEST 1991


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.



More information about the Comp.bugs.sys5 mailing list