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

Root Boy Jim rbj at nav.icst.nbs.gov
Thu Nov 3 02:23:25 AEST 1988


   From: "Richard A. O'Keefe" <ok at quintus.uucp>

   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?

Either quote `!' with `\', or follow it with a space.
Reread the section on history substitution.

BTW, the 4.2 BSD manual mentions the solution to the original question,
but for some reason it was dropped from the 4.3 manual. It still lives
in the Sun manual, but is absent from Sequent.

I don't see why sh style redirection couldn't be added as well.

	(Root Boy) Jim Cottrell	(301) 975-5688
	<rbj at nav.icst.nbs.gov> or <rbj at icst-cmr.arpa>
	Careful with that VAX Eugene!



More information about the Comp.unix.wizards mailing list