a.out 1> file.out 2> file.err in cs

Jean-Pierre Radley jpr at dasys1.UUCP
Sun Nov 6 11:08:59 AEST 1988


In article <596 at quintus.UUCP> ok at quintus.UUCP (Richard A. O'Keefe) writes:
>Not that I'm defending the C-shell:  why are the "clobber ok" forms
>>!, >&!, >>! and >>&! when ! is the history character?  Consider
>	echo foo baz			# echos "foo baz"
>	echo ugh >!ec			# echos "ugh foo baz" to "echo"
>A straightforward reading of the section "I/O Redirection" in the Csh
>manual page suggests that the second command should echo "ugh" to a
>file called "ec".  How _does_ one use these forms?

	echo ugh >!ec		# invokes history search for a command
				# starting with the letters "ec"

	echo ugh >! ec		# if noclobber is set, will allow over-
				# writing an existing file called "ec"

I much prefer to redefine the history characters to be "," for history
invocation (which also avoids having to escape bang-pathnames), and "="
for string substitution.

Or strings substitution, in O'Keefe's case. :-)
-- 
Jean-Pierre Radley		Honi soit		jpr at dasys1.UUCP
New York, New York		qui mal			...!hombre!jpradley!jpr
CIS: 76120,1341			y pense			...!hombre!trigere!jpr



More information about the Comp.unix.wizards mailing list