Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.shell Subject: Re: how to use the -t option in csh Keywords: usage Message-ID: <1990Dec9.233827.12446@athena.mit.edu> Date: 9 Dec 90 23:38:27 GMT References: <6145@alpha.cam.nist.gov> Sender: news@athena.mit.edu (News system) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 29 In article <6145@alpha.cam.nist.gov>, coleman@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@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710