Skip to content

Commit

Permalink
fix options.sh regression (oops) (re: 28021c0)
Browse files Browse the repository at this point in the history
We should not completely stop parsing the -i invocation option even
if SHOPT_SCRIPTONLY is enabled.
  • Loading branch information
McDutchie committed Mar 3, 2023
1 parent 28021c0 commit e500628
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cmd/ksh93/data/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,11 +1636,13 @@ const char sh_optksh[] =
"Any \aarg\as become the positional parameters starting at \b$1\b. "
"This option is forced on if no \aarg\a is given "
"and is ignored if \b-c\b is also specified.]"
#if !SHOPT_SCRIPTONLY
"[i?Specifies that the shell is interactive.]"
"[i?Specifies that the shell is interactive."
#if SHOPT_SCRIPTONLY
" Not supported, as this ksh was compiled as a script-only shell."
#endif
"]"
"[l?Invoke the shell as a login shell; \b/etc/profile\b and \b$HOME/.profile\b, "
"if they exist, are read before the first command.]"
#endif
"[r\f:restricted\f?Invoke the shell in a restricted mode. A restricted "
"shell does not permit any of the following:]{"
"[+-?Changing the working directory.]"
Expand Down

0 comments on commit e500628

Please sign in to comment.