summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@openwide.fr>2009-10-01 17:14:35 +0200
committerHugues Hiegel <hugues.hiegel@openwide.fr>2009-10-01 17:14:35 +0200
commitdd33ef436cdd4aab59fb38239417a4f5ef804a17 (patch)
treef92beb7336974a1093bd63d33243fdebdb442724 /01_Functions.zsh
parent70db11de11eb4145844c45be94123f4ad7546318 (diff)
[Funcs] protects 'lastjob' var with double-quotes to avoid 'set' command call upon a fg.
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index e1370e8..983f5c0 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -30,7 +30,7 @@ term_title()
if [ "$command[0]" = "fg" ]
then
lastjob=$(ps ft `tty` | grep "[0-9]\+[[:blank:]]\+`tty | sed 's/\/dev\///'`[[:blank:]]\+T.\? \+.:.. \\\_ " | tail -n1 | cut -c32-)
- set $lastjob
+ set "$lastjob"
fi
if [ "$command[0]" = "screen" ]
then