Directory stack (pushd and popd) behaviour in bash scripts
2
votes
2
answers
2466
views
If I poorly write a script that uses
pushd /etc
but I don't finish it with popd
: Will /etc
still be in the pushd
+popd
directory stack/in RAM after the bash
script has finished executing and Bash has terminated?
Also does the pushd
+popd
directory stack clear (like variables do) if I close the terminal emulator session (which should terminate the bash
shell process for that terminal emulator session) without manually clearing it with popd
?
Asked by Bean6754
(21 rep)
Dec 11, 2019, 02:44 PM
Last activity: Dec 11, 2019, 04:28 PM
Last activity: Dec 11, 2019, 04:28 PM