[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: typeset does not make variable local in function
From: |
Clay Harris |
Subject: |
Re: typeset does not make variable local in function |
Date: |
Thu, 7 Jun 2007 01:01:32 -0500 (CDT) |
I traced the problem down to the ksh that comes packaged
with fedora core. bash is Fine. ksh is broken.
On Wed, 6 Jun 2007 23:01 -0400, Chet Ramey quoth thus:
> Clay Harris wrote:
> > Problem:
> >
> > typeset, when used in a function should always mark the variable as local.
> > When bash is in ksh mode, it fails to do this.
>
> I can't reproduce this with bash-3.0, bash-3.1, or bash-3.2 (all patched)
> on MacOS X and FC6. Bash does not have a `ksh mode'.
>
> Chet