tabtab icon indicating copy to clipboard operation
tabtab copied to clipboard

Bashrc modification can cause warnings

Open hlabrand opened this issue 6 years ago • 2 comments

Hello,

I've used electron-forge on Linux, which uses tabtab, and I ran into a small bug that seems to be cause by tabtab : the program adds something to ~/.bashrc that looks like

# tabtab source for electron-forge package
# uninstall by removing these lines or running `tabtab uninstall electron-forge`
[ -f /home/user/<etc-etc>/node_modules/tabtab/.completions/electron-forge.bash ] && . /home/user/<etc-etc>/node_modules/tabtab/.completions/electron-forge.bash

where the "etc-etc" is the path I installed it to. If that path contains spaces, those spaces are not escaped (" " is written instead of "\ ") which triggers an error ("bash [ too many arguments" every time you open a terminal) and means the command that is added is not run properly. The fix is (hopefully) easy; the spaces need to be escaped. Thanks!

hlabrand avatar Jul 10 '18 22:07 hlabrand

Hi @hlabrand Thanks for letting me know. The fix is indeed (hopefully) easy. I'll take a look asap.

mklabs avatar Jul 14 '18 15:07 mklabs

I've just had exactly the same issue. Fortunately, it's fixed by changing manually the empty spaces in the path for "\ " as @hlabrand had explained. Thanks for pointing to that solution! Never imagined that I was having that problem because I'd been playing around with electron-forge lately.

antoniovs1029 avatar Mar 26 '19 01:03 antoniovs1029