[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix typos.
From: |
Ondřej Bílka |
Subject: |
[PATCH] Fix typos. |
Date: |
Sat, 12 Oct 2013 11:04:37 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi, I used a stylepp tool that I write to find typos in comments and
documentation.
It found following typos which are sorted to simplify review.
---
- * * Some pages look beter if man2html works in troff mode, especially pages
- * with tables. You can deside at compile time which made you want to use.
+ * * Some pages look better if man2html works in troff mode, especially pages
+ * with tables. You can decide at compile time which made you want to use.
\n-case 'Z': /* time zone name or abbrevation */ \n #ifdef HAVE_TZNAME
\n+case 'Z': /* time zone name or abbreviation */ \n #ifdef HAVE_TZNAME
^
()} \n-on various file descriptors. To accomodate this need, readline can \n al
()} \n+on various file descriptors. To accommodate this need, readline can \n a
^^
criptor comes the first, and \n-(3) the addtion of thired argument, UNBUFFERED_R
criptor comes the first, and \n+(3) the addition of thired argument, UNBUFFERED_
^
n-#define DSIG_SIGPREFIX 0x01 /* don't alllow `SIG' PREFIX */ \n #define DSIG_N
n+#define DSIG_SIGPREFIX 0x01 /* don't allow `SIG' PREFIX */ \n #define DSIG_NO
^ ^
l_command_func_t *cfunc) \n-Returns the apppriate value to pass to @code{rl_comp
l_command_func_t *cfunc) \n+Returns the appropriate value to pass to @code{rl_co
^^
\n-/* Create an arrary of pointers to the lines that we
\n+/* Create an array of pointers to the lines that we w
^^
\n-/* Make the BUFFERED_STREAM associcated with buffers[FD] be BP, and
\n+/* Make the BUFFERED_STREAM associated with buffers[FD] be BP, and r
^^
and passed in COMMAND, perhaps doing it asynchrounously. \n COMMAND is exactly w
and passed in COMMAND, perhaps doing it asynchronously. \n COMMAND is exactly wh
^^
{ \n-/* Callers have to differentiate betwen indexed and associative */ \n vty
{ \n+/* Callers have to differentiate between indexed and associative */ \n vt
^^
\n-# Commands containing bizzare sequences of characters may conf
\n+# Commands containing bizarre sequences of characters may conf
^^
acters, but if the wrapped \n-character comsumes more than three columns, spaces
acters, but if the wrapped \n+character consumes more than three columns, spaces
^
d that the author is not liable for any damagages arising \n # from the use of t
d that the author is not liable for any damages arising \n # from the use of thi
^ ^
al while in the user callback. I try to demostrate what I mean \n with an exampl
al while in the user callback. I try to demonstrate what I mean \n with an examp
^
\n-The Korn Shell (ksh) is a descendent of the Bourne \n shell wr
\n+The Korn Shell (ksh) is a descendant of the Bourne \n shell wr
^
sed by this process and all its \n-dead descendents in BUFFER. \n Return the ela
sed by this process and all its \n+dead descendants in BUFFER. \n Return the ela
^
-* On some systems, like 4.2BSD and its descendents, there is a system call \n *
+* On some systems, like 4.2BSD and its descendants, there is a system call \n *
^
them and use features which are not descripted in the man manpages. \n *
them and use features which are not described in the man manpages. \n * (
^
st char *short_doc; /* Short version of documenation. */ \n char *handle; /* f
st char *short_doc; /* Short version of documentation. */ \n char *handle; /*
^
ents the _b_i_n_d builtin for more dyamic con- \n trol of readline than
ents the _b_i_n_d builtin for more dynamic con- \n trol of readline tha
^
\n-/* Specific errror message functions that eventually
\n+/* Specific error message functions that eventually
^ ^
can't really check for the file's \n-# existance before we run psize.aux, becau
can't really check for the file's \n+# existence before we run psize.aux, becau
^
\n-/* If a leading dot must be explicity matched, check to see if the \
\n+/* If a leading dot must be explicitly matched, check to see if the
^
\n-/* If a dot must be explicity matched, check to see if they
\n+/* If a dot must be explicitly matched, check to see if they
^
, 'h'): /* BSD mandoc */ \n-/* hack for fallthru from above */ \n mandoc_command
, 'h'): /* BSD mandoc */ \n+/* hack for fallthrough from above */ \n mandoc_comm
^ ^
s/keep Try to keep some programs in the forground and running. \n ./functions/k
s/keep Try to keep some programs in the foreground and running. \n ./functions/
^
\n-<td>Try to keep some programs in the forground and running.</td> \n </tr>
\n+<td>Try to keep some programs in the foreground and running.</td> \n </tr>
^
ic dynamic array variable initializer. Intialize array variable \n NAME with dy
ic dynamic array variable initializer. Initialize array variable \n NAME with d
^
data->pf; \n-init_conv_flag (data); /* initialise format flags */ \n
data->pf; \n+init_conv_flag (data); /* initialize format flags */ \n
^
\n-/* Initalize the current line information.
\n+/* Initialize the current line information.
^
ot yet been called, nor has it begun to intialize. \n @item RL_STATE_INITIALIZIN
ot yet been called, nor has it begun to initialize. \n @item RL_STATE_INITIALIZI
^
\n-/* Line buffer and maintenence. */ \n char *rl_line_buffer
\n+/* Line buffer and maintenance. */ \n char *rl_line_buffer
^
} \n-/* Done with modfiers. */ \n /* Believe it or not, we
} \n+/* Done with modifiers. */ \n /* Believe it or not, w
^
ed. The function should \n-perform any necesary application or system-specific
ed. The function should \n+perform any necessary application or system-specific
^^
ptors, otherwise just do whatever is \n-neccessary for side effecting. flags &
ptors, otherwise just do whatever is \n+necessary for side effecting. flags & R
^ ^
\n-/* Write out any neccessary opening information for \n ST
\n+/* Write out any necessary opening information for \n STR
^ ^
CTIVE is zero, then just do whatever is neccessary to \n produce the appropriate
CTIVE is zero, then just do whatever is necessary to \n produce the appropriate
^ ^
e which the expression stack grows when neccessary. */ \n #define EXPR_STACK_GRO
e which the expression stack grows when necessary. */ \n #define EXPR_STACK_GROW
^ ^
\n-/* Write out the matching #endif, if neccessary. */ \n if (builtin->dependenc
\n+/* Write out the matching #endif, if necessary. */ \n if (builtin->dependenci
^ ^
hile \n-creating the production file if neccessary. */ \n int
hile \n+creating the production file if necessary. */ \n int
^ ^
ELEMENT to ARRAY, growing the array if neccessary. */ \n void
ELEMENT to ARRAY, growing the array if necessary. */ \n void
^ ^
ize the hostname list the first time if neccessary. \n The array is malloc ()'ed
ize the hostname list the first time if necessary. \n The array is malloc ()'ed,
^ ^
\n-If an error ocurred in expansion, then @var{output}
\n+If an error occurred in expansion, then @var{output}
^^
\n-If an error ocurred in expansion, then OUTPUT contai
\n+If an error occurred in expansion, then OUTPUT conta
^^
\n-If an error ocurred in expansion, then OUTPUT contai
\n+If an error occurred in expansion, then OUTPUT conta
^^
ll to read (). \n-Otherwise, some error ocurred, also signifying EOF. */ \n if (
ll to read (). \n+Otherwise, some error occurred, also signifying EOF. */ \n if
^^
-/* Some kind of throw to top_level has occured. */ \n case FORCE_EOF:
+/* Some kind of throw to top_level has occurred. */ \n case FORCE_EOF:
^^
-/* Some kind of throw to top_level has occured. */ \n case FORCE_EOF:
+/* Some kind of throw to top_level has occurred. */ \n case FORCE_EOF:
^^
-/* Some kind of throw to top_level has occured. */ \n case FORCE_EOF:
+/* Some kind of throw to top_level has occurred. */ \n case FORCE_EOF:
^^
\n-/* Non-zero means SIGINT has already ocurred. */ \n extern volatile int inter
\n+/* Non-zero means SIGINT has already occurred. */ \n extern volatile int inte
^^
\n-/* Find the first ocurrence in S of any character in ACCEP
\n+/* Find the first occurrence in S of any character in ACCE
^^
rstring n s bla \n-# replace the n-th occurence of s with bla \n
rstring n s bla \n+# replace the n-th occurrence of s with bla \n
^^
to a new (empty) line, \n-usually after ouputting a newline. \n @end deftypefun
to a new (empty) line, \n+usually after outputting a newline. \n @end deftypefun
^
\n-/* Turn the positional paramters into a string, understanding q
\n+/* Turn the positional parameters into a string, understanding
^
\n-/* Turn the positional paramters into a string, understanding q
\n+/* Turn the positional parameters into a string, understanding
^
n-The first is a count: the numeric arg pased to this command. \n The second is
n+The first is a count: the numeric arg passed to this command. \n The second is
^^
ero only while we are constructing a \n-pipline, so what we are concerned about
ero only while we are constructing a \n+pipeline, so what we are concerned about
^
s is correct, and an absolute \n-cursor postion in multibyte mode, but a buffer
s is correct, and an absolute \n+cursor position in multibyte mode, but a buffer
^
st recent command preceding the current postition in the \n history list contain
st recent command preceding the current position in the \n history list containi
^^
le we would like \n-to ignore duplicate possiblilities. Scan for the text to \n
le we would like \n+to ignore duplicate possibilities. Scan for the text to \n
^^
\n-/* One other possiblilty. The user may want to resum
\n+/* One other possibility. The user may want to resum
^ ^
\n-For readabilty, we declare a number of new o
\n+For readability, we declare a number of new
^
d to be \n-executed when that signal is recieved. The slot can also contain \n
d to be \n+executed when that signal is received. The slot can also contain \n
^^
REDIRLIST 0x080000 /* parsing a list of redirctions preceding a simple command n
REDIRLIST 0x080000 /* parsing a list of redirections preceding a simple command
^
oplevel! \n-make_local_variable has the responsibilty of changing the \n variabl
oplevel! \n+make_local_variable has the responsibility of changing the \n variab
^
name without the SIG prefix first case sensitivly or \n insensitively depending
name without the SIG prefix first case sensitively or \n insensitively dependin
^
series of comma-separated strings or a seqeunce expression \n between a pair of
series of comma-separated strings or a sequence expression \n between a pair of
^^
series of comma-separated strings or a seqeunce expression \n between a pair of
series of comma-separated strings or a sequence expression \n between a pair of
^^
, [[...]]. This is a binary tree -- we slippped \n a recursive-descent parser i
, [[...]]. This is a binary tree -- we slipped \n a recursive-descent parser in
^ ^
value of $_H_I_S_T_F_I_L_E \n-specifes the file where Bash writes th
value of $_H_I_S_T_F_I_L_E \n+specifies the file where Bash writes t
^
r the fraction and the integral part or staticly \n * declare with fix size
r the fraction and the integral part or statically \n * declare with fix size
^^
RTMAX must be defined, SIGRTMIN must be stricly less than \n SIGRTMAX, and the d
RTMAX must be defined, SIGRTMIN must be strictly less than \n SIGRTMAX, and the
^
sing this -- it's just straight textual subsitution */ \n #if defined (HANDLE_MU
sing this -- it's just straight textual substitution */ \n #if defined (HANDLE_M
^
\n-# see if subsitution worked \n
\n+# see if substitution worked \n
^
ining numbers may break numeric history sustitutions. \n #
ining numbers may break numeric history substitutions. \n #
^
nd of the argument list. This check is supressed if the \n argument is FALSE.
nd of the argument list. This check is suppressed if the \n argument is FALSE.
^^
n-/* This component can be part of both syntaces but has different \n leading ch
n+/* This component can be part of both syntaxes but has different \n leading ch
^
\n-# First, include any systemwide bindings and variable \n # as
\n+# First, include any system-wide bindings and variable \n # a
^
\n-# First, include any systemwide bindings and variable \n # as
\n+# First, include any system-wide bindings and variable \n # a
^
DD> \n-The systemwide initialization file, executed
DD> \n+The system-wide initialization file, execute
^
\n-Refer to the stacks thru separate pointers, to allow yyoverf
\n+Refer to the stacks through separate pointers, to allow yyov
^ ^
\n-Refer to the stacks thru separate pointers, to allow yyoverf
\n+Refer to the stacks through separate pointers, to allow yyov
^ ^
\n-/* Case on toplevel character. */ \n switch (c)
\n+/* Case on top-level character. */ \n switch (c)
^
\n-/* A macro to avoid making an uneccessary function call. */ \n #define
\n+/* A macro to avoid making an unnecessary function call. */ \n #define
^^
* \n-* Global functions and variables unsed and undocumented * \n *
* \n+* Global functions and variables used and undocumented * \n *
^^
diff --git a/lib/sh/strftime.c b/lib/sh/strftime.c
index aa3fc85..6bb0a15 100644
--- a/lib/sh/strftime.c
+++ b/lib/sh/strftime.c
@@ -517,7 +517,7 @@ strftime(char *s, size_t maxsize, const char *format, const
struct tm *timeptr)
sprintf(tbuf+1, "%02ld%02ld", off/60, off%60);
break;
- case 'Z': /* time zone name or abbrevation */
+ case 'Z': /* time zone name or abbreviation */
#ifdef HAVE_TZNAME
i = (daylight && timeptr->tm_isdst > 0); /* 0 or 1 */
strcpy(tbuf, tzname[i]);
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi
index dc272a2..777c0d2 100644
--- a/lib/readline/doc/rltech.texi
+++ b/lib/readline/doc/rltech.texi
@@ -1247,7 +1247,7 @@ values for only those capabilities Readline uses.
An alternate interface is available to plain @code{readline()}. Some
applications need to interleave keyboard I/O with file, device, or
window system I/O, typically by using a main loop to @code{select()}
-on various file descriptors. To accomodate this need, readline can
+on various file descriptors. To accommodate this need, readline can
also be invoked as a `callback' function from an event loop. There
are functions available to make this easy.
diff --git a/lib/sh/zgetline.c b/lib/sh/zgetline.c
index 33ac830..fdc3546 100644
--- a/lib/sh/zgetline.c
+++ b/lib/sh/zgetline.c
@@ -50,7 +50,7 @@ typedef ssize_t creadfunc_t __P((int, char *));
The differences are
(1) using file descriptor instead of FILE *,
(2) the order of arguments; the file descriptor comes the first, and
- (3) the addtion of thired argument, UNBUFFERED_READ; this argument
+ (3) the addition of thired argument, UNBUFFERED_READ; this argument
controls whether get_line uses buffering or not to get a byte data
from FD. get_line uses zreadc if UNBUFFERED_READ is zero; and
uses zread if UNBUFFERED_READ is non-zero.
diff --git a/trap.h b/trap.h
index 8591ee2..e64c16b 100644
--- a/trap.h
+++ b/trap.h
@@ -46,7 +46,7 @@
#define BASH_NSIG NSIG+3
/* Flags values for decode_signal() */
-#define DSIG_SIGPREFIX 0x01 /* don't alllow `SIG' PREFIX */
+#define DSIG_SIGPREFIX 0x01 /* don't allow `SIG' PREFIX */
#define DSIG_NOCASE 0x02 /* case-insensitive comparison */
/* A value which can never be the target of a trap handler. */
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi
index dc272a2..777c0d2 100644
--- a/lib/readline/doc/rltech.texi
+++ b/lib/readline/doc/rltech.texi
@@ -1611,7 +1611,7 @@ This calls @code{rl_complete_internal()} with an argument
of @samp{*}.
@end deftypefun
@deftypefun int rl_completion_mode (rl_command_func_t *cfunc)
-Returns the apppriate value to pass to @code{rl_complete_internal()}
+Returns the appropriate value to pass to @code{rl_complete_internal()}
depending on whether @var{cfunc} was called twice in succession and
the values of the @code{show-all-if-ambiguous} and
@code{show-all-if-unmodified} variables.
diff --git a/lib/readline/isearch.c b/lib/readline/isearch.c
index 712b9ea..e8e3eeb 100644
--- a/lib/readline/isearch.c
+++ b/lib/readline/isearch.c
@@ -215,7 +215,7 @@ _rl_isearch_init (direction)
cxt->search_terminators = _rl_isearch_terminators ? _rl_isearch_terminators
: default_isearch_terminators;
- /* Create an arrary of pointers to the lines that we want to search. */
+ /* Create an array of pointers to the lines that we want to search. */
hlist = history_list ();
rl_maybe_replace_line ();
i = 0;
diff --git a/input.c b/input.c
index 2731e29..1ff550c 100644
--- a/input.c
+++ b/input.c
@@ -450,7 +450,7 @@ close_buffered_fd (fd)
return (close_buffered_stream (buffers[fd]));
}
-/* Make the BUFFERED_STREAM associcated with buffers[FD] be BP, and return
+/* Make the BUFFERED_STREAM associated with buffers[FD] be BP, and return
the old BUFFERED_STREAM. */
BUFFERED_STREAM *
set_buffered_stream (fd, bp)
diff --git a/execute_cmd.c b/execute_cmd.c
index 7432c85..e2c397d 100644
--- a/execute_cmd.c
+++ b/execute_cmd.c
@@ -506,7 +506,7 @@ async_redirect_stdin ()
#define DESCRIBE_PID(pid) do { if (interactive) describe_pid (pid); } while (0)
-/* Execute the command passed in COMMAND, perhaps doing it asynchrounously.
+/* Execute the command passed in COMMAND, perhaps doing it asynchronously.
COMMAND is exactly what read_command () places into GLOBAL_COMMAND.
ASYNCHROUNOUS, if non-zero, says to do this command in the background.
PIPE_IN and PIPE_OUT are file descriptors saying where input comes
diff --git a/support/man2html.c b/support/man2html.c
index 2432c13..c76ec26 100644
--- a/support/man2html.c
+++ b/support/man2html.c
@@ -49,15 +49,15 @@
* * Tables are converted but some features are not possible in html.
* * The tabbing environment is converted by counting characters and adding
* spaces. This might go wrong (outside <PRE>)
- * * Some pages look beter if man2html works in troff mode, especially pages
- * with tables. You can deside at compile time which made you want to use.
+ * * Some pages look better if man2html works in troff mode, especially pages
+ * with tables. You can decide at compile time which made you want to use.
*
* -DNROFF=0 troff mode
* -DNROFF=1 nroff mode (default)
*
* if you install both modes, you should compile with the correct CGIBASE.
* * Some manpages rely on the fact that troff/nroff is used to convert
- * them and use features which are not descripted in the man manpages.
+ * them and use features which are not described in the man manpages.
* (definitions, calculations, conditionals, requests). I can't guarantee
* that all these features work on all manpages. (I didn't have the
* time to look through all the available manpages.)
diff --git a/subst.c b/subst.c
index 48c89c1..194aa1f 100644
--- a/subst.c
+++ b/subst.c
@@ -6220,7 +6220,7 @@ get_var_and_type (varname, value, ind, quoted, flags,
varp, valp)
{ /* [ */
if (ALL_ELEMENT_SUB (temp[0]) && temp[1] == ']')
{
- /* Callers have to differentiate betwen indexed and associative */
+ /* Callers have to differentiate between indexed and associative
*/
vtype = VT_ARRAYVAR;
if (temp[0] == '*')
vtype |= VT_STARSUB;
diff --git a/lib/readline/display.c b/lib/readline/display.c
index e4105ee..537cc8a 100644
--- a/lib/readline/display.c
+++ b/lib/readline/display.c
@@ -1300,7 +1300,7 @@ update_line (old, new, current_line, omax, nmax,
inv_botlin)
size_t ret;
/* This fixes only double-column characters, but if the wrapped
- character comsumes more than three columns, spaces will be
+ character consumes more than three columns, spaces will be
inserted in the string buffer. */
if (current_line < line_state_visible->wbsize &&
line_state_visible->wrapped_line[current_line] > 0)
_rl_clear_to_eol (line_state_visible->wrapped_line[current_line]);
diff --git a/examples/scripts/bcsh.sh b/examples/scripts/bcsh.sh
index b810cab..1a8f72d 100755
--- a/examples/scripts/bcsh.sh
+++ b/examples/scripts/bcsh.sh
@@ -26,7 +26,7 @@
# This software may be used for any purpose provided the original
# copyright notice and this notice are affixed thereto. No warranties of
# any kind whatsoever are provided with this software, and it is hereby
-# understood that the author is not liable for any damagages arising
+# understood that the author is not liable for any damages arising
# from the use of this software.
#
# Features Which the Cshell Does Not Have:
diff --git a/lib/readline/examples/excallback.c
b/lib/readline/examples/excallback.c
index 385492b..20f4bef 100644
--- a/lib/readline/examples/excallback.c
+++ b/lib/readline/examples/excallback.c
@@ -19,7 +19,7 @@ My example shows how, using the alternate interface, you can
interactively change the prompt (which is very nice imo). Also, I
point out that you must roll your own terminal setting when using the
alternate interface because readline depreps (using your parlance) the
-terminal while in the user callback. I try to demostrate what I mean
+terminal while in the user callback. I try to demonstrate what I mean
with an example. I've included the program below.
To compile, I just put the program in the examples directory and made
diff --git a/doc/article.txt b/doc/article.txt
index c19ff92..42dd500 100644
--- a/doc/article.txt
+++ b/doc/article.txt
@@ -174,7 +174,7 @@ semantics, redirection, and quoting as the Bourne shell.
Where differences appear between the POSIX.2 standard and
traditional sh behavior, Bash follows POSIX.
- The Korn Shell (ksh) is a descendent of the Bourne
+ The Korn Shell (ksh) is a descendant of the Bourne
shell written at AT&T Bell Laboratories by David Korn|-. It
provides a number of useful features that POSIX and Bash
have adopted. Many of the interactive facilities in POSIX.2
diff --git a/include/systimes.h b/include/systimes.h
index 9629d25..ec2d92f 100644
--- a/include/systimes.h
+++ b/include/systimes.h
@@ -45,7 +45,7 @@ struct tms
};
/* Store the CPU time used by this process and all its
- dead descendents in BUFFER.
+ dead descendants in BUFFER.
Return the elapsed real time from an arbitrary point in the
past (the bash emulation uses the epoch), or (clock_t) -1 for
errors. All times are in CLK_TCKths of a second. */
diff --git a/lib/sh/oslib.c b/lib/sh/oslib.c
index b3470d1..e5aa7a3 100644
--- a/lib/sh/oslib.c
+++ b/lib/sh/oslib.c
@@ -124,7 +124,7 @@ dup2 (fd1, fd2)
/*
* Return the total number of available file descriptors.
*
- * On some systems, like 4.2BSD and its descendents, there is a system call
+ * On some systems, like 4.2BSD and its descendants, there is a system call
* that returns the size of the descriptor table: getdtablesize(). There are
* lots of ways to emulate this on non-BSD systems.
*
diff --git a/builtins.h b/builtins.h
index 8f7b461..cc0c79c 100644
--- a/builtins.h
+++ b/builtins.h
@@ -50,7 +50,7 @@ struct builtin {
sh_builtin_func_t *function; /* The address of the invoked function. */
int flags; /* One of the #defines above. */
char * const *long_doc; /* NULL terminated array of strings. */
- const char *short_doc; /* Short version of documenation. */
+ const char *short_doc; /* Short version of documentation. */
char *handle; /* for future use */
};
diff --git a/doc/article.txt b/doc/article.txt
index c19ff92..42dd500 100644
--- a/doc/article.txt
+++ b/doc/article.txt
@@ -477,7 +477,7 @@ There is a readline command to re-read the file, so users
can edit the file, change some bindings, and begin to use
them almost immediately.
- Bash implements the _b_i_n_d builtin for more dyamic con-
+ Bash implements the _b_i_n_d builtin for more dynamic con-
trol of readline than the startup file permits. _B_i_n_d is
used in several ways. In _l_i_s_t mode, it can display the
current key bindings, list all the readline editing direc-
diff --git a/error.h b/error.h
index e79ba3e..0b6d885 100644
--- a/error.h
+++ b/error.h
@@ -59,7 +59,7 @@ extern void command_error __P((const char *, int, int, int));
extern char *command_errstr __P((int));
-/* Specific errror message functions that eventually call report_error or
+/* Specific error message functions that eventually call report_error or
internal_error. */
extern void err_badarraysub __P((const char *));
diff --git a/builtins/psize.sh b/builtins/psize.sh
index c4d73e1..29bc115 100644
--- a/builtins/psize.sh
+++ b/builtins/psize.sh
@@ -27,7 +27,7 @@ echo ""
#
# Try to avoid tempfile races. We can't really check for the file's
-# existance before we run psize.aux, because `test -e' is not portable,
+# existence before we run psize.aux, because `test -e' is not portable,
# `test -h' (test for symlinks) is not portable, and `test -f' only
# checks for regular files. If we used mktemp(1), we're ahead of the
# game.
diff --git a/lib/glob/glob.c b/lib/glob/glob.c
index ad9b9d9..a6a0b0d 100644
--- a/lib/glob/glob.c
+++ b/lib/glob/glob.c
@@ -217,7 +217,7 @@ mbskipname (pat, dname, flags)
(dn_wc[1] == L'\0' || (dn_wc[1] == L'.' && dn_wc[2] == L'\0'))))
ret = 1;
- /* If a leading dot must be explicity matched, check to see if the
+ /* If a leading dot must be explicitly matched, check to see if the
pattern and dirname both have one. */
else if (noglob_dot_filenames && dn_wc[0] == L'.' &&
pat_wc[0] != L'.' &&
diff --git a/lib/glob/glob.c b/lib/glob/glob.c
index ad9b9d9..a6a0b0d 100644
--- a/lib/glob/glob.c
+++ b/lib/glob/glob.c
@@ -179,7 +179,7 @@ skipname (pat, dname, flags)
(dname[1] == '\0' || (dname[1] == '.' && dname[2] == '\0'))))
return 1;
- /* If a dot must be explicity matched, check to see if they do. */
+ /* If a dot must be explicitly matched, check to see if they do. */
else if (noglob_dot_filenames && dname[0] == '.' && pat[0] != '.' &&
(pat[0] != '\\' || pat[1] != '.'))
return 1;
diff --git a/support/man2html.c b/support/man2html.c
index 2432c13..c76ec26 100644
--- a/support/man2html.c
+++ b/support/man2html.c
@@ -2835,7 +2835,7 @@ scan_request(char *c)
case V('S', 'S'):
mode = 1;
case V('S', 'h'): /* BSD mandoc */
- /* hack for fallthru from above */
+ /* hack for fallthrough from above */
mandoc_command = !mode || mandoc_command;
case V('S', 'H'):
c = c + j;
diff --git a/examples/INDEX.txt b/examples/INDEX.txt
index db2858f..5f0abad 100644
--- a/examples/INDEX.txt
+++ b/examples/INDEX.txt
@@ -32,7 +32,7 @@ Path Description X-Ref
./functions/isvalidip Test user input for valid IP Addresses.
./functions/jdate.bash Julian date conversion.
./functions/jj.bash Look for running jobs.
-./functions/keep Try to keep some programs in the forground and running.
+./functions/keep Try to keep some programs in the foreground and
running.
./functions/ksh-cd ksh-like 'cd': cd [-LP] [dir [change]]. ksh
./functions/ksh-compat-test ksh-like arithmetic test replacements. ksh
./functions/kshenv Functions and aliases to provide the beginnings of a
ksh environment for bash. ksh
diff --git a/examples/INDEX.html b/examples/INDEX.html
index 5e8cdc6..820379a 100644
--- a/examples/INDEX.html
+++ b/examples/INDEX.html
@@ -143,7 +143,7 @@
</tr>
<tr>
<td>./functions/keep</td>
- <td>Try to keep some programs in the forground and running.</td>
+ <td>Try to keep some programs in the foreground and running.</td>
</tr>
<tr>
<td>./functions/ksh-cd</td>
diff --git a/variables.c b/variables.c
index 7bb850f..9fa2fef 100644
--- a/variables.c
+++ b/variables.c
@@ -1133,7 +1133,7 @@ get_self (self)
}
#if defined (ARRAY_VARS)
-/* A generic dynamic array variable initializer. Intialize array variable
+/* A generic dynamic array variable initializer. Initialize array variable
NAME with dynamic value function GETFUNC and assignment function SETFUNC. */
static SHELL_VAR *
init_dynamic_array_var (name, getfunc, setfunc, attrs)
diff --git a/lib/sh/snprintf.c b/lib/sh/snprintf.c
index d46b2d9..4ac57f2 100644
--- a/lib/sh/snprintf.c
+++ b/lib/sh/snprintf.c
@@ -1259,7 +1259,7 @@ vsnprintf_internal(data, string, length, format, args)
}
convstart = data->pf;
- init_conv_flag (data); /* initialise format flags */
+ init_conv_flag (data); /* initialize format flags */
state = 1;
for (state = 1; state && *data->pf; )
diff --git a/lib/readline/readline.c b/lib/readline/readline.c
index f2e4d93..1412527 100644
--- a/lib/readline/readline.c
+++ b/lib/readline/readline.c
@@ -971,7 +971,7 @@ rl_initialize ()
RL_SETSTATE(RL_STATE_INITIALIZED);
}
- /* Initalize the current line information. */
+ /* Initialize the current line information. */
_rl_init_line_state ();
/* We aren't done yet. We haven't even gotten started yet! */
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi
index dc272a2..777c0d2 100644
--- a/lib/readline/doc/rltech.texi
+++ b/lib/readline/doc/rltech.texi
@@ -487,7 +487,7 @@ whether a particular state bit is set. Current state bits
include:
@table @code
@item RL_STATE_NONE
-Readline has not yet been called, nor has it begun to intialize.
+Readline has not yet been called, nor has it begun to initialize.
@item RL_STATE_INITIALIZING
Readline is initializing its internal data structures.
@item RL_STATE_INITIALIZED
diff --git a/lib/readline/readline.c b/lib/readline/readline.c
index f2e4d93..1412527 100644
--- a/lib/readline/readline.c
+++ b/lib/readline/readline.c
@@ -238,7 +238,7 @@ int rl_erase_empty_line = 0;
character bound to accept-line. */
int rl_num_chars_to_read;
-/* Line buffer and maintenence. */
+/* Line buffer and maintenance. */
char *rl_line_buffer = (char *)NULL;
int rl_line_buffer_len = 0;
diff --git a/lib/readline/histexpand.c b/lib/readline/histexpand.c
index 8fb3798..d8e08b3 100644
--- a/lib/readline/histexpand.c
+++ b/lib/readline/histexpand.c
@@ -854,7 +854,7 @@ history_expand_internal (string, start, end_index_ptr,
ret_string, current_line)
}
i += 2;
}
- /* Done with modfiers. */
+ /* Done with modifiers. */
/* Believe it or not, we have to back the pointer up by one. */
--i;
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi
index dc272a2..777c0d2 100644
--- a/lib/readline/doc/rltech.texi
+++ b/lib/readline/doc/rltech.texi
@@ -1750,7 +1750,7 @@ I'm not happy with how this works yet, so it's
undocumented.
If non-zero, this is the address of a function called when reading
directory entries from the filesystem for completion and comparing
them to the partial word to be completed. The function should
-perform any necesary application or system-specific conversion on
+perform any necessary application or system-specific conversion on
the filename, such as converting between character sets or converting
from a filesystem format to a character input format.
The function takes two arguments: @var{fname}, the filename to be converted,
diff --git a/redir.c b/redir.c
index 02e477d..0ac66a1 100644
--- a/redir.c
+++ b/redir.c
@@ -206,7 +206,7 @@ expandable_filename:
/* Perform the redirections on LIST. If flags & RX_ACTIVE, then actually
make input and output file descriptors, otherwise just do whatever is
- neccessary for side effecting. flags & RX_UNDOABLE says to remember
+ necessary for side effecting. flags & RX_UNDOABLE says to remember
how to undo the redirections later, if non-zero. If flags & RX_CLEXEC
is non-zero, file descriptors opened in do_redirection () have their
close-on-exec flag set. */
diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c
index cdfdfb1..cf434a9 100644
--- a/builtins/mkbuiltins.c
+++ b/builtins/mkbuiltins.c
@@ -1138,7 +1138,7 @@ char *structfile_footer[] = {
(char *)NULL
};
-/* Write out any neccessary opening information for
+/* Write out any necessary opening information for
STRUCTFILE and EXTERNFILE. */
void
write_file_headers (structfile, externfile)
diff --git a/redir.c b/redir.c
index 02e477d..0ac66a1 100644
--- a/redir.c
+++ b/redir.c
@@ -659,7 +659,7 @@ undoablefd (fd)
/* Do the specific redirection requested. Returns errno or one of the
special redirection errors (*_REDIRECT) in case of error, 0 on success.
- If flags & RX_ACTIVE is zero, then just do whatever is neccessary to
+ If flags & RX_ACTIVE is zero, then just do whatever is necessary to
produce the appropriate side effects. flags & RX_UNDOABLE, if non-zero,
says to remember how to undo each redirection. If flags & RX_CLEXEC is
non-zero, then we set all file descriptors > 2 that we open to be
diff --git a/bashline.c b/bashline.c
index 3cbb18f..0f35a61 100644
--- a/bashline.c
+++ b/bashline.c
@@ -772,7 +772,7 @@ clear_hostname_list ()
}
/* Return a NULL terminated list of hostnames which begin with TEXT.
- Initialize the hostname list the first time if neccessary.
+ Initialize the hostname list the first time if necessary.
The array is malloc ()'ed, but not the individual strings. */
static char **
hostnames_matching (text)
diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c
index cdfdfb1..cf434a9 100644
--- a/builtins/mkbuiltins.c
+++ b/builtins/mkbuiltins.c
@@ -198,7 +198,7 @@ void remove_trailing_whitespace ();
/* For each file mentioned on the command line, process it and
write the information to STRUCTFILE and EXTERNFILE, while
- creating the production file if neccessary. */
+ creating the production file if necessary. */
int
main (argc, argv)
int argc;
diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c
index cdfdfb1..cf434a9 100644
--- a/builtins/mkbuiltins.c
+++ b/builtins/mkbuiltins.c
@@ -390,7 +390,7 @@ copy_string_array (array)
return (copy);
}
-/* Add ELEMENT to ARRAY, growing the array if neccessary. */
+/* Add ELEMENT to ARRAY, growing the array if necessary. */
void
array_add (element, array)
char *element;
diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c
index cdfdfb1..cf434a9 100644
--- a/builtins/mkbuiltins.c
+++ b/builtins/mkbuiltins.c
@@ -1247,7 +1247,7 @@ write_builtins (defs, structfile, externfile)
long documentation strings. */
save_builtin (builtin);
- /* Write out the matching #endif, if neccessary. */
+ /* Write out the matching #endif, if necessary. */
if (builtin->dependencies)
{
if (externfile)
diff --git a/expr.c b/expr.c
index 98d75b6..c43ccf0 100644
--- a/expr.c
+++ b/expr.c
@@ -87,7 +87,7 @@
Here is a macro which accepts newlines, tabs and spaces as whitespace. */
#define cr_whitespace(c) (whitespace(c) || ((c) == '\n'))
-/* Size be which the expression stack grows when neccessary. */
+/* Size be which the expression stack grows when necessary. */
#define EXPR_STACK_GROW_SIZE 10
/* Maximum amount of recursion allowed. This prevents a non-integer
diff --git a/lib/readline/doc/hstech.texi b/lib/readline/doc/hstech.texi
index 4fc9e8e..03d10fe 100644
--- a/lib/readline/doc/hstech.texi
+++ b/lib/readline/doc/hstech.texi
@@ -377,7 +377,7 @@ if the returned line should be displayed, but not executed,
as with the @code{:p} modifier (@pxref{Modifiers}).
@end table
-If an error ocurred in expansion, then @var{output} contains a descriptive
+If an error occurred in expansion, then @var{output} contains a descriptive
error message.
@end deftypefun
diff --git a/lib/readline/histexpand.c b/lib/readline/histexpand.c
index 8fb3798..d8e08b3 100644
--- a/lib/readline/histexpand.c
+++ b/lib/readline/histexpand.c
@@ -894,7 +894,7 @@ history_expand_internal (string, start, end_index_ptr,
ret_string, current_line)
1) If expansions did take place
2) If the `p' modifier was given and the caller should print the result
- If an error ocurred in expansion, then OUTPUT contains a descriptive
+ If an error occurred in expansion, then OUTPUT contains a descriptive
error message. */
#define ADD_STRING(s) \
diff --git a/lib/readline/history.h b/lib/readline/history.h
index 1257e66..c8af47e 100644
--- a/lib/readline/history.h
+++ b/lib/readline/history.h
@@ -216,7 +216,7 @@ extern int history_truncate_file PARAMS((const char *,
int));
-1) If there was an error in expansion.
2) If the returned line should just be printed.
- If an error ocurred in expansion, then OUTPUT contains a descriptive
+ If an error occurred in expansion, then OUTPUT contains a descriptive
error message. */
extern int history_expand PARAMS((char *, char **));
diff --git a/lib/readline/input.c b/lib/readline/input.c
index b49af88..74f9ffb 100644
--- a/lib/readline/input.c
+++ b/lib/readline/input.c
@@ -511,7 +511,7 @@ rl_getc (stream)
/* If the error that we received was SIGINT, then try again,
this is simply an interrupted system call to read ().
- Otherwise, some error ocurred, also signifying EOF. */
+ Otherwise, some error occurred, also signifying EOF. */
if (errno != EINTR)
return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF);
}
diff --git a/eval.c b/eval.c
index 9011e0b..0d4188e 100644
--- a/eval.c
+++ b/eval.c
@@ -90,7 +90,7 @@ reader_loop ()
switch (code)
{
- /* Some kind of throw to top_level has occured. */
+ /* Some kind of throw to top_level has occurred. */
case FORCE_EOF:
case ERREXIT:
case EXITPROG:
diff --git a/quit.h b/quit.h
index e7bf05b..1d2eb69 100644
--- a/quit.h
+++ b/quit.h
@@ -21,7 +21,7 @@
#if !defined (_QUIT_H_)
#define _QUIT_H_
-/* Non-zero means SIGINT has already ocurred. */
+/* Non-zero means SIGINT has already occurred. */
extern volatile int interrupt_state;
extern volatile int terminating_signal;
diff --git a/shell.c b/shell.c
index 9e74f3b..152919d 100644
--- a/shell.c
+++ b/shell.c
@@ -1222,7 +1222,7 @@ run_wordexp (words)
{
switch (code)
{
- /* Some kind of throw to top_level has occured. */
+ /* Some kind of throw to top_level has occurred. */
case FORCE_EOF:
return last_command_exit_value = 127;
case ERREXIT:
diff --git a/shell.c b/shell.c
index 9e74f3b..152919d 100644
--- a/shell.c
+++ b/shell.c
@@ -1300,7 +1300,7 @@ run_one_command (command)
#endif /* PROCESS_SUBSTITUTION */
switch (code)
{
- /* Some kind of throw to top_level has occured. */
+ /* Some kind of throw to top_level has occurred. */
case FORCE_EOF:
return last_command_exit_value = 127;
case ERREXIT:
diff --git a/lib/sh/strpbrk.c b/lib/sh/strpbrk.c
index 4439986..8cce830 100644
--- a/lib/sh/strpbrk.c
+++ b/lib/sh/strpbrk.c
@@ -29,7 +29,7 @@
#include <stdc.h>
-/* Find the first ocurrence in S of any character in ACCEPT. */
+/* Find the first occurrence in S of any character in ACCEPT. */
char *
strpbrk (s, accept)
register const char *s;
diff --git a/examples/scripts/dd-ex.sh b/examples/scripts/dd-ex.sh
index fafc83f..0543241 100644
--- a/examples/scripts/dd-ex.sh
+++ b/examples/scripts/dd-ex.sh
@@ -243,7 +243,7 @@ replace () {
}
# rstring n s bla
-# replace the n-th occurence of s with bla
+# replace the n-th occurrence of s with bla
rstring () {
n="$1"
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi
index dc272a2..777c0d2 100644
--- a/lib/readline/doc/rltech.texi
+++ b/lib/readline/doc/rltech.texi
@@ -908,7 +908,7 @@ Readline thinks the screen display is correct.
@deftypefun int rl_on_new_line (void)
Tell the update functions that we have moved onto a new (empty) line,
-usually after ouputting a newline.
+usually after outputting a newline.
@end deftypefun
@deftypefun int rl_on_new_line_with_prompt (void)
diff --git a/subst.c b/subst.c
index 48c89c1..194aa1f 100644
--- a/subst.c
+++ b/subst.c
@@ -2315,7 +2315,7 @@ string_list_dollar_at (list, quoted)
return ret;
}
-/* Turn the positional paramters into a string, understanding quoting and
+/* Turn the positional parameters into a string, understanding quoting and
the various subtleties of using the first character of $IFS as the
separator. Calls string_list_dollar_at, string_list_dollar_star, and
string_list as appropriate. */
diff --git a/subst.h b/subst.h
index 914fffe..a35fc0f 100644
--- a/subst.h
+++ b/subst.h
@@ -100,7 +100,7 @@ extern char *string_list_dollar_star __P((WORD_LIST *));
/* Expand $@ into a single string, obeying POSIX rules. */
extern char *string_list_dollar_at __P((WORD_LIST *, int));
-/* Turn the positional paramters into a string, understanding quoting and
+/* Turn the positional parameters into a string, understanding quoting and
the various subtleties of using the first character of $IFS as the
separator. Calls string_list_dollar_at, string_list_dollar_star, and
string_list as appropriate. */
diff --git a/lib/readline/text.c b/lib/readline/text.c
index 536e31a..2b09f3c 100644
--- a/lib/readline/text.c
+++ b/lib/readline/text.c
@@ -240,7 +240,7 @@ rl_replace_line (text, clear_undo)
this is the same as rl_end.
Any command that is called interactively receives two arguments.
- The first is a count: the numeric arg pased to this command.
+ The first is a count: the numeric arg passed to this command.
The second is the key which invoked this command.
*/
diff --git a/subst.c b/subst.c
index 48c89c1..194aa1f 100644
--- a/subst.c
+++ b/subst.c
@@ -5454,7 +5454,7 @@ command_substitute (string, quoted)
/* wait_for gives the terminal back to shell_pgrp. If some other
process group should have it, give it away to that group here.
pipeline_pgrp is non-zero only while we are constructing a
- pipline, so what we are concerned about is whether or not that
+ pipeline, so what we are concerned about is whether or not that
pipeline was started in the background. A pipeline started in
the background should never get the tty back here. */
if (interactive && pipeline_pgrp != (pid_t)0 && (subshell_environment &
SUBSHELL_ASYNC) == 0)
diff --git a/lib/readline/display.c b/lib/readline/display.c
index e4105ee..537cc8a 100644
--- a/lib/readline/display.c
+++ b/lib/readline/display.c
@@ -1540,7 +1540,7 @@ update_line (old, new, current_line, omax, nmax,
inv_botlin)
o_cpos = _rl_last_c_pos;
/* When this function returns, _rl_last_c_pos is correct, and an absolute
- cursor postion in multibyte mode, but a buffer index when not in a
+ cursor position in multibyte mode, but a buffer index when not in a
multibyte locale. */
_rl_move_cursor_relative (od, old);
#if 1
diff --git a/doc/bash.html b/doc/bash.html
index d1b6489..bc21091 100644
--- a/doc/bash.html
+++ b/doc/bash.html
@@ -8248,7 +8248,7 @@ history list starting with
<DT><B>!?</B><I>string</I><B>[?]</B>
<DD>
-Refer to the most recent command preceding the current postition in the
+Refer to the most recent command preceding the current position in the
history list containing
<I>string</I>.
diff --git a/lib/readline/complete.c b/lib/readline/complete.c
index e67cfeb..3b61d73 100644
--- a/lib/readline/complete.c
+++ b/lib/readline/complete.c
@@ -1305,7 +1305,7 @@ postprocess_matches (matchesp, matching_filenames)
return 0;
/* It seems to me that in all the cases we handle we would like
- to ignore duplicate possiblilities. Scan for the text to
+ to ignore duplicate possibilities. Scan for the text to
insert being identical to the other completions. */
if (rl_ignore_completion_duplicates)
{
diff --git a/execute_cmd.c b/execute_cmd.c
index 7432c85..e2c397d 100644
--- a/execute_cmd.c
+++ b/execute_cmd.c
@@ -3853,7 +3853,7 @@ execute_simple_command (simple_command, pipe_in,
pipe_out, async, fds_to_close)
goto return_result;
}
- /* One other possiblilty. The user may want to resume an existing job.
+ /* One other possibility. The user may want to resume an existing job.
If they do, find out whether this word is a candidate for a running
job. */
if (job_control && already_forked == 0 && async == 0 &&
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi
index dc272a2..777c0d2 100644
--- a/lib/readline/doc/rltech.texi
+++ b/lib/readline/doc/rltech.texi
@@ -195,7 +195,7 @@ For Readline 4.2, for example, the value of
@node Readline Typedefs
@subsection Readline Typedefs
-For readabilty, we declare a number of new object types, all pointers
+For readability, we declare a number of new object types, all pointers
to functions.
The reason for declaring these new types is to make it easier to write
diff --git a/trap.c b/trap.c
index 86665e7..fa5da78 100644
--- a/trap.c
+++ b/trap.c
@@ -92,7 +92,7 @@ extern WORD_LIST *subst_assign_varlist;
SigHandler *original_signals[NSIG];
/* For each signal, a slot for a string, which is a command to be
- executed when that signal is recieved. The slot can also contain
+ executed when that signal is received. The slot can also contain
DEFAULT_SIG, which means do whatever you were going to do before
you were so rudely interrupted, or IGNORE_SIG, which says ignore
this signal. */
diff --git a/parser.h b/parser.h
index 5078456..4e73298 100644
--- a/parser.h
+++ b/parser.h
@@ -45,7 +45,7 @@
#define PST_REGEXP 0x010000 /* parsing an ERE/BRE as a single word
*/
#define PST_HEREDOC 0x020000 /* reading body of here-document */
#define PST_REPARSE 0x040000 /* re-parsing in
parse_string_to_word_list */
-#define PST_REDIRLIST 0x080000 /* parsing a list of redirctions
preceding a simple command name */
+#define PST_REDIRLIST 0x080000 /* parsing a list of redirections
preceding a simple command name */
/* Definition of the delimiter stack. Needed by parse.y and bashhist.c. */
diff --git a/variables.c b/variables.c
index 7bb850f..9fa2fef 100644
--- a/variables.c
+++ b/variables.c
@@ -1995,7 +1995,7 @@ new_shell_variable (name)
entry->attributes = 0;
/* Always assume variables are to be made at toplevel!
- make_local_variable has the responsibilty of changing the
+ make_local_variable has the responsibility of changing the
variable context. */
entry->context = 0;
diff --git a/trap.c b/trap.c
index 86665e7..fa5da78 100644
--- a/trap.c
+++ b/trap.c
@@ -232,7 +232,7 @@ decode_signal (string, flags)
if (name == 0 || name[0] == '\0')
continue;
- /* Check name without the SIG prefix first case sensitivly or
+ /* Check name without the SIG prefix first case sensitively or
insensitively depending on whether flags includes DSIG_NOCASE */
if (STREQN (name, "SIG", 3))
{
diff --git a/doc/bashref.html b/doc/bashref.html
index ee63422..9c3b066 100644
--- a/doc/bashref.html
+++ b/doc/bashref.html
@@ -2069,7 +2069,7 @@ This mechanism is similar to
<VAR>filename expansion</VAR> (see section <A HREF="bashref.html#SEC37">3.5.8
Filename Expansion</A>),
but the file names generated need not exist.
Patterns to be brace expanded take the form of an optional <VAR>preamble</VAR>,
-followed by either a series of comma-separated strings or a seqeunce expression
+followed by either a series of comma-separated strings or a sequence expression
between a pair of braces,
followed by an optional <VAR>postscript</VAR>.
The preamble is prefixed to each string contained within the braces, and
diff --git a/doc/bashref.texi b/doc/bashref.texi
index ae982d5..8df6f0d 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -1554,7 +1554,7 @@ This mechanism is similar to
@var{filename expansion} (@pxref{Filename Expansion}),
but the file names generated need not exist.
Patterns to be brace expanded take the form of an optional @var{preamble},
-followed by either a series of comma-separated strings or a seqeunce expression
+followed by either a series of comma-separated strings or a sequence expression
between a pair of braces,
followed by an optional @var{postscript}.
The preamble is prefixed to each string contained within the braces, and
diff --git a/command.h b/command.h
index fb71229..30d806d 100644
--- a/command.h
+++ b/command.h
@@ -296,7 +296,7 @@ typedef struct arith_com {
} ARITH_COM;
#endif /* DPAREN_ARITHMETIC */
-/* The conditional command, [[...]]. This is a binary tree -- we slippped
+/* The conditional command, [[...]]. This is a binary tree -- we slipped
a recursive-descent parser into the YACC grammar to parse it. */
#define COND_AND 1
#define COND_OR 2
diff --git a/doc/article.txt b/doc/article.txt
index c19ff92..42dd500 100644
--- a/doc/article.txt
+++ b/doc/article.txt
@@ -531,7 +531,7 @@ _c_o_m_m_a_n_d _h_i_s_t_o_r_y) is provided
jointly by Bash
readline library. Bash provides variables ($HISTFILE,
$HISTSIZE, and $HISTCONTROL) and the _h_i_s_t_o_r_y and _f_c builtins
to manipulate the history list. The value of $_H_I_S_T_F_I_L_E
-specifes the file where Bash writes the command history on
+specifies the file where Bash writes the command history on
exit and reads it on startup. $_H_I_S_T_S_I_Z_E is used to limit
the number of commands saved in the history.
$_H_I_S_T_C_O_N_T_R_O_L
provides a crude form of control over which commands are
diff --git a/lib/sh/snprintf.c b/lib/sh/snprintf.c
index d46b2d9..4ac57f2 100644
--- a/lib/sh/snprintf.c
+++ b/lib/sh/snprintf.c
@@ -574,7 +574,7 @@ integral(real, ip)
/*
* return an ascii representation of the integral part of the number
* and set fract to be an ascii representation of the fraction part
- * the container for the fraction and the integral part or staticly
+ * the container for the fraction and the integral part or statically
* declare with fix size
*/
static char *
diff --git a/support/signames.c b/support/signames.c
index abbcd1e..d297808 100644
--- a/support/signames.c
+++ b/support/signames.c
@@ -85,7 +85,7 @@ initialize_signames ()
/* POSIX 1003.1b-1993 real time signals, but take care of incomplete
implementations. Acoording to the standard, both, SIGRTMIN and
- SIGRTMAX must be defined, SIGRTMIN must be stricly less than
+ SIGRTMAX must be defined, SIGRTMIN must be strictly less than
SIGRTMAX, and the difference must be at least 7, that is, there
must be at least eight distinct real time signals. */
diff --git a/include/shmbutil.h b/include/shmbutil.h
index e349e6f..bd23c78 100644
--- a/include/shmbutil.h
+++ b/include/shmbutil.h
@@ -465,7 +465,7 @@ extern char *xstrchr __P((const char *, int));
# define SADD_MBCHAR(_dst, _src, _si, _srcsize)
#endif
-/* Watch out when using this -- it's just straight textual subsitution */
+/* Watch out when using this -- it's just straight textual substitution */
#if defined (HANDLE_MULTIBYTE)
# define SADD_MBQCHAR_BODY(_dst, _src, _si, _srcsize) \
\
diff --git a/examples/scripts/bcsh.sh b/examples/scripts/bcsh.sh
index b810cab..1a8f72d 100755
--- a/examples/scripts/bcsh.sh
+++ b/examples/scripts/bcsh.sh
@@ -823,7 +823,7 @@ esac/
rest="`expr \"$rest\" : '.*/.*/.*/\(.*\)'`"
i="`echo \"$i\" | sed -e
\"s@$first@$second@$global\"`"
- # see if subsitution worked
+ # see if substitution worked
case "$i" in
"")
diff --git a/examples/scripts/bcsh.sh b/examples/scripts/bcsh.sh
index b810cab..1a8f72d 100755
--- a/examples/scripts/bcsh.sh
+++ b/examples/scripts/bcsh.sh
@@ -268,9 +268,9 @@
#
# Very complex history substitutions may fail.
#
-# File names containing numbers may break numeric history sustitutions.
+# File names containing numbers may break numeric history substitutions.
#
-# Commands containing bizzare sequences of characters may conflict
+# Commands containing bizarre sequences of characters may conflict
# with internal kludges.
#
# Aliasing something to "commands;logout" will not work -- if you
diff --git a/test.c b/test.c
index e0cc19d..83a4c9f 100644
--- a/test.c
+++ b/test.c
@@ -156,7 +156,7 @@ integer_expected_error (pch)
}
/* Increment our position in the argument list. Check that we're not
- past the end of the argument list. This check is supressed if the
+ past the end of the argument list. This check is suppressed if the
argument is FALSE. Made a macro for efficiency. */
#define advance(f) do { ++pos; if (f && pos >= argc) beyond (); } while (0)
#define unary_advance() do { advance (1); ++pos; } while (0)
diff --git a/lib/intl/l10nflist.c b/lib/intl/l10nflist.c
index 9f02487..7556c8c 100644
--- a/lib/intl/l10nflist.c
+++ b/lib/intl/l10nflist.c
@@ -272,7 +272,7 @@ _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len,
mask, language,
}
if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0)
{
- /* This component can be part of both syntaces but has different
+ /* This component can be part of both syntaxes but has different
leading characters. For CEN we use `+', else `@'. */
*cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@';
cp = stpcpy (cp, modifier);
diff --git a/doc/bashref.html b/doc/bashref.html
index ee63422..9c3b066 100644
--- a/doc/bashref.html
+++ b/doc/bashref.html
@@ -10400,7 +10400,7 @@ binding, variable assignment, and conditional syntax.
# You can re-read the inputrc file with C-x C-r.
# Lines beginning with '#' are comments.
#
-# First, include any systemwide bindings and variable
+# First, include any system-wide bindings and variable
# assignments from /etc/Inputrc
$include /etc/Inputrc
diff --git a/lib/readline/doc/rluser.texi b/lib/readline/doc/rluser.texi
index 8a69c99..e75ca87 100644
--- a/lib/readline/doc/rluser.texi
+++ b/lib/readline/doc/rluser.texi
@@ -880,7 +880,7 @@ binding, variable assignment, and conditional syntax.
# You can re-read the inputrc file with C-x C-r.
# Lines beginning with '#' are comments.
#
-# First, include any systemwide bindings and variable
+# First, include any system-wide bindings and variable
# assignments from /etc/Inputrc
$include /etc/Inputrc
diff --git a/doc/bash.html b/doc/bash.html
index d1b6489..bc21091 100644
--- a/doc/bash.html
+++ b/doc/bash.html
@@ -12558,7 +12558,7 @@ The <B>bash</B> executable
<A HREF="file:/etc/profile"><I>/etc/profile</I></A>
<DD>
-The systemwide initialization file, executed for login shells
+The system-wide initialization file, executed for login shells
<DT>
<A HREF="file:~/.bash_profile"><I>~/.bash_profile</I></A>
diff --git a/lib/intl/plural.c b/lib/intl/plural.c
index a003151..92cc1f0 100644
--- a/lib/intl/plural.c
+++ b/lib/intl/plural.c
@@ -945,7 +945,7 @@ int yynerrs;
`yyvs': related to semantic values,
`yyls': related to locations.
- Refer to the stacks thru separate pointers, to allow yyoverflow
+ Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
diff --git a/subst.c b/subst.c
index 48c89c1..194aa1f 100644
--- a/subst.c
+++ b/subst.c
@@ -7962,7 +7962,7 @@ expand_word_internal (word, quoted, isexp,
contains_dollar_at, expanded_somethin
{
c = string[sindex];
- /* Case on toplevel character. */
+ /* Case on top-level character. */
switch (c)
{
case '\0':
diff --git a/general.h b/general.h
index 2b31c58..80d429c 100644
--- a/general.h
+++ b/general.h
@@ -124,7 +124,7 @@ typedef struct {
int token;
} STRING_INT_ALIST;
-/* A macro to avoid making an uneccessary function call. */
+/* A macro to avoid making an unnecessary function call. */
#define REVERSE_LIST(list, type) \
((list && list->next) ? (type)list_reverse ((GENERIC_LIST *)list) \
: (type)(list))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Fix typos.,
Ondřej Bílka <=