diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-04-08 11:32:42 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-04-08 11:32:42 +1200 |
commit | 9b64341b1fd3198344e1b8e13448924b9c65e3ef (patch) | |
tree | 105d807c991fa17bd5268cfcd9102e29a50f7290 /bash/bashrc.d | |
parent | Clarify explanation of prompts (diff) | |
download | dotfiles-9b64341b1fd3198344e1b8e13448924b9c65e3ef.tar.gz dotfiles-9b64341b1fd3198344e1b8e13448924b9c65e3ef.zip |
Require at least one argument to vis function
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/vim.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash index 03193c6e..c73ad841 100644 --- a/bash/bashrc.d/vim.bash +++ b/bash/bashrc.d/vim.bash @@ -15,7 +15,7 @@ vis() { # Distinguish options from file arguments endopts=0 - for arg in "$@" ; do + for arg in "${@:?}" ; do if [[ $arg == -- ]] ; then endopts=1 elif [[ $arg == -* ]] && ! ((endopts)) ; then |