mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 02:52:12 +01:00
unposted: prvent zshaddhistory() from looking like a Yodl macro
This commit is contained in:
parent
20c2246d68
commit
342999a629
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-08-11 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Doc/Zsh/func.yo: prevent zshaddhistory() looking
|
||||
like a Yodl macro.
|
||||
|
||||
* 25429: Rocky Bernstein: Test/E01options.ztst,
|
||||
Test/E02xtrace.ztst: don't assume PS4 is set to the default.
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ history with the newline stripped, which is usually the correct behaviour.
|
|||
Then it switches the history context so that the line will
|
||||
be written to a history file in the current directory.
|
||||
|
||||
example(zshaddhistory() {
|
||||
example(zshaddhistory+LPAR()RPAR() {
|
||||
print -sr -- ${1%%$'\n'}
|
||||
fc -p .zsh_local_history
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue