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

Re: empty pipes




On 2022-12-11 19:40, Bart Schaefer wrote:

That's why you have e.g. ${filter:-cat}.

Works.  Interesting that property 'cat' has of doing nothing there but politely moving the stream forward.  I don't recall ever using that construction before but the sweet thing is that I now know where to look for information about it.  Such wealth in the parameter expansions.  BTW thanks to our previous discussions concerning 'tree' I already know that my $filter must be an array quoted so as to present the correct invisible structure.  Easy once you understand the issue.

BTW, do we have hard spaces? In certain columnizing situations an empty field is a problem so a field of hard spaces would hold the position while showing nothing.






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