help-bash
[Top][All Lists]
Advanced

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

Re: quote interpretation via vars without eval


From: Greg Wooledge
Subject: Re: quote interpretation via vars without eval
Date: Mon, 15 Mar 2021 15:39:31 -0400

On Mon, Mar 15, 2021 at 08:28:24PM +0100, Alex fxmbsw7 Ratchev wrote:
> btw greycat if you didnt watch it was command ls
> --quoting-style=shell-escape -cF ( | awk .. )

The ParsingLs wiki page does mention this, at the bottom.  It's a recent
addition to GNU coreutils, and as such is extremely non-portable.  And
requires the use of eval, *and* the use of bash (not sh).

Every other use of ls's output in a script is wrong.  If your script isn't
a bash script, it's wrong.  If your system isn't using GNU coreutils,
it's wrong.  If your version of GNU coreutils is older than ~2016, it's
wrong.



reply via email to

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