Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: Variable substitition Message-ID: <8406@star.cs.vu.nl> Date: 3 Dec 90 19:05:27 GMT References: <1990Nov30.092424@cs.utwente.nl> <8393@star.cs.vu.nl> Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 18 In article <8393@star.cs.vu.nl> I wrote: )... )# Instead of ``echo "$foo"'' you could use the portable echo hack: )# )# expr "$foo" : '\(.*\)' Better make that: expr "xxx$foo" : 'xxx\(.*\)' Then you won't get ``expr: syntax error'' if $foo equals `match' or `+' or `-' or... :-( Grrrrr! -- Q: "Is there a newsgroup for astrology/para-normal?" A: "Why don't you consult the stars and find out ??" -- Phil Watson