Bugfix (and small revamp) in `comint-complete-from-history': only consider candidates that really match the stub.
New completion function `shell-hippie-expand' expands the symbol under point using `hippie-expand'.