Quoting Jack L. Frost (f...@fleshless.org):
> No. The way you use ls in scripts is you don't.
> http://mywiki.wooledge.org/ParsingLs
Amen to that. That's why this entire thread's more than a bit silly.
Use file(1) for that purpose, for heaven's sake.
--
Cheers, Grossman's Law: "In
Personally, I only need to use `for f in /dir/*`.
Failing that, `echo /dir/*` (possibly piped through xargs) works too.
`ls` seems to be more for human eyes than scripting anyway.
All the modes, etc. should really be read through `stat`.
But when you're just starting out, you probably don't kno
On Sun, Aug 07, 2016 at 08:00:17PM +0200, Tomasz Torcz wrote:
Debian was dilligent enough to revert the patch (half a year ago).
Half a year ago?
If that's true, then this must be old news, and I apologize.
However, the messages concerning coreutils changes only appeared in my
inbox recently
On Sun, Aug 07, 2016 at 01:22:25PM -0400, Brian Nash wrote:
> I'm not sure on the specifics of the change, but for most scripted uses
> you would probably pass it the `-1` flag anyway.
>
> If it doesn't list one file per line anymore, that could be quite
> serious: we would need to use `dir` inste
On Sun, Aug 07, 2016 at 04:26:59PM -0400, Steve Litt wrote:
> On Sun, 7 Aug 2016 20:00:17 +0200
> > I guess this is about weird, superflous quoting in “ls”:
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813164
> >
> > Debian was dilligent enough to revert the patch (half a year ago).
>
On Sun, 7 Aug 2016 20:00:17 +0200
Tomasz Torcz wrote:
> On Sun, Aug 07, 2016 at 01:33:32PM -0400, Peter Olson wrote:
> > > On August 7, 2016 at 1:22 PM Brian Nash wrote:
> > >
> > > Greetings everyone.
> > >
> > > This is just a heads up, GNU has had a few changes floating
> > > around for a w
On Sun, Aug 07, 2016 at 01:33:32PM -0400, Peter Olson wrote:
> > On August 7, 2016 at 1:22 PM Brian Nash wrote:
> >
> > Greetings everyone.
> >
> > This is just a heads up, GNU has had a few changes floating around for a
> > while, and it looks like they are finally making it into distributions.
> On August 7, 2016 at 1:22 PM Brian Nash wrote:
>
> Greetings everyone.
>
> This is just a heads up, GNU has had a few changes floating around for a
> while, and it looks like they are finally making it into distributions.
>
> Currently, only Fedora is affected (which I doubt anyone here uses)
Greetings everyone.
This is just a heads up, GNU has had a few changes floating around for a
while, and it looks like they are finally making it into distributions.
Currently, only Fedora is affected (which I doubt anyone here uses),
but it is possible that these changes will make it to Debian a