* Print -s/-S – how to append to history file?
@ 2016-11-30 6:07 Sebastian Gniazdowski
2016-11-30 17:14 ` Print -s/-S - " Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Gniazdowski @ 2016-11-30 6:07 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Print -s/-S - how to append to history file?
2016-11-30 6:07 Print -s/-S – how to append to history file? Sebastian Gniazdowski
@ 2016-11-30 17:14 ` Bart Schaefer
2016-11-30 20:04 ` zmv changes prompt Ray Andrews
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2016-11-30 17:14 UTC (permalink / raw)
To: Sebastian Gniazdowski, zsh-users@zsh.org
On Nov 30, 1:07am, Sebastian Gniazdowski wrote:
}
} 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?
Running "fc -A -I" should do it. Automatic inc_append_history only happens
for "real" history events from prompt.
^ permalink raw reply [flat|nested] 3+ messages in thread
* zmv changes prompt
2016-11-30 17:14 ` Print -s/-S - " Bart Schaefer
@ 2016-11-30 20:04 ` Ray Andrews
0 siblings, 0 replies; 3+ messages in thread
From: Ray Andrews @ 2016-11-30 20:04 UTC (permalink / raw)
To: zsh-users
Gentlemen:
'zmv' changes my prompt:
4 /boot 4$ . zmv -C 'lilo.(????)-4' 'lilo.$1-5'
...
$_tty $_blu/boot $_mag4$
I need to restart the shell to get it back. Anything I can do about that?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-03 0:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-30 6:07 Print -s/-S – how to append to history file? Sebastian Gniazdowski
2016-11-30 17:14 ` Print -s/-S - " Bart Schaefer
2016-11-30 20:04 ` zmv changes prompt Ray Andrews
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).