Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: question about saving history and error reporting
- X-seq: zsh-workers 37419
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: question about saving history and error reporting
- Date: Mon, 21 Dec 2015 12:54:50 -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=O0MXFJmXjvLmdmAU8PKOfJfFOpUelwfNCa3dcO+0Kbc=; b=DgVVZUCyzMhNPtg831yI11LwSDg2cfkIWKCFNaMo3u0NtkAUAgAvq7MbnyPz8pDB1W Js2tm+yH1q6sSmPzeg1Upe7LsKKAsQ+MyAofuZLM2hdBBI51aqJhFZ1YQOUtUFXBX8+q KznIiwgLFxupXWpt72n5SGrXV2G3K+YTZKQb6vYzLm341FLDKI2YsVl5u5KzURDiTIuO RhORkggkQVHSwkDtJOFrd75dlB36qhWlOdSZ9BQ+0mun1+z3W/AVnt/DXNzGW5Wx0RCM w2ZnzyOpVA4uYPqDzQ7/fvgxpWinlvSAknID3YjEI+rE+ktlbueOu2jJsiVmjjxOqiyQ 37gA==
- In-reply-to: <20151221203800.GB23389@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>
On Dec 21, 12:38pm, frederik@xxxxxxx wrote:
}
} My disk filled up recently and I noticed that although Zsh was not
} able to write to the history file, it did not print any error
} messages.
Incremental appends do not generate error messages (cf. hist.c:1105
where the second argument to savehistfile() is zero).
This is because (a) it would mean up to two error messages per command
executed, which could make normal use of the shell difficult/annoying,
and (b) it's assumed there will be another attempt later, either on the
next command or at shell exit, so there's no reason to report transient
error conditions.
Most likely you are not seeing the error that is generated at shell exit
because your terminal window has already closed.
It's possible that we could examine errno and decide to issue the error
anyway in potentially critical situations.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author