mirror of
https://github.com/zsh-users/zsh
synced 2024-07-08 19:55:44 +00:00
users/17236: r and other fc output didn't metafy when listing to a file
other than stdout
This commit is contained in:
parent
361e171672
commit
dd3a8ead16
|
@ -1,3 +1,8 @@
|
|||
2012-09-08 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* users/17236: Src/builtin.c: r and other fc output didn't
|
||||
unmetafy when listing to a file other than stdout.
|
||||
|
||||
2012-09-06 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 30656: Src/math.c: treat dividing by -1 the same as
|
||||
|
@ -142,5 +147,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5716 $
|
||||
* $Revision: 1.5717 $
|
||||
*****************************************************
|
||||
|
|
|
@ -12,7 +12,7 @@ def(texinode)(4)(DELLINE)
|
|||
def(cindex)(1)(DELLINE)
|
||||
|
||||
def(sect)(1)(
|
||||
SECTHEAD
|
||||
SECTHEAD+CHAR(10)
|
||||
ARG1
|
||||
)
|
||||
|
||||
|
|
|
@ -1727,8 +1727,12 @@ fclist(FILE *f, Options ops, zlong first, zlong last,
|
|||
if (f == stdout) {
|
||||
nicezputs(s, f);
|
||||
putc('\n', f);
|
||||
} else
|
||||
fprintf(f, "%s\n", s);
|
||||
} else {
|
||||
int len;
|
||||
unmetafy(s, &len);
|
||||
fwrite(s, 1, len, f);
|
||||
putc('\n', f);
|
||||
}
|
||||
}
|
||||
/* move on to the next history line, or quit the loop */
|
||||
if (first < last) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user