3 ms·
>(foo) turns into a file name, so it can be passed to things that absolutely want a file name to write to. And multiple occurrences of this should work as you'd
by bartbes 13y ago
>(foo) turns into a file name, so it can be passed to things that absolutely want a file name to write to. And multiple occurrences of this should work as you'd expect.
- e12e 13y agoInteresting, indeed it does: # define a function that echoes it's first argument: $ arg1() { echo $1 ; } $ arg1 test test $ arg1 <(echo hello) /dev/fd/63
- Hello71 13y agoecho <(:)
- e12e 13y agoThanks, I've never investigated ":" beyond noting it's presence in fork bombs. : Null command. No effect; the command does nothing. Exit Status: Always succeeds.
- taejo 13y agoBasically a builtin for `true`. Its use in forkbombs is unrelated except for the fact that it's a valid character in a bash function name. Defining `:(){:|:&)` obviously shadows the builtin.