Some programs do not recognize tilde shortcut in filenames and expect full canonical paths, e.g. /home/dave/myfile.txt instead of ~/myfile.txt.
Is there a way to make bash replace ~ and ~user by full canonical paths anytime a tilde is used?
|
feedback
|
|
When you run a command in the Bash shell, like:
the shell first makes the expansion of But it's true, some programs don't interpret the
but this works insted:
But this behavior is masked by the Bash expansion, so you don't need any further interpretation. Maybe it's obvious, but note that if a program uses a configuration files and expects some paths in it, it's not a Bash duty expand them. | |||
|
feedback
|
~. So what I would like bash to do is explicitly expand the path, just like it auto completes when I hit thetab key. – David B Nov 1 '10 at 19:55