News for hackers. Stuff that matters.
Re:If you use GNU grep on text files, use the -a (--text) op... by knolax on Tuesday April 21, 2020 @06:01PM (#22939815)
A google search for 'ls quoting fiasco' shows this thread as the top result. Could you explain what it is?
Re:If you use GNU grep on text files, use the -a (--text) op... by smegma2 on Tuesday April 21, 2020 @10:13PM (#22941331)
There was a change in ls which caused it to quote file names with spaces or special characters instead of (I think?) escaping them. Some people were upset because they considered this a breaking change. I'll just add that ls only does this if it's running interactively so I wouldn't expect it to break scripts.
Re:If you use GNU grep on text files, use the -a (--text) op... by ansible on Tuesday April 21, 2020 @10:46PM (#22941534)
I'm a little surprised people are using ls in scripts. I'm normally using find, with the mill separator to deal with spaces in filenames.
Re:If you use GNU grep on text files, use the -a (--text) op... by ansible on Wednesday April 22, 2020 @07:23AM (#22944389)
... null separator ...

I thought I proof-read that sentence when I wrote it...