3 ms·
Interestingly, none of the two Bash versions in the comments are equivalent to your code, which kind of prove your point with Bash being tricky. `while sleep 1`
by laurent123456 10y ago
Interestingly, none of the two Bash versions in the comments are equivalent to your code, which kind of prove your point with Bash being tricky. `while sleep 1` means the script will sleep once before running `df`, while it should only sleep after. The other command also won't work because it's missing colons between commands.
- INTPenis 10y agoThe point I wanted to make was that OP sacrificed compatibility with all major distros for being rid of "; do", essentially. I just don't see the point. Bash might have flaws, nothing is perfect, but it's one vital piece of software that most distros have installed.