about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--git-fetch-email.sh21
1 files changed, 11 insertions, 10 deletions
diff --git a/git-fetch-email.sh b/git-fetch-email.sh
index 8fcb66d..83243c7 100644
--- a/git-fetch-email.sh
+++ b/git-fetch-email.sh
@@ -42,17 +42,19 @@ v,verbose log IMAP protocol to standard error
 "
 eval "$(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)"
 
-for opt; do
+while [ $# -gt 0 ]; do
+	opt=$1
+	shift
 	case "${opt}" in
-		(-C) cc=$2; shift;;
-		(-F) from=$2; shift;;
-		(-S) subject=$2; shift;;
-		(-T) to=$2; shift;;
+		(-C) cc=$1; shift;;
+		(-F) from=$1; shift;;
+		(-S) subject=$1; shift;;
+		(-T) to=$1; shift;;
 		(-a) apply=1;;
-		(-h) host=$2; shift;;
-		(-m) mailbox=$2; shift;;
-		(-p) port=$2; shift;;
-		(-u) user=$2; shift;;
+		(-h) host=$1; shift;;
+		(-m) mailbox=$1; shift;;
+		(-p) port=$1; shift;;
+		(-u) user=$1; shift;;
 		(-v) verbose=1;;
 		(--no-apply) apply=;;
 		(--no-cc) cc=;;
@@ -62,7 +64,6 @@ for opt; do
 		(--no-verbose) verbose=;;
 		(--) break;;
 	esac
-	shift
 done
 if [ -z "${user:-}" ]; then
 	echo "${0}: username required" >&2
2017-06-07Remap C-w {n,e} in vim for Tarmak 1June McEnroe 2017-06-06Rebind hnel in vim for Tarmak 1June McEnroe 2017-06-06Use C-space as tmux prefixJune McEnroe In an attempt to be layout agnostic. 2017-06-06Add Tarmak layoutsJune McEnroe From <https://github.com/sblaurock/tarmak-layouts>. 2017-05-26Rename keyboard layout ProgrammingJune McEnroe 2017-05-25Fix Library install conditionJune McEnroe 2017-05-25Revert "Remove macOS keyboard layout"June McEnroe This reverts commit ba72f89c0354810ff576ea9892db55dfa9844dca. 2017-05-08Fix copy mode bindings for tmux 2.4June McEnroe Incompatible change that makes no sense to me. 2017-05-02Remove option unnecessary in nvim 0.2June McEnroe 2017-05-01Reorder lines in psqlrcJune McEnroe 2017-05-01Clean up Karabiner configurationJune McEnroe 2017-05-01Fix prune script loopJune McEnroe For loop was getting one string with several paths separated by newlines. 2017-05-01Fix prune scriptJune McEnroe The for loop was overriding zsh's $path variable, causing it to not be able to find rm. 2017-05-01Clean up SSH configJune McEnroe 2017-05-01Rename colorscheme "trivial"June McEnroe 2017-05-01Update vendored pathogenJune McEnroe 2017-05-01Clean up git configJune McEnroe 2017-05-01Clean up style in xxJune McEnroe 2017-05-01Clean up style in pbdJune McEnroe 2017-05-01Use EX_OK in pbcopyJune McEnroe 2017-04-30Clean up clockJune McEnroe 2017-04-30Clean up error strings in briJune McEnroe 2017-03-18Add -u option to xxJune McEnroe 2017-03-15Fix non-string-literal-format-string in briJune McEnroe 2017-03-15Fix bri compilationJune McEnroe cc will remove the file itself just fine. Always exit in case any of the shell commands fail. 2017-03-15Use psvar for title settingJune McEnroe Prevents prompt expansion from happening on the command being run when it is set in the title. 2017-03-14Add bri brightness control scriptJune McEnroe This is probably terrible. 2017-03-14Add comment to tmux terminal overrideJune McEnroe 2017-03-13Have tmux set block cursor on linux consoleJune McEnroe 2017-03-13Use inverse for Visual in colorschemeJune McEnroe