diff options
Diffstat (limited to 'etc/functions')
-rwxr-xr-x | etc/functions/off | 1 | ||||
-rwxr-xr-x | etc/functions/put | 1 | ||||
-rwxr-xr-x | etc/functions/rtab | 4 | ||||
-rwxr-xr-x | etc/functions/youtube-watch | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/etc/functions/off b/etc/functions/off index 05c67fa..38b82f7 100755 --- a/etc/functions/off +++ b/etc/functions/off @@ -36,6 +36,7 @@ while [[ $1 == -* ]] { print ' either "gone" or the place one will be going to' return 0 ;; + -|--) shift; break ;; *) fdie "Unrecognized option: $1"; return 1 ;; esac shift diff --git a/etc/functions/put b/etc/functions/put index 42b550a..58a59f3 100755 --- a/etc/functions/put +++ b/etc/functions/put @@ -48,6 +48,7 @@ hosts=(aneurysm_int aneurysm sievert) while [[ $1 == -* ]] { case $1 in + -|--) shift; break ;; *) (( $(eval echo '$#'hosts_${1#-}) )) && eval hosts=\(\$hosts_${1#-}\) ;; diff --git a/etc/functions/rtab b/etc/functions/rtab index ca68dec..f1465d8 100755 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -52,6 +52,10 @@ while [[ $1 == -* ]]; do tilde=1 named=1 ;; + -|--) + shift + break + ;; esac shift done diff --git a/etc/functions/youtube-watch b/etc/functions/youtube-watch index c7940bf..78d7f8a 100755 --- a/etc/functions/youtube-watch +++ b/etc/functions/youtube-watch @@ -5,6 +5,7 @@ typeset -i cache=0 while [[ $* == -* ]] { case $1 in -c) cache=1 + -|--) shift; break ;; esac shift } |