summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-07-12 11:34:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-07-12 11:34:13 +0200
commit3d966a73ebaf7bb3c86e88095f1f3f1158d33f6b (patch)
tree3fa90738702750082f0b26bc2d334c0d7c6edb4b
parentf14f3d53ef5484f99d4602ad578b2419c11a32e7 (diff)
downloadbin-3d966a73ebaf7bb3c86e88095f1f3f1158d33f6b.tar.gz
bin-3d966a73ebaf7bb3c86e88095f1f3f1158d33f6b.tar.xz
dirsu: use exec
No need to keep old shells around Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xdirsu2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirsu b/dirsu
index 08d29d6..2dc7d0b 100755
--- a/dirsu
+++ b/dirsu
@@ -7,4 +7,4 @@ else
fi
user="$(stat -c %U "$target")"
cd "$target"
-su "$user" -c "cd $PWD; bash"
+exec su "$user" -c "cd $PWD; exec bash"