Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Print -s/-S – how to append to history file?
- X-seq: zsh-users 22132
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Print -s/-S – how to append to history file?
- Date: Wed, 30 Nov 2016 01:07:55 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1480486076; bh=ZTINcQWw8AxvH25LGvaBalfx9nL4WZo+0rtr1wOKNuQ=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=xWqVa8cndZZznnoJ78vgn6cbKJ3e+Fe0DFHjdo+Gyl6R8Ux5wRX5HMa6XZuvujEGA wHvPS7//lOhiN7zn2gm0RR980eHwvp7TZQgehMR91PDstbqnFaLG+Dld4AYfwWmtFO zNEDI/eRLFByemyqRQm28nSxO3R3ZSWw9mgJscyM=
- Feedback-id: n8vhQeMg8gcF_i4HjViOQAxa9T5VRuUA88GY-ziCDDzRPt_42LIJNlWJ9Md3T-Bnym1gjci_iPC0xIpBhEJnGQ==:Ext:ProtonMail
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: Sebastian Gniazdowski <psprint@xxxxxxxxxxxxxx>
Hello,
doing print -s/-S indeed places the argument in $history. However, even though inc_append_history is set, file $HISTFILE isn't updated. Is there a way to make it work? AFAIK update of history file is done exclusively, with locking. If I will just echo -E entry with $'\n' replaced to "\"$'\n', it will be somewhat possible that two processes will write $HISTFILE in the same time?
--
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author