mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix various minor problems and update the documentation (#237)
These are minor fixes I've accumulated over time. The following
changes are somewhat notable:
- Added a missing entry for 'typeset -s' to the man page.
- Add strftime(3) to the 'see also' section. This and the date(1)
addition are meant to add onto the documentation for 'printf %T'.
- Removed the man page the entry for ksh reading $PWD/.profile on
login. That feature was removed in commit aa7713c2.
- Added date(1) to the 'see also' section of the man page.
- Note that the 'hash' command can be used instead of 'alias -t' to
workaround one of the caveats listed in the man page.
- Use an 'out of memory' error message rather than 'out of space'
when memory allocation fails.
- Replaced backticks with quotes in some places for consistency.
- Added missing documentation for the %P date format.
- Added missing documentation for the printf %Q and %p formats
(backported from ksh2020: https://github.com/att/ast/pull/1032).
- The comments that show each builtin's options have been updated.
This commit is contained in:
parent
2d7e9a0d6d
commit
814b5c6890
151 changed files with 378 additions and 378 deletions
|
|
@ -813,7 +813,7 @@ feature(register Feature_t* fp, const char* name, const char* path, const char*
|
|||
if (!(fp = newof(0, Feature_t, 1, n + 1)))
|
||||
{
|
||||
if (conferror)
|
||||
(*conferror)(&state, &state, 2, "%s: out of space", name);
|
||||
(*conferror)(&state, &state, 2, "%s: out of memory", name);
|
||||
return 0;
|
||||
}
|
||||
fp->op = -1;
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ char** argv;
|
|||
case CHARSET:
|
||||
if (!(cp = newof(0, Charset_t, 1, s - b + 1)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
b = (char*)(cp + 1);
|
||||
|
|
@ -437,7 +437,7 @@ char** argv;
|
|||
case TERRITORY:
|
||||
if (!(tp = newof(0, Territory_t, 1, s - b + 1)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
b = (char*)(tp + 1);
|
||||
|
|
@ -459,7 +459,7 @@ char** argv;
|
|||
}
|
||||
if (!(ll = newof(0, Language_list_t, 1, 0)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
if (!tp->languages)
|
||||
|
|
@ -491,7 +491,7 @@ char** argv;
|
|||
case LANGUAGE:
|
||||
if (!(lp = newof(0, Language_t, 1, s - b + 1)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
b = (char*)(lp + 1);
|
||||
|
|
@ -527,14 +527,14 @@ char** argv;
|
|||
fprintf(lf, "0,");
|
||||
if (!(ap = newof(0, Attribute_t, 1, 0)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
ap->link.code = b;
|
||||
ap->link.index = i++;
|
||||
if (!(al = newof(0, Attribute_list_t, 1, 0)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
if (!lp->attributes)
|
||||
|
|
@ -560,7 +560,7 @@ char** argv;
|
|||
case MAP:
|
||||
if (!(mp = newof(0, Map_t, 1, s - b + 1)))
|
||||
{
|
||||
fprintf(stderr, "%s: %d: out of space\n", command, line);
|
||||
fprintf(stderr, "%s: %d: out of memory\n", command, line);
|
||||
return 1;
|
||||
}
|
||||
b = (char*)(mp + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue