4

I bumped into this problem regarding bash completion, can't find reference to it.

When doing

$ echo foo "bar" /tm<TAB>

I got /tm expanded to /tmp/ that is indeed correct.

But if I do

$ echo foo "bar
more bar" /tm<TAB>

No completion is done. My question is doest this behavior a feature or a bug?

My bash version is

GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)

Thanx in advance.

1
  • 3
    I can reproduce the issue. My guess is that completion is inactive when the PS2 prompt is active. Maybe you can suggest it as feature request. BTW, tried it out of curiosity with zsh, and zsh does completion in this situation. Jun 21, 2021 at 9:06

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.