On Wed, 2002-10-23 at 21:06, christopher j bottaro wrote: > hello, > first off, are there any mailing lists where i can ask questions about bash > scripting?
moongroup.com shell-scripting list really low volume but some VERY sharp folks there. Several of which pop up on this list occasionally. any good mailing list that deal with programming c in linux? No idea > > 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` ./configure --prefix=$1 x=$? should work shouldn't it? [bhughes@bretsony bhughes]$ pig bash: pig: command not found [bhughes@bretsony bhughes]$ export rc=$? [bhughes@bretsony bhughes]$ echo $rc 127 [bhughes@bretsony bhughes]$ echo $(($rc + 1 )) 128 [bhughes@bretsony bhughes]$ startd to ping a bad name but pig works too :) HTH Bret -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list