> hello,
> first off, are there any mailing lists where i can ask questions about bash 
> scripting?  any good mailing list that deal with programming c in linux?
> 
> anyways, i want to assign the exit status of a command in a variable as an 
> integer.  i tried the following:
> let x=`./configure --prefix=$1`
> but it doesn't work.
x will be assigned the 'output' of your command.  After your command has
finished, $? will be assigned the return value of the command.

./configure whatever
x=$?


Try it on the command line!

# ls
<output>
# echo $?

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// "I hear, and I forget.  I see, and I remember.  I do, and I understand."
//     -- Chinese Proverb

Attachment: msg91872/pgp00000.pgp
Description: PGP signature

Reply via email to