Re: Assignments to FUNCNAME break FUNCNAME

2014-11-28 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/28/14 7:53 PM, Arfrever Frehtes Taifersar Arahesis wrote: > Manual of BASH claims: > "Assignments to FUNCNAME have no effect and return an error status." > > However assignments to FUNCNAME actually break FUNCNAME. > I use BASH 4.3.30. Thanks f

Re: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Chet Ramey
On 11/28/14 5:38 PM, Askar Safin wrote: >> There are only a couple of ways to do this, so even though the mechanism >> konsole uses is undocumented, we can try to figure it out. There are two >> possibilities: inject a character into the input stream, or send a signal >> to the foreground process

Re: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Chet Ramey
On 11/28/14 8:17 PM, Askar Safin wrote: >>> Also, is there somewhere some real revision control system with bash >>> sources? http://git.savannah.gnu.org/cgit/bash.git appears to be >>> incomplete: "git bisect" shows that the problem is in >>> http://git.savannah.gnu.org/cgit/bash.git/commit/?

Re[2]: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Askar Safin
>> Also, is there somewhere some real revision control system with bash >> sources? http://git.savannah.gnu.org/cgit/bash.git appears to be >> incomplete: "git bisect" shows that the problem is in >> http://git.savannah.gnu.org/cgit/bash.git/commit/?id=ac50fbac377e32b98d2de396f016ea81e8ee9961

Assignments to FUNCNAME break FUNCNAME

2014-11-28 Thread Arfrever Frehtes Taifersar Arahesis
Manual of BASH claims: "Assignments to FUNCNAME have no effect and return an error status." However assignments to FUNCNAME actually break FUNCNAME. I use BASH 4.3.30. Variant with "local": $ A() { echo A; declare -p FUNCNAME; local FUNCNAME=(); } $ B() { echo B; declare -p FUNCNAME; } $ A A de

Re[2]: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Askar Safin
>There are only a couple of ways to do this, so even though the mechanism >konsole uses is undocumented, we can try to figure it out. There are two >possibilities: inject a character into the input stream, or send a signal >to the foreground process group. I tested this. This is not some symbol in

Re: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Chet Ramey
On 11/28/14 10:34 AM, Askar Safin wrote: >> Doesn't seem like a bug to me. You asked your terminal emulator to clear >> the screen. It did so. Now you complain that it's "too clean" :) > When I type Ctrl-L, screen clears, and prompt appears. Ctrl-Shift-X should > work the same and it should clear

Re: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Chet Ramey
On 11/27/14 5:27 PM, Askar Safin wrote: > Steps to reproduce: open konsole (with bash in it) and type Ctrl-Shift-X > (this is shortcut for "Clear Scrollback and Reset" feature in konsole). What > I see: the terminal clears and no prompt appear. What I expected: I expected > prompt to appear. >

Inconsistent behaviour of +=() and existing array keys

2014-11-28 Thread Maarten Billemont
So, referring to man bash, this is the description of +=: When += is applied to an array variable using compound assignment (see Arrays below), the variable's value is not unset (as it is when using =), and new values are appended to the array beginning at one greater than the array's maximum

Re: json + bash

2014-11-28 Thread Chet Ramey
On 11/27/14 11:25 PM, Sergei Tokaev wrote: > Hi out there. Will it be good to add json support in bash internally. As > in variable declarations: decalre "-j" "{"variable":"value"}" Why? What advantage would be gained by doing this? Is there a large number of developers wanting this feature? (H

Re[2]: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Askar Safin
>Doesn't seem like a bug to me. You asked your terminal emulator to clear >the screen. It did so. Now you complain that it's "too clean" :) When I type Ctrl-L, screen clears, and prompt appears. Ctrl-Shift-X should work the same and it should clear scrollback additionally. bash 4.3 + konsole behav

Re: json + bash

2014-11-28 Thread Pádraig Brady
On 28/11/14 13:02, Greg Wooledge wrote: > On Fri, Nov 28, 2014 at 10:25:52AM +0600, Sergei Tokaev wrote: >> Hi out there. Will it be good to add json support in bash internally. As >> in variable declarations: decalre "-j" "{"variable":"value"}" > > This doesn't seem like an appropriate addition t

Re: BASH_FUNC__ appearing in environment

2014-11-28 Thread steveT
On Friday, 28 November 2014 09:02:56 UTC, Geir Hauge wrote: > 2014-11-28 9:43 GMT+01:00 steveT : > > > OK - found the functions that are appearing. I was grepping BASH_FUNC__ in > etc - wrong. The functions are in the /usr/share/bash-completion/completions > directory - and exist as rcs and su

Re: json + bash

2014-11-28 Thread Greg Wooledge
On Fri, Nov 28, 2014 at 10:25:52AM +0600, Sergei Tokaev wrote: > Hi out there. Will it be good to add json support in bash internally. As > in variable declarations: decalre "-j" "{"variable":"value"}" This doesn't seem like an appropriate addition to bash, in my opinion. Where do you draw the lin

Re: bash 4.3: "Clear Scrollback and Reset" (Ctrl-Shift-X) in konsole stopped to work as expected when upgrading from upstream bash 4.2 to upstream bash 4.3

2014-11-28 Thread Ángel González
Doesn't seem like a bug to me. You asked your terminal emulator to clear the screen. It did so. Now you complain that it's "too clean" :) I understand how it may look confusing, but I don't think the term has much option here. Suppose that instead of the shell, you were executing something else (e

json + bash

2014-11-28 Thread Sergei Tokaev
Hi out there. Will it be good to add json support in bash internally. As in variable declarations: decalre "-j" "{"variable":"value"}" smime.p7s Description: Криптографическая подпись S/MIME

Re: BASH_FUNC__ appearing in environment

2014-11-28 Thread Geir Hauge
2014-11-28 9:43 GMT+01:00 steveT : > OK - found the functions that are appearing. I was grepping BASH_FUNC__ in > etc - wrong. The functions are in the /usr/share/bash-completion/completions > directory - and exist as rcs and sudo files. The code in those files > defines functions for _rcs and _s

Re: BASH_FUNC__ appearing in environment

2014-11-28 Thread steveT
On Friday, 28 November 2014 08:00:18 UTC, steveT wrote: > On Thursday, 27 November 2014 17:57:30 UTC, konsolebox wrote: > > On Fri, Nov 28, 2014 at 12:36 AM, steveT steveT wrote: > > > Is there any way that I can trace them back to their 'creator'? > > > > Besides checking common startup files l

Re: BASH_FUNC__ appearing in environment

2014-11-28 Thread steveT
On Thursday, 27 November 2014 17:57:30 UTC, konsolebox wrote: > On Fri, Nov 28, 2014 at 12:36 AM, steveT steveT wrote: > > Is there any way that I can trace them back to their 'creator'? > > Besides checking common startup files like /etc/profile and ~/.profile or > ~/.bashrc (see > http://www.g