# Print all options of the given optstring to stdout if the word in the current
# command line begins with a hyphen character.
# Print all options of the given optstring to stdout if the word in the current
# command line begins with a hyphen character.
-b: Use the specified browser. Implies html mode.
If stdout is not associated with a terminal device, the command
-b: Use the specified browser. Implies html mode.
If stdout is not associated with a terminal device, the command
the command stored in the $BROWSER environment variable is executed
with the path to the temporary file as an argument. If $BROWSER is
unset, elinks(1) is assumed.
the command stored in the $BROWSER environment variable is executed
with the path to the temporary file as an argument. If $BROWSER is
unset, elinks(1) is assumed.
- ret=$GSU_SUCCESS # It's not an error if no completer was defined
- [[ "$(type -t "complete_$cmd")" != "function" ]] && return
+ # if no completer is defined for this subcommand we exit unsuccessfully
+ # to let the generic completer above fall back to file name completion.
+ [[ "$(type -t "complete_$cmd")" != "function" ]] && exit 1
"complete_$cmd" "$cword" "${words[@]}"
# ignore errors, they would only clutter the completion output
ret=$GSU_SUCCESS
"complete_$cmd" "$cword" "${words[@]}"
# ignore errors, they would only clutter the completion output
ret=$GSU_SUCCESS