diff options
author | axel <axel@liljencrantz.se> | 2006-12-13 04:18:41 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-12-13 04:18:41 +1000 |
commit | ca8c337c941c46f4fa40336a1979b5d364a7509b (patch) | |
tree | 0cfbb625bb198fec4c8f16066ce53d28b2044e79 /share/functions/trap.fish | |
parent | 8ccad65504bb6e086fc1a8d83e338f5ec5f67892 (diff) |
Drop unneeded '--' when using set builtin in the trap function
darcs-hash:20061212181841-ac50b-dd1fd50b80c6d3c759c123832bc6334613529ee6.gz
Diffstat (limited to 'share/functions/trap.fish')
-rw-r--r-- | share/functions/trap.fish | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/functions/trap.fish b/share/functions/trap.fish index 5cd91e29..ee29aa78 100644 --- a/share/functions/trap.fish +++ b/share/functions/trap.fish @@ -85,7 +85,7 @@ function trap -d 'Perform an action when the shell recives a signal' switch $mode case clear for i in $opt - set -- sig (__trap_translate_signal $i) + set sig (__trap_translate_signal $i) if test $sig functions -e __trap_handler_$sig end @@ -97,8 +97,8 @@ function trap -d 'Perform an action when the shell recives a signal' for i in $opt - set -l -- sig (__trap_translate_signal $i) - set -- sw (__trap_switch $sig) + set -l sig (__trap_translate_signal $i) + set sw (__trap_switch $sig) if test $sig eval "function __trap_handler_$sig $sw; $cmd; end" @@ -111,14 +111,14 @@ function trap -d 'Perform an action when the shell recives a signal' set -l names if count $opt >/dev/null - set -- names $opt + set names $opt else - set -- names (functions -na|sgrep "^__trap_handler_"|sed -e 's/__trap_handler_//' ) + set names (functions -na|sgrep "^__trap_handler_"|sed -e 's/__trap_handler_//' ) end for i in $names - set -- sig (__trap_translate_signal $i) + set sig (__trap_translate_signal $i) if test sig functions __trap_handler_$i |