The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-28-2008
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
Quote:
I forgot the `s when I copied it over from HP. It works with both `` and $(..)
Yes, because HP-UX's sh is a Posix shell. See man sh-posix to find out about its capabilities.
Therefore, you should rather use the $(...) style if you don't intend to run the script
unmodified on AIX's or SunOS/Solaris' sh.