Bash variable expansion on tab complete

前端 未结 3 1812
长情又很酷
长情又很酷 2020-12-08 19:28

I\'m running Ubuntu 11.04, and I\'m seeing some odd behaviour when I try to use tab-completion in bash on a path that starts with a variable. If I\'ve got TOP=/scratch, and

3条回答
  •  执念已碎
    2020-12-08 19:40

    The bug report refered to in other answers at bugs.launchpad.net gives a new workaround by issuing the command:

    shopt -s direxpand
    

    It works for me.

提交回复
热议问题