Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!nrl-cmf!cmcl2!adm!xadmx!rbj@nav.icst.nbs.gov From: rbj@nav.icst.nbs.gov (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: a.out 1> file.out 2> file.err in cs Message-ID: <17415@adm.BRL.MIL> Date: 2 Nov 88 16:23:25 GMT Sender: news@adm.BRL.MIL Lines: 22 From: "Richard A. O'Keefe" 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 or Careful with that VAX Eugene!