mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix $PPID for hashbangless script (re: 232b7bff
)
I made a mistake in sh.reinit() which caused $PPID to be set to the new process ID, not the parent process ID. This commit fixes it by introducing, updating and using sh.current_ppid, so we continue to minimise context switches due to getpid(2)/getppid(2) system calls. Thanks to Geoff Clare for the report.
This commit is contained in:
parent
592ce7415a
commit
48f78227a9
6 changed files with 23 additions and 9 deletions
5
NEWS
5
NEWS
|
@ -3,6 +3,11 @@ For full details, see the git log at: https://github.com/ksh93/ksh/tree/1.0
|
|||
|
||||
Any uppercase BUG_* names are modernish shell bug IDs.
|
||||
|
||||
2022-07-27:
|
||||
|
||||
- Fixed a bug introduced on 2022-02-08 where $PPID was incorrect when a script
|
||||
without a #! path was executed.
|
||||
|
||||
2022-07-26:
|
||||
|
||||
- Fixed incorrect handling of initial zeros in test/[ and [[ arithmetic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue