Menu

#1189 fbrun completion ignores last directory in $PATH

v1.3.7
open
nobody
None
5
2021-06-30
2021-06-30
No

FbRun completion doesn't display variants of executables located in directory of $PATH which is not followed by colon, i.e. last directory or single directory. E.g.:

$ PATH=/bin:/sbin fbrun

^ fbrun displays variants only from /bin

$PATH=/bin fbrun

^ fbrun doesn't display variants at all.
But

$ PATH=/bin:/sbin: fbrun

^ works correctly.

Bug is caused by wrong end-of-string detection condition.
Attached patch fixes the issue.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB