Re: 'official function declaration format' doesn't work if alias defined

2016-01-07 Thread Greg Wooledge
On Wed, Jan 06, 2016 at 03:49:35PM -0800, Linda Walsh wrote: > I had an alias referring to printf that I wanted to replace > with a function. > > But then ran into problems with the alias taking precedence over the > function. Yup. That's one of the many evils of aliases. They need to be remove

Re: bug: readonly array that is empty causes error (whereas not empty does not)

2016-01-07 Thread Chet Ramey
On 1/7/16 1:54 AM, James Thomas Moon wrote: > I attempted to reproduce the error. The closest error I could reproduce is > slightly different than my original email suggests. > The problem I reproduced below is an undefined variable. To the best of my > recollection, the original error was silent

Re: Feature: Easily remove current command from history

2016-01-07 Thread Chet Ramey
On 1/5/16 8:08 AM, Greg Wooledge wrote: > imadev:~$ zap me > bash: zap: command not found > imadev:~$ history -d -1 > bash: history: -1: history position out of range > imadev:~$ history -d end > bash: history: end: history position out of range > > Allowing a negative offset to refer to the last

Re: Default time for unmarked history lines

2016-01-07 Thread Reuben Thomas
On 7 January 2016 at 20:07, Eduardo A. Bustamante López wrote: > (2) The history should be ordered monotonically (increasing?) > ​Yes, and it's not at the moment (or wasn't, until I added timestamps to every line in my history), because the lines at the start of the history, with no timestamp, w

endpwent protection via HAVE_GETPWENT missing in shell.c:1696

2016-01-07 Thread pb
The subject says it all. All other occurrences (in lib/tilde and lib/readlibe) of endpwent are protected with #ifdef HAVE_GETPWENT ... #endif Maybe somebody can add this to the source Cheers, Peter

bind command dies on bad syntax

2016-01-07 Thread Andrew Kurn
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba

Re: 'official function declaration format' doesn't work if alias defined

2016-01-07 Thread Reuti
Hi, Am 07.01.2016 um 00:49 schrieb Linda Walsh: > I had an alias referring to printf that I wanted to replace > with a function. > > instead of using the function declarator > 'function' (or my alias 'sub'), I remembered that the official > way was to use: > > P () { > ... > } > > But then r

Re: Default time for unmarked history lines

2016-01-07 Thread Eduardo A . Bustamante López
On Thu, Jan 07, 2016 at 08:56:06PM +, Reuben Thomas wrote: [...] > ​Yes, and it's not at the moment (or wasn't, until I added timestamps to > every line in my history), because the lines at the start of the history, > with no timestamp, were given the current date and time, and lines at the > e