Re: difficult alias

Eric Cook <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <103420d8-490c-4e03-ba4c-a3fa8dd610a2__26306.6173576348$1777819197$gmane$org@gmx.com>
On 5/3/26 10:23 AM, Ray Andrews wrote:
> ... can that alias be repaired?
It could, but why not just make it a function?

tst() { echo -E $var | fold -sw 80 | sed ':a;N;$!ba;s/\n/\n /g' }

It looks just like how you would type it interactively and allows you to copy and paste code from the definition without needed to undo
the escaping needed for it to be an alias.
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.