Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Here-strings and $functions



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