Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rmate
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function canonicalize {
echo "$result"
}

shopt -s extglob
while [[ "$1" != "" ]]; do
case $1 in
-)
Expand Down Expand Up @@ -222,7 +223,7 @@ while [[ "$1" != "" ]]; do
showusage
exit 0
;;
+[0-9][0-9]*)
\++([0-9]))
selections+=(${1:1})
;;
*)
Expand All @@ -237,6 +238,7 @@ while [[ "$1" != "" ]]; do

shift
done
shopt -u extglob

if [[ "$host" = "auto" && "$SSH_CONNECTION" != "" ]]; then
host=${SSH_CONNECTION%% *}
Expand Down