timm / crusty

Automatically exported from code.google.com/p/crusty
0 stars 0 forks source link

/trunk/bash/sigs trap goes to wrong place #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the trap fires, it goes to the home directory.  Shouldn't it go to the
present working directory (stored in 'Here') before the sandbox was created?

Original issue reported on code.google.com by bdsow...@gmail.com on 23 Jan 2007 at 7:54

GoogleCodeExporter commented 9 years ago
My apologies: this bug refers to sandbox, not sigs.

Original comment by bdsow...@gmail.com on 23 Jan 2007 at 8:08

GoogleCodeExporter commented 9 years ago
Excellent point. So I've changed

trap "cd; rm -rf $Tmp" 0 1 2 3 15

to

trap "cd $Here; rm -rf $Tmp" 0 1 2 3 15

Original comment by menzies....@gmail.com on 4 Feb 2007 at 2:41