Re:If you use GNU grep on text files, use the -a (--text) op...
by Delk on Tuesday April 21, 2020 @07:54PM
(#22940584)
It would seem that calling ls with the -N switch would disable the quoting. Might be easier to just have ls aliased to "ls -N" rather than recompiling. Unless the -N switch also does something else you don't like.
[ Parent
| on HN ]
Re:If you use GNU grep on text files, use the -a (--text) op...
by arbitrage on Wednesday April 22, 2020 @11:28AM
(#22946576)
again, aliasing it is fine for interactive use.
the point is that this breaks an unbelievable amount of already deployed scripts. The new functionality should be optional, and accessed via switches and aliases if you like it.
this was very much a change only a few people liked, that they decided to force down literally everyone else's throats. it's very poor stewardship.
Re:If you use GNU grep on text files, use the -a (--text) op...
by Delk on Wednesday April 22, 2020 @04:43PM
(#22949991)
Okay. The GNU page says the quoting is only done when the output is a terminal, so it shouldn't generally affect scripts. Although considering that the world of unix shells is fairly complex, I wouldn't be surprised if there was some kind of a weird but explainable situation where some kind of a script would still break, so I suppose it could be a problem somewhere.