I regularly got suckered by zip file (libraries, programs, ...).
Sometime, I am cautious and I do:
$ mkdir content && cd content
$ unzip ../library.zip
Archive: library.zip
creating: library/
inflating: library/foo.c
...
$ # Grumble...
$ mv library/* .
$ rmdir library
Sometime I get lazy and I simply do...
$ cd
$ unzip ../library.zip
Archive: library.zip
creating: config/
inflating: config/...
creating: lib/
creating: bin/
creating: ...
...
$ # Grumble...
$ mkdir library
$ mv config library
$ mv lib library
$ mv bin library
$ # ...
Is there an universal way to unzip a zip file without falling into either of these issues?