You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POSIX XCU 1.4 requires in the "Output files" sub-section:
Any temporary file created by the implementation shall be removed by the implementation upon a utility's successful exit, exit because of errors, or before termination by any of the SIGHUP, SIGINT, or SIGTERM signals, unless specified otherwise by the utility description.
Currently, temporary files are not removed if the shell is killed by a signal.
To Reproduce
Steps to reproduce the behavior:
Enable the vi line-editing mode.
On the command line, press Escape to switch to the normal mode and then press v to invoke the command editor.
Send SIGHUP to the shell waiting for the editor to finish.
The signal kills the shell, but the temporary file remains.
Expected behavior
The shell must remove the temporary file then terminate by resending the same signal to itself.
This is the behavior required by POSIX. (See also the "Asynchronous events" sub-section in POSIX XCU 1.4.)
The text was updated successfully, but these errors were encountered:
Describe the bug
POSIX XCU 1.4 requires in the "Output files" sub-section:
Currently, temporary files are not removed if the shell is killed by a signal.
To Reproduce
Steps to reproduce the behavior:
v
to invoke the command editor.Expected behavior
The shell must remove the temporary file then terminate by resending the same signal to itself.
This is the behavior required by POSIX. (See also the "Asynchronous events" sub-section in POSIX XCU 1.4.)
The text was updated successfully, but these errors were encountered: