Module Name: src Committed By: abhinav Date: Sun Oct 15 18:59:00 UTC 2017
Modified Files: src/lib/libedit: filecomplete.c src/lib/libedit/TEST: Makefile Added Files: src/lib/libedit/TEST: test_filecompletion.c Log Message: Add support for escaping special characters when doing filename completion. For instance if the file name is "foo bar": $ ls foo<TAB> should get autocompleted to: $ ls foo\ bar Works for similar other characters too, which need escaping. Also, add an accompanying test program to ensure the escaping is correct in various scenarios (within quotes, without quotes, with other special characeters) Thanks to Christos for reviews, help and feedback. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/lib/libedit/filecomplete.c cvs rdiff -u -r1.7 -r1.8 src/lib/libedit/TEST/Makefile cvs rdiff -u -r0 -r1.1 src/lib/libedit/TEST/test_filecompletion.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.