Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug Report: Escaped backslash incorrectly reinterpreted as control escape in double-quoted strings
- X-seq: zsh-workers 54108
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug Report: Escaped backslash incorrectly reinterpreted as control escape in double-quoted strings
- Date: Wed, 26 Nov 2025 12:29:48 +0000 (GMT)
- Archived-at: <https://zsh.org/workers/54108>
- Feedback-id: 20251126-p.w.stephenson@xxxxxxxxxxxx:oxsmtp-prd-nl-vmo:Authrelay:p.w.stephenson@xxxxxxxxxxxx
- Importance: Normal
- In-reply-to: <CAHYJk3SJ38vhwFTNZXMvREhDhp4QGKjDwm=SZjn2AN_nF5OBrQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <0106019abf2d11a1-48f806bc-de4e-485b-8b05-1d33a244305a-000000@ap-northeast-1.amazonses.com> <CAHYJk3SJ38vhwFTNZXMvREhDhp4QGKjDwm=SZjn2AN_nF5OBrQ@mail.gmail.com>
> On 26/11/2025 10:29 GMT Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> This is not a bug, but the default behavior of echo in zsh as
> documented.
Indeed, this is quite easy to see.
% echo "\`\\blog\\\`"
log\`
# With system echo
% /bin/echo "\`\\blog\\\`"
`\blog\`
# With raw print, suppressing interpretation of backslashes
% print -r -- "\`\\blog\\\`"
`\blog\`
On my Ubuntu system all the command line printf's I can lay my hands on
actually behave the same as zsh, including the external command and
those built into other shells.
cheers
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author