Timeline for Is $() a subshell?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 9, 2018 at 12:42 | comment | added | dr_ | Yep, on CentOS v7.4.1708 (fairly recent) bash is v4.2.46. | |
| May 9, 2018 at 8:17 | comment | added | Gilles 'SO- stop being evil' | @dr01 On the contrary, bash 4.4 changed the wording of that sentence to include the word “subshell”. It was a clarification: the manual explicitly mentioned that various other constructs were subshells, but until 4.4 it wasn't explicitly stated for command substitution. | |
| May 9, 2018 at 8:16 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 4.0 |
added 18 characters in body
|
| May 9, 2018 at 6:55 | comment | added | dr_ |
Interestingly, under CentOS 7 the bash manpage doesn't mention any subshell: Bash performs the expansion by executing command and replacing the command substitution with the standard output of the command, with any trailing newlines deleted. I wonder if this was a deliberate omission.
|
|
| May 9, 2018 at 6:36 | comment | added | Stephen Kitt | This is also explicitly specified by POSIX. | |
| May 9, 2018 at 6:33 | history | answered | Ignacio Vazquez-Abrams | CC BY-SA 4.0 |