Re: difficult alias

Ray Andrews <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.