4 ms·
I'm not sure if this is POSIX, but if you program accepts positional arguments, in bash you can do eg.: diff <(somecommand) <(someothercommand) and the s
by chousuke 11y ago
I'm not sure if this is POSIX, but if you program accepts positional arguments, in bash you can do eg.:
diff <(somecommand) <(someothercommand) and the shell will replace these with /dev/fd/<n>, allowing you to also accept standard input without relying on hardcoded file descriptors.
- frou_dh 11y agoCool tip. You're right though, bash in /bin/sh mode doesn't have that feature.