4 ms·
That might be sensible, but also obscure the script logic. Since using Linux exclusively, I don't think I've ever encountered an issue due to too many argument
by mhitza 2y ago
That might be sensible, but also obscure the script logic.
Since using Linux exclusively, I don't think I've ever encountered an issue due to too many arguments/length. And it's the first time I'm actively searching online for ARG_MAX.
I understand that different shells might be different, but with reasonable lengths is there any chance of it being relevant (aside from xargs, where it's generally intended, or better, to pass along each argument individually).
- amelius 2y agoI started running into these issues when I started working with training examples in the context of deep learning. A folder with millions of files is then not unheard of. Also if you do things like */*/*, then you can quickly get large command lines. Or even if you do long_name/another_long_name/*.
- wodenokoto 2y agoI've had problems with "cat *.csv" plenty of times processing data that is generated in many small files. It is really difficult to deal with, because on top of the arg max limit, globs are not guaranteed to be in order. The solution is not obvious and hard to get to if you don't know the foot guns in advanced and hard to read once implemented.