Search Results

Search: Posts Made By: elbrand
1,224
Posted By Don Cragun
I find the wording in the man page you quoted...
I find the wording in the man page you quoted ambiguous. The way you describe the code acting fits one of the possibilities of that ambiguous statement; and the way you expect it to behave fits...
2,017
Posted By RudiC
This is specified and expected behaviour. man...
This is specified and expected behaviour. man bash:


A++ is post-increment, i.e. A is evaluated (to zero, thus return status 1) and then incremented. ++A will return the expected 0 .
1,852
Posted By Scrutinizer
This is because your input never gets terminated....
This is because your input never gets terminated. Meanwhile awk is buffering the output. Watch what happens when you replace the loop by:

while read -s -n 1 >/dev/null 2>&1; do
case $REPLY in ...
Showing results 1 to 3 of 3

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