Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

16
  • When I ps x I get -csh. Does that mean I'm not running tcsh, or does that not tell me anything? Commented May 7, 2014 at 19:13
  • 1
    Sorry, my bad, $var:q was already available in csh. I would still advise against using (t)csh for scripting though. Commented May 7, 2014 at 19:17
  • No idea why you took the disclaimer out of your answer, it was actually pretty good advice. Commented May 7, 2014 at 19:23
  • I'm getting if: Badly formed number. I'm using it like so: if ($mystr:q !~ *'\ '*) then. Mind you can't see the newline... Commented May 7, 2014 at 19:24
  • @2rs2ts, try with the updated answer. Commented May 7, 2014 at 19:45