5 ms·
The redirect happens before the command is executed, so if you're trying to read from /etc/passwd, it's already been overwritten. Sponge will buffer the output
by ominous_prime 15y ago
The redirect happens before the command is executed, so if you're trying to read from /etc/passwd, it's already been overwritten. Sponge will buffer the output and write the file after the first command has executed.
- kachnuv_ocasek 15y agoAh, excuse my ignorance.