On Thu, Feb 5, 2009 at 7:12 PM, Matthew Woehlke
wrote:
> Simos wrote:
>>
>> Regarding printexitvalue, I use
>>
>> trap '__exit_value_bashrc=$?; if [ $__exit_value_bashrc -ne 0 ]; then
>> echo "Exit $__exit_value_bashrc"; fi' ERR
>>
On Tue, Feb 3, 2009 at 9:24 PM, Stephane CHAZELAS
wrote:
> 2009-02-3, 19:38(+00), Simos:
> [...]
>> I have been using tcsh for a long time and I plan to move to bash.
> [...]
>
> I'd recommend moving to zsh instead. The transition is easier
> from tcsh and this way to
Thanks Paul, Freddy, Chet.
Regarding printexitvalue, I use
trap '__exit_value_bashrc=$?; if [ $__exit_value_bashrc -ne 0 ]; then
echo "Exit $__exit_value_bashrc"; fi' ERR
so that an exit value is printed when it is other than 0.
I pushed all changes to
http://github.com/s
www.linux.ie/old-list/17375.html
Is there a built-in command for this now?
5. Is there an option in bash to print the exit value of commands?
For example,
$ wc /tmp/qqwoieuqo
wc: /tmp/qqwoieuqo: No such file or directory
Exit 1<- this
$ _
Cheers,
Simos
p.s.
I have been maintaining tchsrc.sf.net and I plan to move the
functionality to http://github.com/simos/bashrc/