1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Revert "[1.0 release prep] Remove tilde expansion discipline"

This reverts c0334e32, thereby restoring 936a1939.

After the fixes in 0a343244 and a2bc49be, the tilde expansion
disciplines work nicely, so they can come back to the 1.0 branch.
This commit is contained in:
Martijn Dekker 2021-12-09 07:31:37 +01:00
parent a2bc49bed1
commit 350e52877b
9 changed files with 134 additions and 1 deletions

5
NEWS
View file

@ -422,6 +422,11 @@ Any uppercase BUG_* names are modernish shell bug IDs.
2021-03-16:
- Tilde expansion can now be extended or modified by defining a .sh.tilde.get
or .sh.tilde.set discipline function. This replaces a 2004 undocumented
attempt to add this functionality via a .sh.tilde built-in, which never
worked and crashed the shell. See the manual for details on the new method.
- Fixed a bug in interactive shells: if a variable used by the shell called
a discipline function (such as PS1.get() or COLUMNS.set()), the value of $?
was set to the exit status of the discipline function instead of the last