Skip to content

Commit 2c998aa

Browse files
committed
Update README.md
1 parent d61132b commit 2c998aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ On Startup:
6565
```Bash
6666
# Pseudo-code functions:
6767
# _bash_optarg: The argument for an option.
68-
# _bash_opts: If this option is set.
68+
# _bash_opts: If this option is set: [[ $- == *$1* ]].
6969
_is_sh(){ [ "$(basename "$BASH")" == "sh" ]; }
7070
_is_posix(){ shopt -oq posix; }
7171
_is_interactive() { case "$-" in *i*) return 0; esac; return 1; }
72-
_is_login(){ [ "${0:0:1}" == - ] || _bash_opts --login || _bash_opts -l; }
72+
_is_login(){ [ "${0:0:1}" == - ] || _bash_opts -l; }
7373
# Real bash doesn't change the return value, just for convenience with ||
7474
load_if_exists(){ [ -r "$1" ] || return 1; . "$@"; true; }
7575
if _is_interactive; then

0 commit comments

Comments
 (0)