3 ms·
0. Process substitution is a potential DoS vector as it could take up all of RAM and/or disk space. 1. Also, not all commands are compatible with it, especiall
by errcorrectcode 5y ago
0. Process substitution is a potential DoS vector as it could take up all of RAM and/or disk space.
1. Also, not all commands are compatible with it, especially if they need rewinding or reopening. diff has issues with using it for both arguments often. It's likely the use of memory mapped files, but I could be wrong.
2. Shells ought to implement a flag for process substitution to allow temporary files to reside on disk for the lifetime of the command line. This way, it can operate on extremely large files.