On Fri, 21 Nov 2003 21:04:43 -0500, Scott W <[EMAIL PROTECTED]> wrote:
> Marty Landman wrote:
> > At 08:40 PM 11/21/2003, Scott W wrote:
> >> So yep, it's doing what you want, the way you wanted to...use
> >> something similar fairly often myself, although note that the
> >> 'current' standard for executing commands is now $(cmd), eg
> >> more $(which apachectl)
> > I get
> > FreeB more $(which apachectl)
> > Illegal variable name.
> > FreeB
> > Maybe I should've mentioned I'm on 4.8, or is there another reason?
> > Marty Landman Face 2 Interface Inc 845-679-9387
> > Sign On Required: Web membership software for your site
> > Make a Website: http://face2interface.com/Home/Demo.shtml
> D'oh, my mistake- you're using csh I take it? Sorry, I believe the
> $(cmd) syntax is now 'the standard' in sh/ksh/Bourne/bash, but evidently
> not csh....sorry, I've never been keen on csh, but that syntax won't
> work for you, although it will/does even in freeBSD sh.
> Sorry for the confusion,
The backticks (`) are of a general standard than the $(cmd) syntax. Not
only do backticks work under all shells I've tried them under, but they are
parts of perl and php.
Robin Schoonover (aka End)
# "I'm betting that I'm just abnormal enough to survive." -The Tick
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"