From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10283 invoked by alias); 21 Dec 2015 20:54:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37419 Received: (qmail 3682 invoked from network); 21 Dec 2015 20:54:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=O0MXFJmXjvLmdmAU8PKOfJfFOpUelwfNCa3dcO+0Kbc=; b=EQ2PkIQDqzkJxBzKaaeLvG8jV+ea6bqzB9NmjupiXcseFatfYoMylfzFhbA5ZqMGXs HYmHYnlkakqdsTr1lxxnU0JRzTo4qWaXLbZgMJXFVkXBW4R71s/LEL+VwyAq7x84mrjf dZ13wfggQ+DMS3A2AAnfxqe2fXPUTD2dzOn/DsvQInZoGOSI+RvRq2VnOLKfc+o+mzBB GHGw6ouQyXHvKgs+qyP+ZdIvXyf4IPgoCGZOCSax2iw4sNbLGo70b7TJ3YyFsWGEyUGh UH75MrRg/4a1eR9rHpktFOCP5q6qbzwnEiAvDZpcowuA8vdCCaiYWE7jV0bcvX1WMUL9 oo2A== X-Gm-Message-State: ALoCoQmU3RGEZAO34S9xNJBWnB7dcQL1+GWDJG4V7PZhrwi0ritqf0fQPmdLVGRnzpdb6HmGG+L2mPK9JeTuTVfaNlEALDy89A== X-Received: by 10.67.7.101 with SMTP id db5mr30002269pad.53.1450731255573; Mon, 21 Dec 2015 12:54:15 -0800 (PST) From: Bart Schaefer Message-Id: <151221125450.ZM21081@torch.brasslantern.com> Date: Mon, 21 Dec 2015 12:54:50 -0800 In-Reply-To: <20151221203800.GB23389@ofb.net> Comments: In reply to frederik@ofb.net "question about saving history and error reporting" (Dec 21, 12:38pm) References: <1450718785.14170.ezmlm@zsh.org> <20151221203800.GB23389@ofb.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: question about saving history and error reporting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 21, 12:38pm, frederik@ofb.net 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.