![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with return code 1... | mac4rfree | Shell Programming and Scripting | 6 | 12-11-2008 11:47 AM |
| FTP Return Code | wilsonSurya | UNIX for Dummies Questions & Answers | 1 | 10-06-2008 08:27 AM |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 07:44 AM |
| asking about return code | naamas03 | Shell Programming and Scripting | 3 | 08-28-2007 05:53 AM |
| Return Code of tar in AIX | dupeng | AIX | 3 | 02-23-2004 12:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
return code help
Hello folks,
I have a question that if i type ls command and type echo $? it always show "0", how i could do this change that when i type ls it will show me 1, actually i want to change the return code of commands from 0 to 1. Thanks Bash |
|
||||
|
Quote:
Hello, thanks for your reply, but i want to replace only true output to "1", ls always return "0" how could i replace only ls command output to "1". Thanks, Bash |
|
||||
|
Quote:
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 |
|
|||||
|
Why? It's common practice in UNIX for programs to return 0 on successful exit (yes, I know it's different to C, where non-zero indicates success). If you want to change that, have fun updating and recompiling almost every util and shell for your OS.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|