> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On 
> Behalf Of Adam Thornton
> Sent: Tuesday, April 03, 2007 5:18 PM
> To: [email protected]
> Subject: Re: Philosophy: connecting to a Linux server

<snip>

> 
> YOU TOO CAN HELP STAMP OUT BACKTICKS IN OUR LIFETIME.
> 
> Seriously, folks.  It's Linux, not Solaris: /bin/sh is POSIX-
> compliant (boy, was I surprised last week when some of my POSIX
> scripts barfed-and-died on.
> 
> So:
> 
> #!/bin/sh
> echo "Welcome to $(head -n1 /etc/SuSE-release) - Kernel $(uname -r)"
> 
> No, it doesn't make much difference here.  But $() is nestable, and
> backticks are not without very careful escaping, and they make the
> logical grouping of the command line much, much clearer.  You also
> don't have to escape embedded double quotes with $() command
> substitution.  It's a good habit to cultivate.
> 
> Adam

And people don't mistake $(...) for a ' as I have seen in magazines
where some copy editor replaced the back tick ` with a '.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to