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

Re: [Review Request] Arrays and their usage



On Mon, May 31, 2021, at 4:04 PM, René Neumann wrote:
> Fun fact: I prefer `...`, because I find it more legible, especially in 
> the x=`cmd y z` form¹.

If you're doing command substitution in a context where you have
to suppress word-splitting yourself, then you're choosing between

    outer_cmd foo "`inner_cmd bar`" baz

and

    outer_cmd foo "$(inner_cmd bar)" baz

Many (including me) would consider "`...`" less legible.

> (NB though: The linebreak for the two pipe elements was inserted for 
> this email only, with me hoping, that backslash newline was the correct 
> thing to do ;))

The backslash isn't necessary if the vertical bar is at the end of
the line.

> What does 'rc' stand for?

rc is the shell for Research Unix Version 10 and Plan 9.

https://en.wikipedia.org/wiki/Rc

-- 
vq




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