3 ms·
Interesting, indeed it does: # define a function that echoes it's first argument: $ arg1() { echo $1 ; } $ arg1 test test $ arg1 <(echo h
by e12e 13y ago
Interesting, 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.