Bug#483860: posh: "local" can't be used as a function name

2008-06-10 Thread Stephane Chazelas
On Mon, Jun 02, 2008 at 05:12:45PM +0100, Stephane Chazelas wrote: > On Mon, Jun 02, 2008 at 03:04:55PM +, Clint Adams wrote: > > On Mon, Jun 02, 2008 at 11:58:59AM +0100, Stephane Chazelas wrote: > > > Another strange requirement that I see no shell implements even > > > posh, is that if a bui

Bug#483860: posh: "local" can't be used as a function name

2008-06-02 Thread Stephane Chazelas
On Mon, Jun 02, 2008 at 03:04:55PM +, Clint Adams wrote: > On Mon, Jun 02, 2008 at 11:58:59AM +0100, Stephane Chazelas wrote: > > Another strange requirement that I see no shell implements even > > posh, is that if a builtin (such as "[" or "echo" or ":") is not > > found in $PATH, its invocati

Bug#483860: posh: "local" can't be used as a function name

2008-06-02 Thread Clint Adams
On Mon, Jun 02, 2008 at 11:58:59AM +0100, Stephane Chazelas wrote: > Another strange requirement that I see no shell implements even > posh, is that if a builtin (such as "[" or "echo" or ":") is not > found in $PATH, its invocation should fail!?! Could you point me to that in the standard? --

Bug#483860: posh: "local" can't be used as a function name

2008-06-02 Thread Stephane Chazelas
On Sun, Jun 01, 2008 at 01:15:24PM +, Clint Adams wrote: > On Sun, Jun 01, 2008 at 12:11:39PM +0100, Stephane Chazelas wrote: > > then, posh has another problem with the other special builtins. > > As far, as I can tell, POSIX doesn't say that special builtin > > names can't be used as function

Bug#483860: posh: "local" can't be used as a function name

2008-06-01 Thread Clint Adams
On Sun, Jun 01, 2008 at 12:11:39PM +0100, Stephane Chazelas wrote: > then, posh has another problem with the other special builtins. > As far, as I can tell, POSIX doesn't say that special builtin > names can't be used as functions. It says that the command search order is special builtins, then f

Bug#483860: posh: "local" can't be used as a function name

2008-06-01 Thread Stephane Chazelas
On Sun, Jun 01, 2008 at 02:26:37AM +, Clint Adams wrote: > On Sat, May 31, 2008 at 06:21:35PM +0100, Stephane Chazelas wrote: > > $ local() { echo a; } > > $ local a > > $ "local" a > > $ > [...] > > Anyway, the above breaks POSIX conformance I think. POSIX only > > allows "select" and "functio

Bug#483860: posh: "local" can't be used as a function name

2008-05-31 Thread Clint Adams
On Sat, May 31, 2008 at 06:21:35PM +0100, Stephane Chazelas wrote: > $ local() { echo a; } > $ local a > $ "local" a > $ [...] > Anyway, the above breaks POSIX conformance I think. POSIX only > allows "select" and "function" as possible non-standard > keywords. "local" was incorrectly marked as a

Bug#483860: posh: "local" can't be used as a function name

2008-05-31 Thread Stephane Chazelas
Package: posh Version: 0.6.7 Severity: normal $ local() { echo a; } $ local a $ "local" a $ "local" is not a POSIX command, but I suspect it might be a "debian policy" extension to POSIX which may explain why posh has it. Anyway, the above breaks POSIX conformance I think. POSIX only allows "se