summary refs log tree commit diff
path: root/src/histedit.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-05-12 18:09:24 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2007-05-12 18:09:24 +1000
commitce0f1900d869066e52a33d58f399c6a9d7ae659d (patch)
treedff08e5aecd39e5b9b4b4a7edd642d565cf7f09b /src/histedit.c
parent[REDIR] Remove redundant CLOEXEC calls (diff)
downloaddash-ce0f1900d869066e52a33d58f399c6a9d7ae659d.tar.gz
dash-ce0f1900d869066e52a33d58f399c6a9d7ae659d.zip
[REDIR] Fix redirect restore on saved file descriptors
As it stands if a redirection occurs on a file descriptor that was
previously closed, it won't be closed after that redirection goes
out of effect.  This is because we don't keep track of closed file
descriptors properly as we do for open ones.

This patch fixes this by introducing two new states, CLOSED and
REALLY_CLOSED.  The first represents an initially closed descriptor
which is now open while the second one represents an initally closed
descriptor which is now closed.

This patch is based on work by Rainer Weikusat.
Diffstat (limited to 'src/histedit.c')
0 files changed, 0 insertions, 0 deletions
r every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe