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
|
@ -355,7 +355,7 @@
|
|||
regress.sh: INPUT and OUTPUT handle -f for printf instead of print
|
||||
04-06-11 package.sh: make sure $INSTALLROOT/bin is in front of $PATH
|
||||
package.sh: skip nmake if older than 2000-10-31
|
||||
04-05-20 package.sh: fix arg vs. package parse with - or '' to disambuguate
|
||||
04-05-20 package.sh: fix arg vs. package parse with - or '' to disambiguate
|
||||
04-05-11 package.sh: package verbose update lists closure for package setup
|
||||
package.sh: add src/lib/libardir to nmake proto bootstrap
|
||||
regress.sh: probe for rm -u vs. chmod -R u+rwx
|
||||
|
|
|
@ -386,7 +386,7 @@ buffer(void)
|
|||
if (buf = state.old)
|
||||
state.old = state.old->old;
|
||||
else if (!(buf = newof(0, Buf_t, 1, 0)) || !(buf->buf = newof(0, char, CHUNK, 0)))
|
||||
report(3, "out of space [buffer]", NiL, (unsigned long)0);
|
||||
report(3, "out of memory [buffer]", NiL, (unsigned long)0);
|
||||
buf->end = buf->buf + CHUNK;
|
||||
buf->nxt = buf->buf;
|
||||
return buf;
|
||||
|
@ -418,7 +418,7 @@ appendn(Buf_t* buf, char* str, int n)
|
|||
i = buf->nxt - buf->buf;
|
||||
m = (((buf->end - buf->buf) + n + CHUNK + 1) / CHUNK) * CHUNK;
|
||||
if (!(buf->buf = newof(buf->buf, char, m, 0)))
|
||||
report(3, "out of space [buffer resize]", NiL, (unsigned long)0);
|
||||
report(3, "out of memory [buffer resize]", NiL, (unsigned long)0);
|
||||
buf->end = buf->buf + m;
|
||||
buf->nxt = buf->buf + i;
|
||||
}
|
||||
|
@ -453,7 +453,7 @@ duplicate(char* s)
|
|||
|
||||
n = strlen(s);
|
||||
if (!(t = newof(0, char, n, 1)))
|
||||
report(3, "out of space [duplicate]", s, (unsigned long)0);
|
||||
report(3, "out of memory [duplicate]", s, (unsigned long)0);
|
||||
strcpy(t, s);
|
||||
return t;
|
||||
}
|
||||
|
@ -468,7 +468,7 @@ dictionary(void)
|
|||
Dict_t* dict;
|
||||
|
||||
if (!(dict = newof(0, Dict_t, 1, 0)))
|
||||
report(3, "out of space [dictionary]", NiL, (unsigned long)0);
|
||||
report(3, "out of memory [dictionary]", NiL, (unsigned long)0);
|
||||
return dict;
|
||||
}
|
||||
|
||||
|
@ -542,7 +542,7 @@ search(register Dict_t* dict, char* name, void* value)
|
|||
else if (value)
|
||||
{
|
||||
if (!(root = newof(0, Dict_item_t, 1, strlen(name))))
|
||||
report(3, "out of space [dictionary]", name, (unsigned long)0);
|
||||
report(3, "out of memory [dictionary]", name, (unsigned long)0);
|
||||
strcpy(root->name, name);
|
||||
}
|
||||
if (root)
|
||||
|
@ -609,7 +609,7 @@ rule(char* name)
|
|||
if (!(r = (Rule_t*)search(state.rules, name, NiL)))
|
||||
{
|
||||
if (!(r = newof(0, Rule_t, 1, 0)))
|
||||
report(3, "out of space [rule]", name, (unsigned long)0);
|
||||
report(3, "out of memory [rule]", name, (unsigned long)0);
|
||||
r->name = (char*)search(state.rules, name, (void*)r);
|
||||
}
|
||||
return r;
|
||||
|
@ -628,7 +628,7 @@ cons(Rule_t* r, Rule_t* p)
|
|||
if (!x)
|
||||
{
|
||||
if (!(x = newof(0, List_t, 1, 0)))
|
||||
report(3, "out of space [list]", r->name, (unsigned long)0);
|
||||
report(3, "out of memory [list]", r->name, (unsigned long)0);
|
||||
x->rule = p;
|
||||
x->next = r->prereqs;
|
||||
r->prereqs = x;
|
||||
|
@ -712,7 +712,7 @@ view(void)
|
|||
}
|
||||
n = strlen(s);
|
||||
if (!(vp = newof(0, View_t, 1, strlen(p) + n + 1)))
|
||||
report(3, "out of space [view]", s, (unsigned long)0);
|
||||
report(3, "out of memory [view]", s, (unsigned long)0);
|
||||
vp->node = n + 1;
|
||||
strcpy(vp->dir, s);
|
||||
*(vp->dir + n) = '/';
|
||||
|
|
|
@ -83,7 +83,7 @@ unit.rt [ unit [ arg ... ] ]
|
|||
[+PROG \acommand\a [ \aarg\a ... ]]?Run \acommand\a with
|
||||
optional arguments.]
|
||||
[+TEST [ \anumber\a ]] [ \adescription\a ... ]]?Define a new
|
||||
test group with optional \anumber\a and \adescripion\a.]
|
||||
test group with optional \anumber\a and \adescription\a.]
|
||||
[+TWD [ \adir\a ... ]]?Set the temporary test dir to \adir\a.
|
||||
The default is \aunit\a\b.tmp\b, where \aunit\a is the test
|
||||
input file sans directory and suffix. If \adir\a matches \b/*\b
|
||||
|
|
|
@ -1313,7 +1313,7 @@ typedef struct internal_state {
|
|||
gz_headerp gzhead; /* gzip header information to write */
|
||||
uInt gzindex; /* where in extra, name, or comment */
|
||||
Byte method; /* STORED (for zip only) or DEFLATED */
|
||||
int last_flush; /* value of flush param for previous deflate call */
|
||||
int last_flush; /* value of flush parameter for previous deflate call */
|
||||
|
||||
/* used by deflate.c: */
|
||||
|
||||
|
@ -4939,7 +4939,7 @@ char** argv;
|
|||
while (block(stdin, gz, (char*)&header))
|
||||
{
|
||||
/*
|
||||
* last 2 blocks are NUL
|
||||
* last 2 blocks are NULL
|
||||
*/
|
||||
|
||||
if (!*header.name)
|
||||
|
|
|
@ -173,7 +173,7 @@ unit [ command [ arg ... ] ]
|
|||
the next explicit \bSET\b.]
|
||||
[+TALLY?Called by \bregress\b display the \bTEST\b results.]
|
||||
[+TEST \b\anumber\a [ \adescription\a ... ]]?Define a new test
|
||||
group labelled \anumber\a with optional \adescripion\a.]
|
||||
group labelled \anumber\a with optional \adescription\a.]
|
||||
[+TITLE \b[+]] \atext\a?Set the \bTEST\b output title to
|
||||
\atext\a. If \b+\b is specified then \atext\a is appended to
|
||||
the default title. The default title is the test file base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue