Opened 6 years ago
Closed 6 years ago
#57813 closed defect (worksforme)
When command has a dot, it causes a syntax error
Reported by: | Tatsh (Andrew Udvare) | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | Cc: | ||
Port: | bash-completion |
Description
I have the bash port installed and I have it as my default shell. I have bash-completion sourced in my bashrc. Everytime I try to invoke a completion and the command has a period in it, I get a syntax error:
cargo2port.tcl <TAB>bash: cargo2port.tcl: syntax error: invalid arithmetic operator (error token is ".tcl")
I reported this to upstream but I am not sure if this is something they should handle or if it's something caused by my bashrc (although I've tried to narrow this down as much as possible).
I am wondering if it has anything to do with the Bash build as I do not get this error on my Gentoo machine and everything there is nearly identical in terms of the shell, rc, and version numbers.
Change History (4)
comment:1 Changed 6 years ago by mf2k (Frank Schima)
Cc: | raimue@… removed |
---|---|
Owner: | set to raimue |
Status: | new → assigned |
comment:2 Changed 6 years ago by raimue (Rainer Müller)
comment:3 Changed 6 years ago by Tatsh (Andrew Udvare)
I put together a clean VM and set up everything without my own rc files and it seems like it's a problem on my end.
I've tried debugging with -xv and it has not been very helpful. Upstream has the issue. This can be closed here.
comment:4 Changed 6 years ago by raimue (Rainer Müller)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Unfortunately I was not able to reproduce the problem on my system. I also modified my
PATH
to include this cargo2port.tcl file.You could try to find the original line producing this message by enabling
set -x
in your shell, but be aware that this will produce a lot of debugging output from bash completion when pressing Tab.