Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1 5
Impact
~3k people reached

  • 0 posts edited
  • 1 helpful flag
  • 11 votes cast
Feb
3
awarded  Notable Question
Sep
24
awarded  Autobiographer
Jul
11
awarded  Popular Question
Jun
14
awarded  Student
Feb
13
awarded  Scholar
Feb
13
accepted What method executes on bash exit via CTRL-D?
Feb
13
comment What method executes on bash exit via CTRL-D?
Yes it works just fine, thank you!
Feb
13
comment What method executes on bash exit via CTRL-D?
I want to execute it in either situation. It's a clean up for values that get tracked when .bashrc runs (when shell opens) and when cd is called (I briefly reference cd in my original question).
Feb
12
comment What method executes on bash exit via CTRL-D?
It seems I am unclear on what this does. Where do I place this? I've put it in my .bashrc and the same behavior is observed on EOF.
Feb
12
comment What method executes on bash exit via CTRL-D?
What I really want is to trigger a method when EOF is encountered by the terminal, not execute another method. The snippet I showed above makes it so script.sh executes if I manually execute exit, but I don't want to do this.
Feb
12
asked What method executes on bash exit via CTRL-D?
Feb
8
awarded  Supporter