You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue comes up every now and then. By default, rlwrap considers ' and - (apostrophe and hyphen) word-breaking, which means that it will not consider filenames that contain those characters as valid completions (you will observe something like that in bash or zsh when you encounter filenames with spaces - the completer wil refuse to "jump over" the spaces).
Calling rlwrap with --break-chars="" (or simpler: -b '') will convince it that only whitespace is word-breaking, after which it should behave as you expect.
All this poses two questions:
should the manpage be clearer on this?
should rlwrap use the same word-breakers for filename completion as it does for keyword completion?
If the description of the -c option in the manpage mentioned other options (like -b) that can affect its behavior, then yes, it would save me from falling for this one.
As for the second question, I can't really say as I'm not aware what word-breaking rules are used for keyword completion.
Tested with
rlwrap 0.37
andgnuplot 4.6 patchlevel 4
onUbuntu 14.04.3
.Seems like there needs to be at least two files with a common prefix and a hyphen in a directory for this to occur.
To reproduce the problem first set up some test files:
Now try file completion with rlwrap:
Let's rewind and try:
Nothing happens.
But it all works fine with gnuplot's built-in readline support:
If there are other files, something else happens, so add one:
This is what happens with rlwrap:
Then nothing happens after pressing [TAB], no matter how many more characters of the filename I type myself.
Again, this is how it should look like and how it works in gnuplot:
The text was updated successfully, but these errors were encountered: