Timeline for Understanding "IFS= read -r line"
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 2, 2020 at 0:15 | comment | added | Dan | x=b only within the echo command (whether builtin or binary). The $x substitution is performed well before that, in the shell. For example perl sees the environment variable as set to b x=a; x=b perl -e 'print $ENV{"x"}; print "\n"' but will print a if the substitution is done at time of invocation of course! x=a; x=b perl -e "print qq($x\n);" | |
| Oct 28, 2020 at 16:02 | comment | added | Farid Cheraghi | x=a; x=b echo $x why $x is a? according to your answer, it should be b! | |
| Jun 12, 2015 at 11:50 | history | edited | mikeserv | CC BY-SA 3.0 | added 362 characters in body |
| Jun 12, 2015 at 11:29 | history | edited | user43791 | CC BY-SA 3.0 | added 346 characters in body |
| Jun 11, 2015 at 23:05 | history | edited | user43791 | CC BY-SA 3.0 | added 669 characters in body |
| Jun 11, 2015 at 22:57 | history | edited | user43791 | CC BY-SA 3.0 | added 669 characters in body |
| Jun 11, 2015 at 22:49 | history | answered | user43791 | CC BY-SA 3.0 |