Search Results

Search: Posts Made By: jhallows
4,437
Posted By jhallows
* The entire while loop runs in a subshell...
* The entire while loop runs in a subshell because of the pipe
* Variable values set inside while loop not available after while loop

A solution:

L=0

cat test.sh | { while read line
do
...
Showing results 1 to 1 of 1

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