Skip to content
Permalink
Browse files

Fix various typos found by codespell

  • Loading branch information...
hosiet authored and krader1961 committed Sep 3, 2019
1 parent 2bce63a commit 657c587c3d799aec227b5b47b761802902a7c6c9
@@ -177,7 +177,7 @@ handles (e.g., indentation, spacing around operators) there are some things it
won't fix. So please read the following items.

1. The [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html)
forms the basis of ths projects C style guide. There are two major
forms the basis of this projects C style guide. There are two major
deviations for this project. First, a four, rather than two, space
indent. Second, line lengths up to 100, rather than 80, characters. See
[issue #125](https://github.com/att/ast/issues/125).
@@ -282,7 +282,7 @@ To run a specific test include its name: `meson test --setup=malloc types`.

The `--setup=malloc` will enable malloc integrity features provided by your
system's malloc implementation if it supports such things via environment
variables. That flag can be ommitted but its use is recommended.
variables. That flag can be omitted but its use is recommended.

### Testing with ASAN -- AddressSanitizer

@@ -377,7 +377,7 @@ To install the hook, put it in *.git/hooks/pre-push* and make it
executable.

To fix code styling issues before making a commit, add this
script as a pre-commit hoook; that is in an executable file named
script as a pre-commit hook; that is in an executable file named
*.git/hooks/pre-commit*:

```sh
@@ -203,7 +203,7 @@ typedef void (*sighandler_t)(int);

// If running under the oclint tool try to suppress some platform specific warnings.
// For example, on macOS many commonly used functions are defined in terms of macros
// that contain expressions which always evalute true or false.
// that contain expressions which always evaluate true or false.
#if _OCLINT_

#undef strcat
@@ -66,7 +66,7 @@ The options have the following defaults and meanings:
PFSH off Compile with support for profile shell.
RAWONLY off Turn on if the vi line mode doesn't work right unless
you do a set -o viraw.
SEVENBIT off Strip the eigth bit from characters.
SEVENBIT off Strip the eighth bit from characters.
SPAWN off Use spawn as combined fork/exec. May improve speed on
some systems.
STATS on Add .sh.stats compound variable.
@@ -822,7 +822,7 @@
cursor on the b rather than the a has been fixed.
12-03-20 A bug which caused a core dump when defining a type with a field
as ' integer -a data=([0]=0)' has been fixed.
12-03-19 Using typeset -a array when array is an associative arry not
12-03-19 Using typeset -a array when array is an associative array not
generated an error message.
12-03-19 typeset +a, typeset +A, and typeset +C not displays the variables
with the attributes a, A, and C respectively instead of an error.
@@ -911,7 +911,7 @@
with a backslash.
11-12-13 When tab is entered for completion after a ' or ", the ' and "
characters are no longer deleted.
11-12-07 A bug in which a program in the current direcotry with a . in the
11-12-07 A bug in which a program in the current directory with a . in the
name could fail to execute when both PATH and FPATH end with :. has
been fixed.
11-12-07 I fixed a bug in which a variable expansion in a large here-document
@@ -1414,7 +1414,7 @@
to make this the current line (n defaults to 1 of omitted) or
<ESC>n<cr> to execute.
10-05-20 A bug which caused an exception when multiple levels of composite
functions in arithemtic expressions has been fixed.
functions in arithmetic expressions has been fixed.
10-05-19 <<< with an empty string no longer gives an error.
10-05-19 A bug in arithmetic evaluation when a name reference to an array
instance was used has been fixed.
@@ -1448,7 +1448,7 @@
a non-zero element was specified and this has been fixed.
10-04-26 A bug in which types defined in a subshell were not undefined when
the subshell completed has been fixed.
10-04-23 For file completion in commmand line editing, file names starting
10-04-23 For file completion in command line editing, file names starting
with # are now escaped so that they are not treated as comments.
10-04-23 A bug in which ${t.var:=value}, where t is an instance of a type
variable, could assign value to the type variable rather than to
@@ -2065,7 +2065,7 @@
08-03-27 A bug in which the terminal group was not given back to the parent
shell when the last part of a pipeline was handled by the parent shell
and the other parts of the pipeline complete has been fixed.
The symptom was that the pipeline became uninterruptable.
The symptom was that the pipeline became uninterruptible.
08-03-25 A bug in restricted mode introduced in ksh93s that caused scripts
that did not use #! to executed in restricted mode has been fixed.
08-03-25 A bug in which the pipefail option did not work for a pipeline
@@ -53,9 +53,9 @@
11-01-27 date: add { -R, --rfc-2822, -T, --rfc-3339=type }
11-01-03 chgrp.c: --symlink => --physical
10-12-10 rm.c: fix not-writable logic
10-12-01 tee.c: add iterrupt logic for slow open(1) -- needs to be generalized
10-12-01 tee.c: add interrupt logic for slow open(1) -- needs to be generalized
10-11-30 chgrp.c: add -N,--numeric to bypass name lookup
10-10-20 cp: add --timestamps (preserv timestamps and permissions)
10-10-20 cp: add --timestamps (preserve timestamps and permissions)
10-10-20 ln: fix 'cannot replace existing file' logic
10-10-10 cp,mv: add --remove-destination
10-08-11 cp.c,expr.c: use conformance("standard",0) test
@@ -171,12 +171,12 @@
06-11-15 cp.c: fix 06-10-31 ln -s enoent bug
06-11-11 getconf.c: let astconf() handle "undefined" vs. ""
06-11-11 getconf.c: fix deferred getconf path search
06-11-11 fmt.c: handle two char { \t \n } in --usage ouput
06-11-11 fmt.c: handle two char { \t \n } in --usage output
06-10-31 global edit to eliminate most non-const static data0
06-10-31 use <cmd.h> for all b_*() implementations; drop <cmdlib.h>
06-10-31 cmd.h: add CMD_ prefix to { BUILTIN DYNAMIC STANDALONE }
06-10-31 join.c: tone down /tmp usage vi SFSK_DISCARD
06-10-31 cp.c,rm.c: update to <fts.h> to accomodate non-static data
06-10-31 cp.c,rm.c: update to <fts.h> to accommodate non-static data
06-10-29 date.c: "...%H%..." => "...%H" "%..." to avoid SCCS conflict
06-10-26 fds.c: handle sctp
06-10-18 tail.c: fix invalid suffix infinite loop
@@ -304,7 +304,7 @@
cat: fix -n (was ignored, wow)
00-01-27 getconf: add "-a" and "-v spec" for sol7.* compatibility
99-09-09 join: fix -j1 vs. -j 1, add --ignorecase
99-06-22 paste: defualt delim in writable string
99-06-22 paste: default delim in writable string
99-06-16 cat: fix --dos-ouput typo
99-06-11 cp: tighten chown() diagnostics
99-06-08 expr: nothing for NULL string bug fix
@@ -151,7 +151,7 @@ const char sh_set[] =
"invoked with a \b+\b the options will be written in a format "
"that can be reinput to the shell to restore the settings. "
"Options \b-o\b \aname\a can also be specified with \b--\b\aname\a "
"and \b+o \aname\a can be specifed with \b--no\b\aname\a except that "
"and \b+o \aname\a can be specified with \b--no\b\aname\a except that "
"options names beginning with \bno\b are turned on by omitting \bno\b."
"This option can be repeated to enable/disable multiple options. "
"The value of \aoption\a must be one of the following:]{"
@@ -18,7 +18,7 @@
* *
***********************************************************************/
//
// This is the list of resouce limits controlled by ulimit.
// This is the list of resource limits controlled by ulimit.
// This command requires getrlimit(), vlimit(), or ulimit().
//
#include "config_ast.h" // IWYU pragma: keep
@@ -10,7 +10,7 @@
[+?\bbuiltin\b cannot be invoked from a restricted shell.]
[d?Deletes each of the specified built-ins. Special built-ins cannot be deleted.]
[f]:[lib?On systems with dynamic linking, \alib\a names a shared library to load and search for built-ins. Libraries are searched for in \b../lib/ksh\b and \b../lib\b on \b$PATH\b and in system dependent library directories. The system dependent shared library prefix and/or suffix may be omitted. Once a library is loaded, its symbols become available for the current and subsequent invocations of \bbuiltin\b. Multiple libraries can be specified with separate invocations of \bbuiltin\b. Libraries are searched in the reverse order in which they are specified.]
[n?Disable each of the specified built-ins. Special built-ins cannot be disabled. If no built-ns are specifed, display all disabled built-ins.]
[n?Disable each of the specified built-ins. Special built-ins cannot be disabled. If no built-ns are specified, display all disabled built-ins.]
[l?List the library base name, plugin YYYYMMDD version stamp, and full path for \b-f\b\alib\a on one line on the standard output.]
[p?Causes the output to be in a form of \bbuiltin\b commands that can be used as input to the shell to recreate the current set of builtins.]
[s?Display only the special built-ins.]
@@ -3,7 +3,7 @@
]
[+NAME?chmod - change the access permissions of files]
[+DESCRIPTION?\bchmod\b changes the permission of each file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new permissions.]
[+?Symbolic mode strings consist of one or more comma separated list of operations that can be perfomed on the mode. Each operation is of the form \auser\a \aop\a \aperm\a where \auser\a is zero or more of the following letters:]{
[+?Symbolic mode strings consist of one or more comma separated list of operations that can be performed on the mode. Each operation is of the form \auser\a \aop\a \aperm\a where \auser\a is zero or more of the following letters:]{
[+u?User permission bits.]
[+g?Group permission bits.]
[+o?Other permission bits.]
@@ -13,9 +13,9 @@
[+?For backwards compatibility, \b-\b\anumber\a is equivalent to \b-n\b \anumber\a.]
[n:lines?Copy \alines\a lines from each file.]#[lines:=10]
[c:bytes?Copy \achars\a bytes from each file.]#[chars]
[q:quiet|silent?Never ouput filename headers.]
[q:quiet|silent?Never output filename headers.]
[s:skip?Skip \askip\a characters or lines from each file before copying.]#[skip]
[v:verbose?Always ouput filename headers.]
[v:verbose?Always output filename headers.]

[ file ... ]

@@ -12,8 +12,8 @@
}
[+?If \afirst\a is omitted, the previous command is used, unless \b-l\b is specified, in which case it will default to \b-16\b and \alast\a will default to \b-1\b.]
[+?If \afirst\a is specified and \alast\a is omitted, then \alast\a will default to \afirst\a unless \b-l\b is specified in which case it will default to \b-1\b.]
[+?If no editor is specified, then the editor specfied by the \bHISTEDIT\b variable will be used if set, or the \bFCEDIT\b variable will be used if set, otherwise, \bed\b will be used.]
[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 specifiying the \b-s\b option.]
[+?If no editor is specified, then the editor specified by the \bHISTEDIT\b variable will be used if set, or the \bFCEDIT\b variable will be used if set, otherwise, \bed\b will be used.]
[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.]
[N]#[num?Start at \anum\a commands back.]
[n?Suppress the command numbers when the commands are listed.]
@@ -5,7 +5,7 @@
[+DESCRIPTION?\b\f?\f\b is a command language interpreter that executes commands read from a command line string, the standard input, or a specified file.]
[+?If the \b-i\b option is present, or there are no \aarg\as and the standard input and standard error are attached to a terminal, the shell is considered to be interactive.]
[+?The \b-s\b and \b-c\b options are mutually exclusive. If the \b-c\b option is specified, the first \aarg\a is the command-line string and must be specified. Any remaining \aarg\as will be used to initialize \b$0\b and positional parameters.]
[+?If the neither \b-s\b nor \b-c\b is specified, then the first \barg\b will be the pathname of the file containing commands and \b$0\b will be set to this value. If there is no file with this pathname, and this pathame does not contain a \b/\b, then the \bPATH\b will be searched for an executable with this name. Any remaining \aarg\as will be used to initialize the positional parmaeters.]
[+?If the neither \b-s\b nor \b-c\b is specified, then the first \barg\b will be the pathname of the file containing commands and \b$0\b will be set to this value. If there is no file with this pathname, and this pathame does not contain a \b/\b, then the \bPATH\b will be searched for an executable with this name. Any remaining \aarg\as will be used to initialize the positional parameters.]
[+?Any option can use a \b+\b instead of a \b-\b to disable the corresponding option.]
[c?Read the commands from the first \aarg\a.]
[i?Specifies that the shell is interactive.]
@@ -34,9 +34,9 @@
[+-?The escape sequences \b\\E\b and \b\\e\b expand to the escape character which is octal \b033\b in ASCII.]
[+-?The escape sequence \b\\c\b\ax\a expands to Control-\ax\a.]
[+-?The escape sequence \b\\C[.\b\aname\a\b.]]\b expands to the collating element \aname\a.]
[+-?The escape sequence \b\\x{\b\ahex\a\b}\b expands to the character corresponding to the hexidecimal value \ahex\a.]
[+-?The escape sequence \b\\u[\b\ahex\a\b]]\b or \b\\u{\b\ahex\a\b}\b expands to the UTF-32 character corresponding to the unicode code point defined by the hexidecimal value \ahex\a. If the code point is not available in the current locale the escape sequence is treated as a literal sequence of characters.]
[+-?The escape sequence \b\\w[\b\ahex\a\b]]\b or \b\\w{\b\ahex\a\b}\b expands to the character corresponding to the (wchar_t) code point defined by the hexidecimal value \ahex\a in the current locale.]
[+-?The escape sequence \b\\x{\b\ahex\a\b}\b expands to the character corresponding to the hexadecimal value \ahex\a.]
[+-?The escape sequence \b\\u[\b\ahex\a\b]]\b or \b\\u{\b\ahex\a\b}\b expands to the UTF-32 character corresponding to the unicode code point defined by the hexadecimal value \ahex\a. If the code point is not available in the current locale the escape sequence is treated as a literal sequence of characters.]
[+-?The escape sequence \b\\w[\b\ahex\a\b]]\b or \b\\w{\b\ahex\a\b}\b expands to the character corresponding to the (wchar_t) code point defined by the hexadecimal value \ahex\a in the current locale.]
[+-?The format modifier flag \b=\b can be used to center a field to a specified width.]
[+-?The format modifier flag \bL\b can be used with the \bc\b and \bs\b formats to treat precision as character width instead of byte count.]
[+-?The format modifier flag \b,\b can be used with \bd\b and \bf\b formats to cause group of digits.]
@@ -7,7 +7,7 @@
[f:sfsync?Calls \bsfsync\b(3) to flush all buffered \asfio\a stream data.]
[s:fsync?Calls \bfsync\b(2) using the open file descriptor \afd\a to transfer all data associated with \afd\a to the storage device. \bsync\b waits until the transfer completes or an error is detected.]#[fd]
[S:syncfs?Calls \bsyncfs\b(2) using the open file descriptor \afd\a to transfer all data for the file system containing the file referred to by \afd\a. Depending on the native system implementation \bsync\b may return before the data is actually written. Implies \b--sfsync\b.]#[fd]
[X:sync|all?Calls \bsync\b(2) to transfer all data for all filesystems. Depending on the native system implementaion the writing, although scheduled, is not necessarily complete upon return from \bsync\b. Since \bsync\b(2) has no failure indication, \bsync\b only fails for option/operand syntax errors, or when \bsync\b(2) does not return, in which case \bsync\b(1) also does not return. Implies \b--sfsync\b. This is the default when no options are specified.]
[X:sync|all?Calls \bsync\b(2) to transfer all data for all filesystems. Depending on the native system implementation the writing, although scheduled, is not necessarily complete upon return from \bsync\b. Since \bsync\b(2) has no failure indication, \bsync\b only fails for option/operand syntax errors, or when \bsync\b(2) does not return, in which case \bsync\b(1) also does not return. Implies \b--sfsync\b. This is the default when no options are specified.]



@@ -22,7 +22,7 @@ Without the \b-f\b option, \b\f?\f\b sets, unsets, or displays attributes of var
[f?Each of the options and \aname\as refers to a function.]
[i]#?[base:=10?An integer. \abase\a represents the arithmetic base from 2 to 64.]
[l?Without \b-i\b, sets character mapping to \btolower\b. When used with \b-i\b, \b-E\b, \b-F\b, or \b-X\b indicates long variant.]
[m?Move. The value is the name of a variable whose value will be moved to \aname\a. The orignal variable will be unset. Cannot be used with any other options.]
[m?Move. The value is the name of a variable whose value will be moved to \aname\a. The original variable will be unset. Cannot be used with any other options.]
[n?Name reference. The value is the name of a variable that \aname\a references. \aname\a cannot contain a \b.\b. Cannot be use with any other options.]
[p?Causes the output to be in a format that can be used as input to the shell to recreate the attributes for variables.]
[r?Enables readonly. Once enabled it cannot be disabled. See \breadonly\b(1).]
@@ -624,7 +624,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
builtin commands. It takes the name of the built-in, the
address of the function that implements the built-in, and
a \f5void*\fP pointer that will be passed to this function
as the third agument whenever it is invoked.
as the third argument whenever it is invoked.
If the function address is \f5NULL\fP, the specified built-in
will be deleted. However, special built-in functions cannot
be deleted or modified.
@@ -102,7 +102,7 @@ int tty_get(int fd, struct termios *tty) {
if (errno != EINTR) return SYSERR;
errno = 0;
}
// Save terminal settings if in cannonical state.
// Save terminal settings if in canonical state.
if (ep->e_raw == 0) {
ep->e_savetty = *tty;
ep->e_savefd = fd;
@@ -51,7 +51,7 @@
// - ^X^H command to find out about history position (debugging)
// - ^X^D command to show any debugging info
//
// I do not pretend these for changes are completely independent, but you can use them to seperate
// I do not pretend these for changes are completely independent, but you can use them to separate
// features.
//
#include "config_ast.h" // IWYU pragma: keep
@@ -91,7 +91,7 @@ struct sh_scoped {
struct limits {
long arg_max; // max arg+env exec() size
int open_max; // maximum number of file descriptors
int child_max; // maxumum number of children
int child_max; // maximum number of children
};

struct shared {

0 comments on commit 657c587

Please sign in to comment.
You can’t perform that action at this time.