Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Bash-5.3-Release Available (lists.gnu.org)
6 points by oguz-ismail 6 months ago | hide | past | favorite | 1 comment


> There is a new form of command substitution that executes the command in

> the current shell execution context. Two forms are implemented: one that

> reads the command substitution's output and another that expects to find

> the result in the REPLY shell variable when the command substitution

> completes.

> New form of command substitution: ${ command; } or ${|command;} to capture

> the output of COMMAND without forking a child process and using pipes

This is awesome. I haven't tested it yet, but if it is what I imagine, it means lots of speed for function/builtin calls.

The REPLY variable comes historically from the `read` command default variable name, so it's familiar for experienced shell users.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: