how to use the -t option in csh
Jonathan I. Kamens
jik at athena.mit.edu
Mon Dec 10 10:38:27 AEST 1990
In article <6145 at alpha.cam.nist.gov>, coleman at cam.nist.gov (Sean Sheridan Coleman X5672) writes:
|> What is the purpose of the -t option in csh and
|> how does one use it. I tryed to use it doing the
|> following:
|>
|> /bin/csh -t "ps ax; cat ~/.login"
|>
|> It just sat there until I enterd a return the second time.
My csh(1) (BSD 4.3) says:
-t A single line of input is read and executed. A `\' may
be used to escape the newline at the end of this line
and continue onto another line.
Note that the input is read *from the standard input*, not from the command
line; you appear to be attempting to use the option as if the input is read
from the command line. For that, I believe what you want to use is the -c
option, not the -t option. Again, from my man page:
-c Commands are read from the (single) following argument
which must be present. Any remaining arguments are
placed in argv.
--
Jonathan Kamens USnail:
MIT Project Athena 11 Ashford Terrace
jik at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.shell
mailing list