Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: difficult alias





On 2026-05-03 12:26, Klaus Ethgen wrote:
Hi,

Am So den  3. Mai 2026 um 15:23 schrieb Ray Andrews:
% alias tst='echo $var | fold -sw 80 | sed '\':a;N;$!ba;s/\n/\n /g\'''
zsh: command not found: N
zsh: now is the time not found
Is it just me or are you using an unquoted ";"?
I gave up trying to fix it.  There's three levels of quotes as it is.  As Eric said, just make it a function and there's no issue.


Regards
    Klaus





Messages sorted by: Reverse Date, Date, Thread, Author