Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Error in zshaddhistory() should not prevent command from running
- X-seq: zsh-workers 40256
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Error in zshaddhistory() should not prevent command from running
- Date: Sun, 1 Jan 2017 11:20:30 -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; bh=mJuuKsA0DPPhEr6C1fAzNHjTHuc1m4XD6KnS6lb6oPo=; b=ebdjS+BeIlvlHcdR1vBGMxgbdpLKWm5Abhv3VZjyzBeZ2pEI4iJMCU4EzYEHiN9Dga KTzNeYbz4yA3AncKEXDYScEQ9ROcCgmh2Pf5AS7goSlqZ57kxZ03LRd+cnI6nVeis0w2 a5EU8h1IqC9g1ZDKnQrCtY1nxGDNrrW0F/3B5DdEmCwTeNl9AdXURL39Z/fjHa/7YFS0 fiQ5Ei6AHNCLwfitopSlPHLmycHQnalOTHB37YEBe/KjJM9D9C5TkWLVKRctb2u6Fk65 vihthmqxyEcJ1HcNkBcP9uO3vsKFNqQ76G0vuwTBExmBdnYCAIWSI46OwfmFE9FtScdO tTuw==
- In-reply-to: <20170101031034.GA15639@fujitsu.shahaf.local2>
- 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: <alpine.LRH.2.00.1612302212060.4560@toltec.zanshin.com> <20170101031034.GA15639@fujitsu.shahaf.local2>
On Jan 1, 3:10am, Daniel Shahaf wrote:
} Subject: Re: Error in zshaddhistory() should not prevent command from runn
}
} > Possibly more controversial, why run this hook at all when nothing is
} > being added?
}
} 2) It's easier to call the user-provided hook function on one more case
} that it can easily ignore, than not to do so and to leave the user with
} no easy alternative.
As far as I can tell the only case where *chline == '\0' is when the EOF
character has been typed -- there's always at least a newline in there
in all other circumstances. There are lots of other places to add to
the history on shell exit. But this is why I asked -- other opinions?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author