Can someone explain to me why the following is
1) create a file as follow:
2) execute this script file in /bin/sh shell
3) see what : echo $? : returns back
4) I received 0, is this a bug? is it fixed?
>Can someone explain to me why the following is
>1) create a file as follow:
> exit 34
>2) execute this script file in /bin/sh shell
>3) see what : echo $? : returns back
>4) I received 0, is this a bug? is it fixed?
#---- Vladimir Vukicevic #include <std_disclaimer.h>
Trying to write shell scripts that are very portable, but that need to
prompt for input, can be a pain. In particular you usually have to do
one of the following:
echo -n "Enter host type:"
echo "Enter host type:\c"
Does anyone know of a system where the following DOES NOT work?
echo "Enter host type:" | tr -d '\012'
PLEASE DO NOT TELL ME IF IT WORKS. I only want to know of places
where it doesn't.
Responses to me will be summarized.
Use a domain-based address or give alternate paths, or you may lose out.