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 -->
  #5 (permalink)  
Old 02-10-2009
learnbash learnbash is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 96
Quote:
Originally Posted by vgersh99 View Post
no, 'ls' does not always return '0'.
here's what 'man ls' yields:
Code:
EXIT STATUS
     0     All information was written successfully.

     >0    An error occurred.
just curious, why would you want to return a non-zero value when 'ls' was successful?

Hello,

Thanks once again for quick reply, i understand what you are saying actually i want to make all commands return code to "1", ls is just an example.

Thanks.
Bash