Closed hanslub42 closed 1 year ago
This could be extended to:
Current rlwrap
behaviour:
-f <non_existing file>
: fail with error
-f .
when there is no history file: fail with error
Proposed behaviour:
-f <non_existing file>
: warning
-f .
when there is no history file: ignore
fixed by b0b72162c6791c1bcf27beab9a8da26b696435dc. Closing
rlwrap -f . <command>
uses<command>'s
history (usually in$RLWRAP_HOME/command_history
) as a source for its completion word list.When running
<command>
for the first time, this makesrlwrap
fail with the messagerlwrap: error: Could not open [..]command_history: No such file or directory
This is a very minor problem (a simple
touch
command will solve it) but it would be more POLA-compliant ifrlwrap
would just ignore the missing history file