Search Results

Search: Posts Made By: browndr
10,026
Posted By browndr
Return code of command assigned to variable
How do I evaluate the result of a command assigned to a variable??

Example:

var1=`cmd`
rc=$?

rc will be the result of the assignment rather than cmd since it executes after. How do I...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy