diff options
author | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-10-01 17:14:35 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-10-01 17:14:35 +0200 |
commit | dd33ef436cdd4aab59fb38239417a4f5ef804a17 (patch) | |
tree | f92beb7336974a1093bd63d33243fdebdb442724 /01_Functions.zsh | |
parent | 70db11de11eb4145844c45be94123f4ad7546318 (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.zsh | 2 |
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 |