[KLUG Programming] Re: [KLUG Members] getting exit code in
bash script (and more)
bill
bill at billtron.com
Fri Mar 11 15:24:31 EST 2005
And now I ran some tests on my original script, it's in there too.
But, I can't find it yet in any actual script. How does it get there?
An email thing?
b.
On Fri, 2005-03-11 at 15:16, bill wrote:
> Bruce,
>
> The problem does not seem to be in my gedit.
>
> After some testing couldn't duplicate it, I ran some tests on your
> original script.
>
> It seems that the weird character(s)
>
> $'\302\240'
>
> is in your original post:
>
> #!/bin/sh
> somecommand
> exitcode=$?
> if [ $exitcode -eq 0 ]
> then
> echo "Everything is O.K."
> else
> echo the exit code for somecommand was: $exitcode
> fi
>
> When I save that snippet of code to a file (oddchar.txt) and then run
>
> cat oddchar.txt | grep $'\302\240'
>
> Every indented line shows the odd char.
>
> Are you really sure you could run the version of the script you put in
> the email?
>
> Any idea what the weird character is?
>
> b.
>
> _______________________________________________
> Programming mailing list
> Programming at kalamazoolinux.org
> http://www.kalamazoolinux.org/mailman/listinfo/programming
>
>
More information about the Programming
mailing list