Article 58FD7 ls quoting non existing files

ls quoting non existing files

by
bagpussnz
from LinuxQuestions.org on (#58FD7)
Hi,
This came in post ls version 8.25.

If you do an ls of a file that doesn't exist, it puts quotes around the file in the error message.

E.g. if foo doesnt exist

# ls foo
ls: cannot access 'foo': No such file or directory

On older (pre 8.25 inclusive), you get,

# ls foo
ls: cannot access foo: No such file or directory

None of the quoting-style options change this.

Any ideas? I can potentially put alias and functions in place, but seems overkill.
It's for an automated regression system with expected output.

Cheers,
Ianlatest?d=yIl2AUoC8zA latest?i=A2kbs80SeqI:wcPJ9pbIvcg:F7zBnMy latest?i=A2kbs80SeqI:wcPJ9pbIvcg:V_sGLiP latest?d=qj6IDK7rITs latest?i=A2kbs80SeqI:wcPJ9pbIvcg:gIN9vFwA2kbs80SeqI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments