bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Functions with heredoc in command list misformatted by set


From: Chet Ramey
Subject: Re: Functions with heredoc in command list misformatted by set
Date: Sun, 13 Jul 2008 16:08:10 -0400
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

address@hidden wrote:
Bash Version: 3.2
Patch Level: 33
Release Status: release

Description:

The 'set' command is supposed to print function definitions "in a format
that may be reused as input for setting or resetting the currently-set
variables." However, it misformats command lists that use heredocs. The
'type' command has the same problem. (I noticed this problem because
Gentoo's build system tries to save and restore the environment this way,
and it was producing syntax errors.)

Thanks for the report.  This is fixed in bash-4.0 (it took a while for the
right solution to bubble up).

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]