Re: RFE: new option affecting * expansion

2021-08-16 Thread Greg Wooledge
On Mon, Aug 16, 2021 at 10:35:12PM -0400, Dale R. Worley wrote: > Back in the old, old days, there was a program named "glob" that did > pathname expansions. So you wouldn't say > >cat * > > you'd say > >cat $( glob * ) Tcl still does it that way. Not with that syntax, but the

Re: RFE: new option affecting * expansion

2021-08-16 Thread Dale R. Worley
"Chris F.A. Johnson" writes: > It would be nice if there were an option to allow * to expand sorted > by timestamp rather than aphabetically. Generally, a new option is not a good way to accomplish this, as an option has global effects and can cause other parts of the code to malfunction. Back

Re: GROUPS

2021-08-16 Thread Dale R. Worley
It seems to me that people are avoiding both the core issue and its solution. A standard is what allows people to write software that can be ported without having to reassess every detail of the program. To take C as an example, the standard defines what identifiers look like, which identifiers

Re: Issue declaring an array via a variable name

2021-08-16 Thread Chet Ramey
On 8/14/21 8:45 PM, Hunter Wittenborn wrote: > Hi, > > > > I was doing some testing for some additions to a rather big Bash script I'm > working on, and the following code kept failing whenever I attempted to run > it: > > > > " > > variable="hello" > > > > declare -g

Re: "printf -v foo bar" sets $? to 1

2021-08-16 Thread Chet Ramey
On 8/14/21 7:56 PM, Keith Thompson wrote: > Bash Version: 5.1 > Patch Level: 4 > Release Status: maint > > Description: > The builtin "printf" command with the "-v" option works > correctly, but it reports failure by setting $? to 1. Thanks for the report. Chet -- ``The lyf

Re: An alias named `done` breaks for loops

2021-08-16 Thread Ilkka Virta
On Sun, Aug 15, 2021 at 2:00 AM George Nachman wrote: > Defining an alias named `done` breaks parsing a for loop that does not have > an `in word` clause. > alias done="" > Works for me: $ set -- a b c $ alias done='echo hi; done' $ for x do done hi hi hi Not that I think it's a good idea to