[sr #110655] AT&T UnixPC (3b1) shell thrown off by #( after case.

Alain Knaff <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Follow-up Comment #6, sr #110655 (project autoconf):


[comment #4 comment #4:]
> That said, the observation that even current shells will choke on `eval` of
shell variables containing long runs of shell code including comments, is
valuable.  That's something we should be avoiding in general and not just in
this case.
> 
> (We should be trying to move away from shell variables containing shell
code, period.  That's what shell functions are for.)

Indeed. There is one remaining case of this in _AC_INIT_PREPARE, which sets up
a trap to be run on exit (after line 1315 of
/usr/share/autoconf/autoconf/general.m4). The trap is a huge string of shell
code. IMHO, the bulk of this should be in a function, to be called by a much
smaller trap. I'm also getting the impression that this causes problems on low
memory machines.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110655>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.