Refacotor the code for parsing and expanding environment variables.
The old cold is copied from kio/kurlcompletion.cpp, which is not very suitable for detecting and expanding environment variables. For example, it only sees ' ' and '/' as the end point of an environment variable. That assumption fails easily with the common example of "PATH=$PATH:~/bin"
Please register or sign in to comment