Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: question about saving history and error reporting
- X-seq: zsh-workers 37421
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: question about saving history and error reporting
- Date: Tue, 22 Dec 2015 16:54:33 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=t7Gsywq/ONdW21EmbGyWoFgi+TjR2cCWfmC81Kl+Xhc=; b=R0AgkVyeFaWD2IcjFn1UU2RFBgxxEVCY56KU3kEQJXCet3L6bDpKU6Naa9DUyRNWyZ GLGXy7o6NebMhir1cYCLBc9EG69mQ4VCF6Vit+8NbeB3pBWaHO6VbhtI+4BOI3J8/plo SpVa7n5CAXOtGObUs+U+d3JWmvbg1E8gSYES63pwGjcHShb87Nmea1CuB8m1sh3qafmT 8TwFIAy7/sUiQrdkSmvkba9DAAMkbq63tI/VrXhcYAytfRHPBB0BMycs5+SoU9i5aRhV v8h/58JtTUBR4cTPwlntxwmmQc6wvevWpoGr0BAz56gjjT0vUhntyz+j9MIrzWPnme5D VcKA==
- In-reply-to: <20151222181420.GA21368@ofb.net>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1450718785.14170.ezmlm@zsh.org> <20151221203800.GB23389@ofb.net> <151221125450.ZM21081@torch.brasslantern.com> <20151222181420.GA21368@ofb.net>
On Dec 22, 10:14am, frederik@xxxxxxx wrote:
}
} For me, if the history can't be written, it would be convenient to
} know about the errors that are being generated immediately, so that I
} can fix the problem. Are there many situations where the history can't
} be written due to a problem which is transient?
The most common reason in the case of inc_append_history could be that
multiple shells are updating the file at the same time. There are also
things like home directories on remote filesystems that are temporarily
unreachable.
Really it's not the responsibility of the shell history mechanism to
alert you about system-wide failure conditions like a full disk, and
I wouldn't want to encourage anyone to rely on it for that.
} Are there other cases where Zsh hides errors that occur during its
} operation?
That's a rather wide-open question. The (programmed in shell code)
completion system deliberately suppresses all sorts of errors that
might occur during generating the possible matching words, because
they're irrelevant to updating the command line and displaying them
would mess up screen for ZLE. Within the C code, I would not be
surprised if there are other implicit actions for which displaying
an error state is considered unnecessarily verbose, but I can't tell
you of any offhand.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author