Re: bash/set - bad expansion for function while used as input
From:
Chet Ramey
Subject:
Re: bash/set - bad expansion for function while used as input
Date:
Thu, 21 Dec 2000 12:17:54 -0500
> Bash Version: 2.04
> Patch Level: 0
> Release Status: release
> =20
> Description:
> set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
> Without options, the name and value of each shell variable
> are displayed in a format that can be reused as input.
What solution do users prefer? POSIX.2 says only variables should be
printed, but printing functions seems like a reasonable thing to do.
How about printing only variables in POSIX mode, and printing functions
(but not as pseudo-assignment statements) when not in POSIX mode?
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/