Re: Unsetting all elements of an associative array

2015-02-05 Thread isabella parakiss
On 2/4/15, konsolebox wrote: > Logically that should only unset the elements of an array and not the > array variable > itself since '*' or '@' is more of a wildcard that represents the > indices. However, bash > does otherwise: > > #define ALL_ELEMENT_SUB(c)((c) == '@' || (c) == '*') > > .

Finding the last foreground command in the current session

2015-02-05 Thread Debarshi Ray
Hey, I work on gnome-terminal. I am trying to add support for notifying the user when a long-running command finishes in an inactive tab or window. I am currently emitting a custom escape sequence [1] from PROMPT_COMMAND, with the command parsed from $(history 1) as an argument. However, we are

Finding the last foreground command in the current session

2015-02-05 Thread Debarshi Ray
Hey, I work on gnome-terminal. I am trying to add support for notifying the user when a long-running command finishes in an inactive tab or window. I am currently emitting a custom escape sequence [1] from PROMPT_COMMAND, with the command parsed from $(history 1) as an argument. However, we are

Re: Unsetting all elements of an associative array

2015-02-05 Thread Chet Ramey
On 2/5/15 8:06 AM, isabella parakiss wrote: > On 2/4/15, konsolebox wrote: >> Logically that should only unset the elements of an array and not the >> array variable >> itself since '*' or '@' is more of a wildcard that represents the >> indices. However, bash >> does otherwise: >> >> #define A