bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get filename completion without variable expansion?


From: jens . schmidt35
Subject: How to get filename completion without variable expansion?
Date: Wed, 16 Nov 2011 13:13:30 +0100 (CET)

Hi,

I have the following problem:

(Environment or regular) variable FOO contains the path of existing directory 
"/foo".  When I have a file "/foo/bar" in that directory and when I press TAB 
in the following commandline ('|' denoting the cursor position)

  $ cat $FOO/b|<TAB>

bash expands the commandline to

  $ cat /foo/bar |

However, I would like to expand it to

  $ cat $FOO/bar |

that is, keep the variable unexpanded, exactly as bash does not expand tilde 
characters during filename completion.

Any chances to achieve that with some shell or readline option?

Thanks and regards

Jens



reply via email to

[Prev in Thread] Current Thread [Next in Thread]