Quote:
I don't think cat is bad when you're working with known files containing known values. It's just unnecessary.
|
It's still bad to use the worst method available, even if it happens to work *this time*. It's just not generally reliable and rather fragile, so you can't use the script for any other input, which kinda defeats a lot of the point of scripting. Bash is already really bad about robust input handling, throwing away the little robustness it does offer is quite likely to bite you back eventually. Like, by deleting all of your data.