-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup Temp File Via trap #20
Comments
Please send a PR.. as we are speaking.. I am working on #16 :D I'll ping here once done. |
btw.. Also what is that? Haven't googled yet. |
Signal handling for bash scripts:
|
Can you pull the latest master and try below?
By default, EMACS is For now, you will need emacs 24.4 or newer, until #21 is resolved. |
I might need your help here.. I cannot get the debug "Eless Command : $cmd"
echo "here0"
# http://redsymbol.net/articles/bash-exit-traps/
function cleanup {
echo "here1"
rm -f "${tempfile}"
}
trap cleanup EXIT
eval "$cmd"
echo "here2"
Update: OK, it was because I was running emacs using |
Hello @iqbalansari. Sorry to suddenly drag you into this conversation, especially when you need to go down your memory lane back in April 2017.. Removing I see that Do you have comments on why Thanks! |
The @sshaw Do you want to try that out? @iqbalansari If you too don't mind, can you try out this branch and see what could go wrong now that I call |
Hi @kaushalmodi, I had to add the Thanks |
Which is the same error I get when doing Instead of trying to make it work with
Getting the |
Opened #24 for this.
I agree. Let me know if symlinking approach works for you; then #22 can be closed.
Thanks for confirming! I am now tracking |
So once @iqbalansari confirms that removing |
I can confirm that this is working me 👍 |
Thanks @iqbalansari. Latest master is a trap now. |
I had issues RE #18. When investigating I noticed that the cleanup assumes the script will reach the end. Even without #18 this isn't always the case, i.e., signals. You should so this instead:
Though I'd also stuff that into the temp directory.
Note that I would have sent a PR, but the instructions for building lead me to believe that this simple PR could turn into a time-consuming endeavor. I see #16 😉
The text was updated successfully, but these errors were encountered: