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

Re: destructive list-expand



On May 15,  2:41pm, Bart Schaefer wrote:
} Subject: Re: destructive list-expand
}
} schaefer<507> echo "${(M)${(f)$(<=(print -l *))}:#*conf*}"<C-x g>
} [expansion elided]
} schaefer<507> echo ${(M)${(f)$(<=(print -l *))}:#*conf*}"
} 
} Now the leading quote has been removed, but the trailing quote is there.
} (They used to both disappear.)

Just to be clear ... both of them disappearing is wrong too, of course.

Why is it ever correct to delete quotes _anywhere_?

Here's an even worse error:

schaefer<510> echo '${(@M)${(f)$(<=(print -l *))}:#*conf*}'<C-x g>
schaefer<510> echo ${(@M)${(f)$(<=(print -l *))}:#*conf*}

Now both *single* quotes are gone.  Bad news.

-- 
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