Timeline for When is `_` an environment variable of a bash shell?
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 16, 2018 at 4:23 | comment | added | JdeBP | See also unix.stackexchange.com/questions/293302 . | |
| Apr 13, 2018 at 4:55 | vote | accept | Tim | ||
| Apr 10, 2018 at 10:58 | history | edited | Toby Speight | CC BY-SA 3.0 |
Seperate the two quotes, and re-markdown them
|
| Apr 10, 2018 at 10:52 | comment | added | Toby Speight |
Note that bash -c export | grep _= (from Bash), will show how the parent shell invoked the bash command, even though $_ is unset in the parent.
|
|
| Apr 10, 2018 at 10:50 | comment | added | Toby Speight |
It's a shell variable, and it's passed to the command's environment; it's not necessarily exported to the shell's environment. export is a builtin, but if you use printenv _, it will show you how it was invoked: /usr/bin/printenv on this system.
|
|
| Apr 10, 2018 at 0:27 | history | tweeted | twitter.com/StackUnix/status/983501568501837825 | ||
| Apr 9, 2018 at 21:05 | answer | added | ilkkachu | timeline score: 9 | |
| Apr 9, 2018 at 21:04 | history | edited | Tim | CC BY-SA 3.0 |
added 78 characters in body
|
| Apr 9, 2018 at 21:00 | answer | added | Hauke Laging | timeline score: 6 | |
| Apr 9, 2018 at 20:56 | answer | added | Stephen Kitt | timeline score: 14 | |
| Apr 9, 2018 at 20:48 | history | edited | Tim | CC BY-SA 3.0 |
added 11 characters in body
|
| Apr 9, 2018 at 20:43 | history | asked | Tim | CC BY-SA 3.0 |