Geoff Clare <g...@opengroup.org> wrote: > It's only easy because (most/all?) shells take the easy option and do > a lexical analysis of the command to be substituted. Applications can't > expect the following to work, but if the feature was implemented > "properly", it would: > > showalltraps() { trap -p; } > alltraps=$(showalltraps)
Could you explain what you understand by "most shells take the easy option and do a lexical analysis of the command to be substituted." What I however remember is that nobody checked the output of the command when used in a command substitution...while we discussed the new feature. Jörg -- EMail:jo...@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'