Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Odd behavior with various (q) array modifiers and non-printable characters (backspace, newline)
- X-seq: zsh-users 26919
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zach Riggle <zachriggle@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Odd behavior with various (q) array modifiers and non-printable characters (backspace, newline)
- Date: Wed, 11 Aug 2021 14:27:23 -0700
- Archived-at: <https://zsh.org/users/26919>
- In-reply-to: <CAMP9c5k=MRwfuR_xNzJjUAMO8ds7Kr=OpM2QMD9+A9hLKHu3iw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAMP9c5k=MRwfuR_xNzJjUAMO8ds7Kr=OpM2QMD9+A9hLKHu3iw@mail.gmail.com>
One other thing ...
On Wed, Aug 11, 2021 at 1:29 PM Zach Riggle <zachriggle@xxxxxxxxx> wrote:
>
> $ mysed=( gsed "s/\ba\b/x/" )
>
> $ echo "aaaa a aaa" | "${mysed[@]}"
> aaaa x aaa
The string \b does not mean backspace in a GNU sed pattern, it means
"word boundary". I can't tell from your context whether you think the
replacement was incorrect.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author