Skip to content

Tab completion problem: trailing whitespace added to variables completion inside quotes #796

Closed

Description

@RVC2020

What I mean:

foobar=baz
printf "$foo<TAB>" 
# will expand to 
printf "$foobar[[:space:]]"
# and later to
printf "baz " 

This can cause real-world problems when the command is piped to other tools or stored in configuration files that are later parsed by tools like grep, sed, jq, toml-rs family and friends.

Additionally, you must press backspace to remove the trailing space before the tooltip correctly displays the variable value, which I assume isn't intended behavior.

Image

My best attempt at making a GIF with evp. I don't type that fast, and that \" is some sort of a bug.

Activity

  1. HalFrgrd commented on Jul 6, 2026

    @HalFrgrd
    Owner

    I love to see that you found evp! It's still a work in progress so expect some bugs :)

    Thanks for bringing this to my attention, I'll investigate this behaviour. I won't have much time this month to work on the project, but hopefully next month.

  2. linked a pull request that will close this issueNo space suffix when in quotes #875on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions