ksh: escape control chars when displaying file name completions.
authormillert <millert@openbsd.org>
Wed, 21 Jun 2023 22:22:08 +0000 (22:22 +0000)
committermillert <millert@openbsd.org>
Wed, 21 Jun 2023 22:22:08 +0000 (22:22 +0000)
commitabe762909b634ba7ba5f0581239afbd78014160a
tree3bfd8235f3bbcec8efd31465858ba4f7f43ff071
parent2e52060090f152566477f4ad9a7f745ce07d0d07
ksh: escape control chars when displaying file name completions.
If there are multiple matches when using autocomplete, the list of
matching file names was output as-is.  However, for a single match,
control characters are escaped before the file name is displayed.
This makes the behavior more consistent by escaping control chars
in the list of matches too.  Discussed with deraadt@, OK op@
bin/ksh/edit.c
bin/ksh/edit.h
bin/ksh/emacs.c
bin/ksh/exec.c
bin/ksh/sh.h