From dd33ef436cdd4aab59fb38239417a4f5ef804a17 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 1 Oct 2009 17:14:35 +0200 Subject: [Funcs] protects 'lastjob' var with double-quotes to avoid 'set' command call upon a fg. --- 01_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '01_Functions.zsh') 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 -- cgit v1.2.3