The UNIX and Linux Forums  


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 -->
  #3 (permalink)  
Old 01-03-2009
em23's Avatar
em23 em23 is offline
Registered User
  
 

Join Date: May 2008
Location: Chicago
Posts: 31
Quote:
Originally Posted by cfajohnson View Post

Did you run the script? If you did you would have received error messages telling you what and where the errors were.
i did, but didn't get any errors.

When posting code, please put it in [code] tags.
d'oh! forgot about that.

[[ -e ... ]] is not standard and, in this case, offers nothing over the standard [ -e ... ].
okay, was not aware of that. thank you.

There's an obvious mistake. Why are you using command substitution when the variable does not contain a command?
typo, i forgot the 'ls' in there.