Re: what's with that trailing "." for the mode from "ls -l"

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

 



Bryn M. Reeves wrote:
> On Thu, 2009-11-12 at 07:45 -0500, Robert P. J. Day wrote:
[...]
>>   a followup question would be, is there an ls option that would
>>   *prevent* that security setting character from being printed?  i
>>   ask since i'm working with a software project (openembedded) that
>>   specifically takes a mode setting in symbolic mode (from the
>>   output of "ls -l"), and uses sed to translate it to numeric mode,
>>   and the script to do that doesn't take into account that
>>   potential trailing period and promptly converts, say,
>>   "-rwxr-xr-x." to the string "755.", which then causes the
>>   subsequent call to install to crash with a bad numeric mode
>>   argument.
>
> Not that I know of. The "What information is listed" node of the ls
> info pages describes the characters used to indicate alternate
> access methods when listing files with '-l' but does not mention a
> way to suppress this.

I would argue that scraping the ls output in this way is broken and
that openembedded is what should be fixed (using stat as Sanya
suggests is one good alternative).

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Honesty may be the best policy, but it's important to remember that
apparently, by elimination, dishonesty is the second-best policy.
    -- George Carlin

Attachment: pgpRFuB4PKR07.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux