coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ls quoting improvements


From: Mike Frysinger
Subject: ls quoting improvements
Date: Thu, 21 Jan 2016 14:25:57 -0500

in cases where the filename has a single quote in it, and no other
expandable chars (like $ or `), would it be better to use double
quotes to quote the output ?

for example, i have a file like:
        My Sister's stuff.xls

the new ls quote behavior shows it like:
        'My Sister'\''s stuff.xls'

double quotes would be nicer:
        "My Sister's stuff.xls"

on a related note, how do you turn this off ?  the `ls --help` only
shows ways to turn it on, and i don't see options from a quick scan
of the ls.c code.
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]