1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/lib/libast/man
Johnothan King f28bce61a7
Fix multiple problems with the getconf builtin (#280)
This commit fixes three problems with getconf pathbound builtin:
1. The -l/--lowercase option did not change all variable names to
   lower case.
2. The -q/--quote option now quotes all string values. Previously,
   it only quoted string values that had a space or other
   non-shellsafe character.
3. The -c/--call, -n/--name and -s/--standard options matched all
   variable names provided by 'getconf -a', even if none were
   actual matches.

Additionally, references to the confstr and sysconf functions have
been updated to reference section 3 of the man pages instead of
section 2.

src/lib/libast/port/astconf.c:
- Previously, only values that had spaces in them were quoted. Change
  that behavior to quote all string values by using the FMT_ALWAYS
  flag. Bug report: https://github.com/att/ast/issues/1173
- Not all variable names were printed in lowercase by 'getconf -l'.
  Fix it by adding a few missing instances of fmtlower.
  Bug report: https://github.com/att/ast/issues/1171
- Add the missing code to the '#if _pth_getconf_a' block to handle
  -c/-n/-s while parsing the OS's native 'getconf -a' output. This
  approach reuses code for name matching from other parts of
  astconflist(). Resolves: https://github.com/ksh93/ksh/issues/279

src/lib/libcmd/getconf.c:
- Update the documentation to note the -q flag only quotes strings.

src/cmd/ksh93/tests/bulitins.sh:
- Add regression tests for the getconf bugs fixed in this commit.

Co-authored-by: Martijn Dekker <martijn@inlv.org>
2021-04-21 03:34:54 +01:00
..
aso.3 Fix many spelling errors and word repetitions (#188) 2021-02-20 03:22:24 +00:00
ast.3 Fix multiple problems with the getconf builtin (#280) 2021-04-21 03:34:54 +01:00
astsa.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
cdt.3 libast: Update cdt(3): Allow empty strings in (dt)trees 2021-01-28 02:44:52 +00:00
chr.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
compat.3 Fix 181 typos in user-facing documentation 2020-06-12 01:45:12 +02:00
error.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
find.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
fmt.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
fmtls.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
ftwalk.3 Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
getcwd.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
hash.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
iblocks.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
int.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
ip6.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
LIBAST.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
magic.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
mem.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
mime.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
modecanon.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
optget.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
path.3 Add --globcasedetect shell option for globbing and completion 2021-03-22 18:45:19 +00:00
preroot.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
proc.3 Fix build on QNX 2021-02-14 01:28:35 +00:00
re.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
regex.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
setenviron.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
sfdisc.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
sfio.3 Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
sig.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
spawnveg.3 cleanup: remove legacy code for systems without fork(2) 2021-03-21 06:39:32 +00:00
stak.3 Stack robustness fixes from OpenSUSE 2021-01-28 06:18:44 +00:00
stk.3 Stack robustness fixes from OpenSUSE 2021-01-28 06:18:44 +00:00
strcopy.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
strdup.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
strelapsed.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
strerror.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
stresc.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
streval.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
strgid.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
strmatch.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
stropt.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
strperm.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
strsignal.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
strsort.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
strtape.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
strton.3 Fix various minor problems and update the documentation (#237) 2021-03-21 14:39:03 +00:00
struid.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
swap.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
tab.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
tm.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
tmx.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
tok.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
touch.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
tv.3 Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
vecargs.3 Fix a large number of typos and other problems (#110) 2020-08-07 00:50:11 +01:00
vmalloc.3 Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00