mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
posix: re-allow preset aliases on interactive (re: ddaa145b
)
The POSIX standard in fact contains a sentence that specifically allows preset aliases: "Implementations also may provide predefined valid aliases that are in effect when the shell is invoked." https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_03_01 I had missed that back then. It's still a terrible idea for scripts (particularly the way 93u+ implemented them), but for interactive POSIX shells it makes a lot more sense and does not violate POSIX. src/cmd/ksh93/sh/main.c: sh_main(): - Preset aliases for interactive shell regardless of SH_POSIX.
This commit is contained in:
parent
b14e79e9d0
commit
4f9456d69f
3 changed files with 9 additions and 14 deletions
3
NEWS
3
NEWS
|
@ -11,6 +11,9 @@ Any uppercase BUG_* names are modernish shell bug IDs.
|
|||
<##pattern redirection operators will not work and the -n option to the
|
||||
read built-in will not return early when reading from a slow device.)
|
||||
|
||||
- An interactive shell initialized in POSIX mode now once again has the
|
||||
preset aliases defined. This amends a change made on 2020-09-11.
|
||||
|
||||
2022-06-08:
|
||||
|
||||
- If -B/--braceexpand is turned on in --posix mode, it now only allows brace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue