$ becomes \$ upon tab expansion

2020-05-24 Thread 積丹尼 Dan Jacobson
$ ls $HOME/xx/yy/z
becomes
$ ls \$HOME/xx/yy/zz

It should become
$ ls $HOME/xx/yy/zz
else it will fail when the user finally hits RET.

(Assume a zz file already exists. "ls" here is just an example. same for
"cat" etc.) Bash 5.0.16



Re: $ becomes \$ upon tab expansion

2020-05-24 Thread Chet Ramey
On 5/24/20 4:50 PM, 積丹尼 Dan Jacobson wrote:
> $ ls $HOME/xx/yy/z
> becomes
> $ ls \$HOME/xx/yy/zz

It doesn't. Maybe it does when you use bash-completion.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/