X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=subcommand;h=ca546bd1617074d86813135f54c9dc2f7f7e5873;hb=692f2f3c9dfd6a1d6692e6f131e4e40c02f7f1bc;hp=261e35f5e39b6f377529c24a136427106d6301cb;hpb=10bc168fc71c52c1767151e138a6b1031b837ea8;p=gsu.git diff --git a/subcommand b/subcommand index 261e35f..ca546bd 100644 --- a/subcommand +++ b/subcommand @@ -25,7 +25,7 @@ _gsu_usage() # exactly one parenthesized subexpression for matching the command name. _gsu_get_command_regex() { - local cmd="${1:-[-a-zA-Z_0-9]+}" + local cmd="${1:-[-a-zA-Z_0-9]{1,\}}" result="^com_($cmd)\(\)" }