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
|
|
@ -291,7 +291,7 @@ const char sh_set[] =
|
|||
"[C?Prevents existing regular files from being overwritten using the \b>\b "
|
||||
"redirection operator. The \b>|\b redirection overrides this "
|
||||
"\bnoclobber\b option.]"
|
||||
"[G?Causes \b**\b by itself to also match all sub-directories during pathname "
|
||||
"[G?Causes \b**\b by itself to also match all subdirectories during pathname "
|
||||
"expansion.]"
|
||||
#if SHOPT_HISTEXPAND
|
||||
"[H?Enable \b!\b-style history expansion similar to \bcsh\b.]"
|
||||
|
|
@ -961,12 +961,12 @@ const char sh_opthist[] =
|
|||
"maintains the ordering.]"
|
||||
"[+?When commands are edited (when the \b-l\b option is not specified), the "
|
||||
"resulting lines will be entered at the end of the history list and "
|
||||
"then reexecuted by the current shell. The \b\f?\f\b command that "
|
||||
"then re-executed by the current shell. The \b\f?\f\b command that "
|
||||
"caused the editing will not be entered into the history list. If the "
|
||||
"editor returns a non-zero exit status, this will suppress the "
|
||||
"entry into the history list and the command reexecution. Command "
|
||||
"entry into the history list and the command re-execution. Command "
|
||||
"line variable assignments and redirections affect both the \f?\f "
|
||||
"command and the commands that are reexecuted.]"
|
||||
"command and the commands that are re-executed.]"
|
||||
"[+?\afirst\a and \alast\a define the range of commands. \afirst\a and "
|
||||
"\alast\a can be one of the following:]{"
|
||||
"[+\anumber\a?A positive number representing a command "
|
||||
|
|
@ -990,7 +990,7 @@ const char sh_opthist[] =
|
|||
"[e]:[editor?\aeditor\a specifies the editor to use to edit the history "
|
||||
"command. A value of \b-\b for \aeditor\a is equivalent to "
|
||||
"specifying the \b-s\b option.]"
|
||||
"[l?List the commands rather than editing and reexecuting them.]"
|
||||
"[l?List the commands rather than editing and re-executing them.]"
|
||||
"[N]#[num?Start at \anum\a commands back.]"
|
||||
"[n?Suppress the command numbers when the commands are listed.]"
|
||||
#if SHOPT_HISTEXPAND
|
||||
|
|
@ -998,16 +998,16 @@ const char sh_opthist[] =
|
|||
"output. All other options are ignored.]"
|
||||
#endif
|
||||
"[r?Reverse the order of the commands.]"
|
||||
"[s?Reexecute the command without invoking an editor. In this case "
|
||||
"[s?Re-execute the command without invoking an editor. In this case "
|
||||
"an operand of the form \aold\a\b=\b\anew\a can be specified "
|
||||
"to change the first occurrence of the string \aold\a in the "
|
||||
"command to \anew\a before reexecuting the command.]"
|
||||
"command to \anew\a before re-executing the command.]"
|
||||
|
||||
"\n"
|
||||
"\n[first [last] ]\n"
|
||||
"\n"
|
||||
"[+EXIT STATUS?If a command is reexecuted, the exit status is that of "
|
||||
"the command that gets reexecuted. Otherwise, it is one of the "
|
||||
"[+EXIT STATUS?If a command is re-executed, the exit status is that of "
|
||||
"the command that gets re-executed. Otherwise, it is one of the "
|
||||
"following:]{"
|
||||
"[+0?Successfully completion of the listing.]"
|
||||
"[+>0?An error occurred.]"
|
||||
|
|
@ -1221,6 +1221,8 @@ const char sh_optprintf[] =
|
|||
"formats the output for use as a URI.]"
|
||||
"[+%P?Treat \astring\a as an extended regular expression and "
|
||||
"convert it to a shell pattern.]"
|
||||
"[+%p?Convert number to hexadecimal.]"
|
||||
"[+%Q?Convert number of seconds to readable time.]"
|
||||
"[+%R?Treat \astring\a as an shell pattern expression and "
|
||||
"convert it to an extended regular expression.]"
|
||||
"[+%T?Treat \astring\a as a date/time string and format it. The "
|
||||
|
|
@ -1237,8 +1239,8 @@ const char sh_optprintf[] =
|
|||
"[+d?day of month number]"
|
||||
"[+D?date as \amm/dd/yy\a]"
|
||||
"[+e?blank padded day of month number]"
|
||||
"[+f?print a date with the format '\%Y.\%m.\%d-\%H:\%M:\%S']"
|
||||
"[+F?%ISO 8601:2000 standard date format; equivalent to Y-%m-%d]"
|
||||
"[+f?print a date with the format \b%Y.%m.%d-%H:%M:%S\b]"
|
||||
"[+F?ISO 8601:2000 standard date format; equivalent to \b%Y-%m-%d\b]"
|
||||
"[+g?\bls\b(1) \b-l\b recent date with \ahh:mm\a]"
|
||||
"[+G?\bls\b(1) \b-l\b distant date with \ayyyy\a]"
|
||||
"[+h?abbreviated month name]"
|
||||
|
|
@ -1256,9 +1258,10 @@ const char sh_optprintf[] =
|
|||
"[+n?newline character]"
|
||||
"[+N?nanoseconds 000000000-999999999]"
|
||||
"[+p?meridian (e.g., \bAM\b or \bPM\b)]"
|
||||
"[+P?lowercase meridian (e.g., \bam\b or \bpm\b)]"
|
||||
"[+q?quarter of the year]"
|
||||
"[+Q?\a<del>recent<del>distant<del>\a: \a<del>\a is a unique "
|
||||
"delimter character; \arecent\a format for recent "
|
||||
"delimiter character; \arecent\a format for recent "
|
||||
"dates, \adistant\a format otherwise]"
|
||||
"[+r?12-hour time as \ahh:mm:ss meridian\a]"
|
||||
"[+R?24-hour time as \ahh:mm\a]"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ const Limit_t shtab_limits[] =
|
|||
"nproc", "number of processes", RLIMIT_NPROC, "CHILD_MAX", 'u', LIM_COUNT,
|
||||
"pipe", "pipe buffer size", RLIMIT_PIPE, "PIPE_BUF", 'p', LIM_BYTE,
|
||||
"rss", "max memory size", RLIMIT_RSS, 0, 'm', LIM_KBYTE,
|
||||
"rtprio", "max real time priority",RLIMIT_RTPRIO, 0, 'r', LIM_COUNT,
|
||||
"rtprio", "max real-time priority",RLIMIT_RTPRIO, 0, 'r', LIM_COUNT,
|
||||
"sbsize", "socket buffer size", RLIMIT_SBSIZE, "PIPE_BUF", 'b', LIM_BYTE,
|
||||
"sigpend", "signal queue size", RLIMIT_SIGPENDING,"SIGQUEUE_MAX",'i', LIM_COUNT,
|
||||
"stack", "stack size", RLIMIT_STACK, 0, 's', LIM_KBYTE,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#pragma prototyped
|
||||
|
||||
/*
|
||||
* tables for the test builin [[...]] and [...]
|
||||
* tables for the test builtin [[...]] and [...]
|
||||
*/
|
||||
|
||||
#include <ast.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue