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

Re: less with subprocess



On 2021-09-29 15:13:14 +0200, Pier Paolo Grassi wrote:
> in this command:
> 
> LF () { () { cat >$1 &! less $1 ; kill $! } =(:) }
> 
> what is the purpose of =(:)?

To create a temporary file (which will be removed as soon as the
function returns), AFAIK. It is referenced as $1 in the body of
the function.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




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