Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Here-strings and $functions
- X-seq: zsh-workers 15466
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Here-strings and $functions
- Date: Tue, 24 Jul 2001 02:45:29 +0000
- In-reply-to: <010723181213.ZM14442@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010722224707.BD7621428E@xxxxxxxxxxxxxxxxxxxxxxxx> <3B5C06E6.FFFCCFCC@xxxxxxxxxxxxx> <20010723150019.A25511@xxxxxxxxxxxxxxxxxxxxxxxxx> <1010723163850.ZM14004@xxxxxxxxxxxxxxxxxxxxxxx> <20010724010052.A12156@xxxxxxxxxxxxxxxxxxxxxxxxx> <010723181213.ZM14442@xxxxxxxxxxxxxxxxxxxxxxx>
On Jul 23, 6:12pm, Bart Schaefer wrote:
}
} function neither_alias_nor_function() {
} local +h aliases functions
} disable -a ${(k)aliases}
} disable -f ${(k)functions}
} "$@"
} }
This function revealed a problem with here-strings in the $functions
parameter:
schaefer[505] foo() {
function> <<<'This is a here-string'
function> }
schaefer[506] foo
This is a here-string
schaefer[507] functions[foo]=$functions[foo]
schaefer[508] foo
foo:1: command not found: is
schaefer[509] functions foo
foo () {
is a here-string'' <<< '''This'
}
Uhh, yeah.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author