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

Buggy zed function



The zed function is buggy. After typing:

fctest() {
cat <<EOF
foo
bar
EOF
}

I got the following (with zsh 4.2.6 and zsh 4.3.0-dev-2). Note: in zed,
I immediately type Ctrl-J to accept.

dixsept% which fctest
fctest () {
        cat <<< 'foo
bar'
}
dixsept% fctest
foo
bar
dixsept% autoload zed
dixsept% zed -f fctest
fctest () {
        cat <<< 'foo
bar'
}
dixsept% which fctest
fctest () {
        cat <<< "'foo
bar'"
}
dixsept% fctest
foo
bar
dixsept% zed -f fctest
fctest () {
        cat <<< "'foo
bar'"
}
dixsept% which fctest 
fctest () {
        cat <<< ""'foo
bar'""
}
dixsept% fctest
'foo
bar'

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Messages sorted by: Reverse Date, Date, Thread, Author