Search Results

Search: Posts Made By: nagaidhlig
19,355
Posted By nagaidhlig
Thanks chella, but your example only warns when...
Thanks chella, but your example only warns when you expect an error. My point was that an unsuspected "unbound variable" could get unnoticed.

radoulov, that works. I got a bit confused by the...
19,355
Posted By nagaidhlig
Thanks for your answer, radoulov, but I'm not...
Thanks for your answer, radoulov, but I'm not sure that's the solution, because the trap doesn't catch within the pipe, only when the script ends:

my script is called "b":
trap "echo I\'m out..."...
19,355
Posted By nagaidhlig
bash: "undefined variable" and pipe
Hi,
haven't found anything about this through searching, so may be a new topic:
when doing this:

set -o nounset
set -o errexit
find . -name "*.lib" | while read library; do
echo ${libary}...
Showing results 1 to 3 of 3

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