| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Do not throw EOFError for escaped newlines (or unclosed quotes) when parsing in COMPLETE/SPLIT_LINE context, matching JLine DefaultParser. Also disable backslash escapes on Windows where '\' is the path separator, and implement CompletingParsedLine properly so completion candidates are escaped/quoted. Fixes spring-projects#1169 Signed-off-by: arimu1 <19286898+arimu1@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Description
Tab completion of Windows paths (PowerShell/CMD) failed with:
\ is both the JLine/DefaultParser escape character and the Windows path separator. Completing a directory inserts a trailing \, and the next Tab hit eofOnEscapedNewLine even in ParseContext.COMPLETE.
Changes
Testing
./mvnw -pl spring-shell-jline -am test -Dtest=ExtendedDefaultParserTests -Dsurefire.failIfNoSpecifiedTests=false38 tests, Temurin 21. New coverage for COMPLETE trailing \, ACCEPT_LINE still throws, Windows-style paths with escapes disabled, and CompletingParsedLine escaping.
Fixes #1169