Re: Space as a key in an associative array - different behaviours

2018-01-26 Thread Chet Ramey
On 1/25/18 3:45 PM, Chet Ramey wrote: > These two commands are basically equivalent. By the time the expression > evaluation is performed, the expression has undergone word expansion, > and the expression is "A[ ]++" or "A[ ]=1", respectively. Bash doesn't > allow blank array subscripts, and when

Feature request: tab completion on functions

2018-01-26 Thread Odne Hellebø
I have some functions that are very similar and would like to be able to tabcomplete those. The command is like makeFoodSpaghetti and makeFoodLasagne. I get tabcompletion for make but if the nextletter isn't a capital letter it doesn't work and obviously need to have capital letter for S and L

Re: Feature request: tab completion on functions

2018-01-26 Thread Chet Ramey
On 1/26/18 5:57 AM, Odne Hellebø wrote: > I have some functions that are very similar and would like to be able to > tabcomplete those. The command is like makeFoodSpaghetti and > makeFoodLasagne. I get tabcompletion for make but if the nextletter isn't a > capital letter it doesn't work and ob

Re: Feature request: tab completion on functions

2018-01-26 Thread Ilkka Virta
On 26.1. 16:36, Chet Ramey wrote: You want to be able to complete shell function names case-insensitively even though you won't be able to execute the result? I can see case- insensitivity for executables on a case-insensitive file system like Mac OS HFS+ or APFS, but shell functions? Doesn't B

Fwd: coproc FDs (file descriptors) available to subshells

2018-01-26 Thread Tadeus Prastowo
Ping :) -- Forwarded message -- From: Tadeus Prastowo Date: Wed, Jan 24, 2018 at 7:52 PM Subject: Re: coproc FDs (file descriptors) available to subshells To: chet.ra...@case.edu Cc: bug-bash@gnu.org On Wed, Jan 24, 2018 at 7:32 PM, Tadeus Prastowo wrote: > On Wed, Jan 24, 2018

Re: Feature request: tab completion on functions

2018-01-26 Thread Chet Ramey
On 1/26/18 10:23 AM, Ilkka Virta wrote: > On 26.1. 16:36, Chet Ramey wrote: >> You want to be able to complete shell function names case-insensitively >> even though you won't be able to execute the result? I can see case- >> insensitivity for executables on a case-insensitive file system like >> M

Re: Fwd: coproc FDs (file descriptors) available to subshells

2018-01-26 Thread Tadeus Prastowo
On Fri, Jan 26, 2018 at 5:08 PM, Chet Ramey wrote: > On 1/26/18 10:56 AM, Tadeus Prastowo wrote: >> Ping :) > > I'll add something in the next devel branch push. Thank you in advance for fixing Bash doc. Have a nice weekend! > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer >

Re: Feature request: tab completion on functions

2018-01-26 Thread Odne Hellebø
@Chet why wouldn't I be able to execute the result? @Ilkka Virta you nailed it :) I may have been slightly unclear on what I want. I have 2 functions makeFoodSpaghetti and makeFoodLasagne. * ma * makeFood * makeFoodl <- this does nothing * makeFoodL-> expands to makeFo