Xref: utzoo comp.unix.questions:8597 comp.unix.wizards:10260 comp.sys.apollo:1218 Path: utzoo!utgpu!water!watmath!clyde!ima!necntc!mit-eddie!rich From: rich@eddie.MIT.EDU (Richard Caloggero) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.sys.apollo Subject: CSH Help -- I don't get it ... Keywords: csh, help, =~ , !~ , why not Message-ID: <9832@eddie.MIT.EDU> Date: 5 Aug 88 20:38:30 GMT Organization: MIT EE/CS Computer Facility, Cambridge, MA Lines: 33 What am I doing wrong? I think the following script should print 'yes' three times. ----- #!/bin/csh set x=stuff_and_more echo try one: if "$x" =~ "stuff*" echo yes echo try two: alias x 'if "$x" =~ "stuff*" echo yes' x echo try three: alias x 'if "$x" =~ "stuff"* echo yes' x ---------- It only prints 'yes' once -- on try three. I'm sure it has something to do with my poor understanding of csh's various quoting conventions. -- -- Rich (rich@eddie.mit.edu). The circle is open, but unbroken. Merry meet, merry part, and merry meet again.