Permalink
Browse files

Ensure extglob is on for r()

  • Loading branch information...
1 parent 448e5f0 commit e07ad1dea448151b835cc80f944358058e987e33 @wayneeseguin wayneeseguin committed Apr 7, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 scripts/extras/rails
View
@@ -192,6 +192,8 @@ r() {
args="$@"
+ shopt -s extglob
+
case "$action" in
c|console)
@@ -229,11 +231,11 @@ r() {
fi
;;
- (*(-)@(h|?|help))
+ *(-)@(h|?|help))
action="-h"
;;
- (*(-)@(v|V|version))
+ *(-)@(v|V|version))
action="-h"
;;

0 comments on commit e07ad1d

Please sign in to comment.