Skip to content

Improve target-shell autocompletion for dirs with spaces#1485

Open
JSCU-CNI wants to merge 3 commits intofox-it:mainfrom
JSCU-CNI:fix/shell-autocomplete-spaces
Open

Improve target-shell autocompletion for dirs with spaces#1485
JSCU-CNI wants to merge 3 commits intofox-it:mainfrom
JSCU-CNI:fix/shell-autocomplete-spaces

Conversation

@JSCU-CNI
Copy link
Contributor

@JSCU-CNI JSCU-CNI commented Jan 8, 2026

This PR attempts to solve a long-standing annoyance with target-shell, the handling of directories with spaces in the shell autocomplete function. We attempt to solve this by escaping spaces with "\ ", as most real shells do too. This seems to work reasonably well.

@Schamper
Copy link
Member

Schamper commented Jan 8, 2026

Copy link
Member

@Schamper Schamper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to extend the existing autocompletion tests with this?

JSCU-CNI and others added 2 commits January 8, 2026 16:32
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants