Add command substitution
commit6b719b5ea987a7c9ec87104dc1863c1dc7fc5df3
authorff <_ff@tuta.io>
Wed, 13 Dec 2017 12:53:48 +0000 (13 13:53 +0100)
committerff <_ff@tuta.io>
Wed, 13 Dec 2017 12:53:48 +0000 (13 13:53 +0100)
tree395ca70e2f82e626d8e6ea5ba9cb4a39f3b8b73c
parent49c18b2a145db396f52d4063734c6a39ae505765
Add command substitution

If a command contains parentheses,
what is inside is executed and its output substitutes it.
Command substitution can work multiples times in a row and nested.
Splicing is automatic:
if the output of the substituted command contains the null character,
it is automatically separated into multiple words.
This is always the desired behavior,
because it cannot appear inside a word.
Inside command substitution,
parentheses and newline lose their special meaning.
Devember/log13.txt [new file with mode: 0644]
src/minish-read.c
src/minish.c