Re: Strange 'ls' listing



On 7 April 2010 21:55, Kwan Lowe <kwan@xxxxxxxxxxxxxxxxx> wrote:
On Wed, Apr 7, 2010 at 4:43 PM, Michael Cronenworth <mike@xxxxxxxxxx> wrote:

I believe you can generate your own formatted output to workaround it.
Sure, not intuitive, but possible. You can alias "ll" to your custom
format output.

:)  Might do that...

I was interested because of the OP about the new behaviour breaking
some scripts.  In one company I'd worked I had some complaints about
some perl scripts that had failed to work after an OpenSSH update.
"Eh?" I thought... Turns out that their script was counting characters
in the ls output and grabbing the file size. Something changed in the
output at one point (I think it was a change from a 5 char username to
a 6 char username (like admin to webadm) and a bunch of scripts broke.

Yeah, I know...

FWIW, I'm not convinced that this behaviour breaks or should break
anything. The reason I say that is because in the position where there
can now be a ".", I have for many years seen occurrences of "+" - and
I've never heard of that being a problem before (and I used to use
WinSCP at the time).

From "info coreutils 'ls invocation'":


Following the file mode bits is a single character that specifies
whether an alternate access method such as an access control list
applies to the file. When the character following the file mode
bits is a space, there is no alternate access method. When it is
a printing character, then there is such a method.

GNU `ls' uses a `.' character to indicate a file with an SELinux
security context, but no other alternate access method.

A file with any other combination of alternate access methods is
marked with a `+' character.

--
Sam
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Relevant Pages

  • Re: file permissions
    ... Following the file mode bits is a single character that specifies ... there is no alternate access method. ... I suspected it had to be SELinux. ...
    (Fedora)
  • Re: Strange ls listing
    ... Following the file mode bits is a single character that specifies ... there is no alternate access method. ... The trouble with troubleshooting is that trouble sometimes - ...
    (Fedora)
  • Re: file permissions
    ... Following the file mode bits is a single character that specifies ... there is no alternate access method. ...
    (Fedora)
  • Re: [fw-wiz] OT, sorta: Breaking pipes?
    ... this is just an example of what might be done with anything written with custom scripts. ... encountering web sites that issue URLs with the pipe/vertical bar - ... web site that actually puts the pipe character at the end of the URL! ... for the not allowing URLs with the character through the proxy. ...
    (Firewall-Wizards)
  • Re: Order of new series?
    ... 'You are *the* Doctor' - just to remind him where he's at. ... Tennant does not write the scripts. ... His character can only reflect what the scripts direct him to do and say. ...
    (rec.arts.drwho)