I'm on my $HOME directory, there is a foo.zip file. I want to extract it into $HOME/work directory, which exists
I type unzip foo it expands the filename, I enter but it doesn't expand the "w" to the "work" directory
How make this work ? In Bash this works out of the box.
unzipexpects the second argument to be the name of a file inside the archive, and that's what zsh completes. To extract to a different directory, I typeunzip foo.zip -d w, andzshdoes completewintowork. – Gilles Jan 2 '11 at 15:50unzipis simple-minded and doesn't look at the contents of the archive or whether-dis present. The zsh completion forunzipis much more sophisticated. – Dennis Williamson Jan 2 '11 at 16:54