We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61132b commit 2c998aaCopy full SHA for 2c998aa
README.md
@@ -65,11 +65,11 @@ On Startup:
65
```Bash
66
# Pseudo-code functions:
67
# _bash_optarg: The argument for an option.
68
-# _bash_opts: If this option is set.
+# _bash_opts: If this option is set: [[ $- == *$1* ]].
69
_is_sh(){ [ "$(basename "$BASH")" == "sh" ]; }
70
_is_posix(){ shopt -oq posix; }
71
_is_interactive() { case "$-" in *i*) return 0; esac; return 1; }
72
-_is_login(){ [ "${0:0:1}" == - ] || _bash_opts --login || _bash_opts -l; }
+_is_login(){ [ "${0:0:1}" == - ] || _bash_opts -l; }
73
# Real bash doesn't change the return value, just for convenience with ||
74
load_if_exists(){ [ -r "$1" ] || return 1; . "$@"; true; }
75
if _is_interactive; then
0 commit comments