CVS commit: src/lib/libedit
"Robert Elz" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: kre Date: Sat Aug 15 18:57:26 UTC 2026 Modified Files: src/lib/libedit: filecomplete.c Log Message: Only match "." and ".." if the filename is non-empty & starts with '.', regardless of the state of MATCH_HIDDEN_FILES. That's the way bash actually works, and makes sense. Also, while here, don't allow calling the completion function to alter the "match_hidden_files" setting set by EL_MATCH_HIDDEN_FILES (or not permanently, only for the current match process). Also, have fn_complete() call fn_complete2() using MATCH_HIDDEN_FILES if EL_MATCH_HIDDEN_FILES has been set. This gives some purpose to the global setting, which was otherwise doing nothing at all. And make the default be to match hidden files (the way libedit used to work) which seems likely to have been the intent. To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77 src/lib/libedit/filecomplete.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.