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)



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