Re: `complete -p -- ` doesn't yield reusable input when "-F" is assigned an invalid identifier

2019-01-29 Thread Great Big Dot
> On Sun, Jan 27, 2019 at 6:14 PM Chet Ramey wrote: > > > I prefer this behavior, at least to the extent that the function name > argument to -F can't contain any shell metacharacters. > But it can, and that's the problem. E.g.: $ complete -F 'meta;char' -- cmd yields no errors. `complete` is

`complete -p -- ` doesn't yield reusable input when "-F" is assigned an invalid identifier

2019-01-24 Thread Great Big Dot
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local /bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bi

Removing a function's function attribute makes `declare` not know it's a function (kind of)

2018-11-21 Thread Great Big Dot
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'

Re: The builtin array variable 'FUNCNAME' is considered unset by many expansions, even when set.

2018-11-08 Thread Great Big Dot
conclude that FUNCNAME[0] is empty and other times that FUNCNAME[*] is empty, under seemingly arbitrary circumstances? I can't figure out what could be causing that. On Thu, Nov 8, 2018 at 9:57 AM Chet Ramey wrote: > On 11/8/18 1:15 AM, Great Big Dot wrote: > > > Bash Version: 4.4 &

Re: The builtin array variable 'FUNCNAME' is considered unset by many expansions, even when set.

2018-11-08 Thread Great Big Dot
nsistency is still there! On Thu, Nov 8, 2018 at 8:28 AM Greg Wooledge wrote: > On Thu, Nov 08, 2018 at 01:15:56AM -0500, Great Big Dot wrote: > > Description: > > The builtin array variable FUNCNAME (which provides a way to trace the > > stack of functions called so

The builtin array variable 'FUNCNAME' is considered unset by many expansions, even when set.

2018-11-07 Thread Great Big Dot
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'

Fwd: Indices of array variables are sometimes considered unset (or just display an error).

2018-11-06 Thread Great Big Dot
Crap, looks like I accidentally just replied to a single person instead of the whole list. Here it is (and sorry if I'm uselessly cluttering up everyone's inboxes!): -- Forwarded message ----- From: Great Big Dot Date: Tue, Nov 6, 2018 at 5:45 PM Subject: Re: Indice

Indices of array variables are sometimes considered unset (or just display an error).

2018-11-06 Thread Great Big Dot
On 11/5/18 8:44 PM, Great Big Dot wrote: > > What's actually happening here is that the *indirection* expansion > > "${!foo}", and not the *indices* expansion "${!foo[@]}", is what is being > > preformed on something like "${!array[@]-}". Bo

Re: Indices of array variables are sometimes considered unset (or just display an error).

2018-11-05 Thread Great Big Dot
> On Mon, Nov 5, 2018 at 4:56 PM Great Big Dot wrote: > [... A]ccessing the index list of multiple-element arrays > fails when you append the unset expansion. With single-element > arrays, it fails iff the element in question contains any special > characters or whitespace, and t

Re: Indices of array variables are sometimes considered unset (or just display an error).

2018-11-05 Thread Great Big Dot
On Mon, Nov 5, 2018 at 4:56 PM Great Big Dot wrote: > The parameter expansion "${!var[@]}" expands to the indices of an array (whether linear or associative). Hold up... when I view this email on the public archives, all of my "${array[@]}"'s (that is, "${ar

Indices of array variables are sometimes considered unset (or just display an error).

2018-11-05 Thread Great Big Dot
uname output: Linux ArchBox0 4.18.16-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018 x86_64 GNU/Linux Machine Type: x86_64-unknown-linux-gnu Bash Version: 4.4 Patch Level: 23 Release Status: release --text follows this line-- Description: The parameter expansion "${!var[@]}" expan