mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 07:59:50 +02:00
commit bash-20091015 snapshot
This commit is contained in:
+283
@@ -0,0 +1,283 @@
|
||||
This document details the changes between this version, bash-4.1-alpha,
|
||||
and the previous version, bash-4.0-release.
|
||||
|
||||
1. Changes to Bash
|
||||
|
||||
a. Fixed bugs in the parser involving new parsing of the commands contained
|
||||
in command substitution when the substitution is read.
|
||||
|
||||
b. Fixed a bug that caused the shell to dump core when performing programmable
|
||||
completion using a shell function.
|
||||
|
||||
c. Fixed a bug in `mapfile' that caused it to invoke callbacks at the wrong
|
||||
time.
|
||||
|
||||
d. Fixed a bug that caused the shell to dump core when listing jobs in the
|
||||
`exit' builtin.
|
||||
|
||||
e. Fixed several bugs encountered when reading subscripts in associative
|
||||
array assignments and expansions.
|
||||
|
||||
f. Fixed a bug that under some circumstances caused an associative array to
|
||||
be converted to an indexed array.
|
||||
|
||||
g. Fixed a bug that caused syntax errors and SIGINT interrupts to not set
|
||||
$? to a value > 128.
|
||||
|
||||
h. Fixed a bug that caused the shell to remove FIFOs associated with process
|
||||
substitution inside shell functions.
|
||||
|
||||
i. Fixed a bug that caused terminal attributes to not be reset when the
|
||||
`read' builtin timed out.
|
||||
|
||||
j. Fixed a bug in brace expansion that caused unwanted zero padding of the
|
||||
expanded terms.
|
||||
|
||||
k. Fixed a bug that prevented the |& construct from working as intended when
|
||||
used with a simple command with additional redirections.
|
||||
|
||||
l. Fixed a bug with the case statment ;& terminator that caused the shell to
|
||||
dereference a NULL pointer.
|
||||
|
||||
m. Fixed a bug that caused assignment statements or redirections preceding
|
||||
a simple command name to inhibit alias expansion.
|
||||
|
||||
n. Fixed the behavior of `set -u' to conform to the latest Posix interpretation:
|
||||
every expansion of an unset variable except $@ and $* will cause the
|
||||
shell to exit.
|
||||
|
||||
o. Fixed a bug that caused double-quoted expansions of $* inside word
|
||||
expansions like ${x#$*} to not expand properly when $IFS is empty.
|
||||
|
||||
p. Fixed a bug that caused traps to set $LINENO to the wrong value when they
|
||||
execute.
|
||||
|
||||
q. Fixed a bug that caused off-by-one errors when computing history lines in
|
||||
the `fc' builtin.
|
||||
|
||||
r. Fixed a bug that caused some terminating signals to not exit the shell
|
||||
quickly enough, forcing the kernel to send the signal (e.g., SIGSEGV)
|
||||
multiple times.
|
||||
|
||||
s. Fixed a bug that caused the shell to attempt to add empty lines to the
|
||||
history list when reading here documents.
|
||||
|
||||
t. Made some internal changes that dramatically speeds up sequential indexed
|
||||
array access.
|
||||
|
||||
u. Fixed a bug that caused the shell to write past the end of a string when
|
||||
completing a double-quoted string ending in a backslash.
|
||||
|
||||
v. Fixed a bug that caused the shell to replace too many characters when a
|
||||
pattern match was null in a ${foo//bar} expansion.
|
||||
|
||||
w. Fixed bugs in the expansion of ** that caused duplicate directory names
|
||||
and the contents of the current directory to be omitted.
|
||||
|
||||
x. Fixed a bug that caused $? to not be set correctly when referencing an
|
||||
unset variable with set -u and set -e enabled.
|
||||
|
||||
y. Fixed a bug caused by executing an external program from the DEBUG trap
|
||||
while a pipeline was running. The effect was to disturb the pipeline
|
||||
state, occasionally causing it to hang.
|
||||
|
||||
z. Fixed a bug that caused the ** glob expansion to dump core if it
|
||||
encountered an unsearchable directory.
|
||||
|
||||
aa. Fixed a bug that caused `command -v' and `command -V' to not honor the
|
||||
path set by the -p option.
|
||||
|
||||
bb. Fixed a bug that caused brace expansion to take place too soon in some
|
||||
compound array assignments.
|
||||
|
||||
cc. Fixed a bug that caused programmable completion functions' changes to
|
||||
READLINE_POINT to not be reflected back to readline.
|
||||
|
||||
dd. Fixed a bug that caused the shell to dump core if a trap was executed
|
||||
during a shell assignment statement.
|
||||
|
||||
ee. Fixed an off-by-one error when computing the number of positional
|
||||
parameters for the ${@:0:n} expansion.
|
||||
|
||||
ff. Fixed a problem with setting COMP_CWORD for programmable completion
|
||||
functions that could leave it set to -1.
|
||||
|
||||
gg. Fixed a bug that caused the ERR trap to be triggered in some cases where
|
||||
`set -e' would not have caused the shell to exit.
|
||||
|
||||
hh. Fixed a bug that caused changes made by `compopt' to not persist past the
|
||||
completion function in which compopt was executed.
|
||||
|
||||
ii. Fixed a bug that caused the list of hostname completions to not be cleared
|
||||
when HOSTNAME was unset.
|
||||
|
||||
jj. Fixed a bug that caused variable expansion in here documents to look in
|
||||
any temporary environment.
|
||||
|
||||
kk. Bash and readline can now convert file names between precomposed and
|
||||
decomposed Unicode on Mac OS X ("keyboard" and file system forms,
|
||||
respectively). This affects filename completion (using new
|
||||
rl_filename_rewrite_hook), globbing, and readline redisplay.
|
||||
|
||||
ll. The ERR and EXIT traps now see a non-zero value for $? when a parser
|
||||
error after set -e has been enabled causes the shell to exit.
|
||||
|
||||
mm. Fixed a bug that in brace expansion that caused zero-prefixed terms to
|
||||
not contain the correct number of digits.
|
||||
|
||||
nn. Fixed a bug that caused the shell to free non-allocated memory when
|
||||
unsetting an associative array which had had a value implicitly assigned
|
||||
to index "0".
|
||||
|
||||
oo. Fixed a memory leak in the ${!prefix@} expansion.
|
||||
|
||||
pp. Fixed a bug that caused printf to not correctly report all write errors.
|
||||
|
||||
qq. Fixed a bug that caused single and double quotes to act as delimiters
|
||||
when splitting a command line into words for programmable completion.
|
||||
|
||||
rr. Fixed a bug that caused ** globbing that caused **/path/* to match every
|
||||
directory, not just those matching `path'.
|
||||
|
||||
ss. Fixed a bug that caused the shell to dump core when running `help' without
|
||||
arguments if the terminal width was fewer than 7 characters.
|
||||
|
||||
2. Changes to Readline
|
||||
|
||||
a. The SIGWINCH signal handler now avoids calling the redisplay code if
|
||||
one arrives while in the middle of redisplay.
|
||||
|
||||
b. Changes to the timeout code to make sure that timeout values greater
|
||||
than one second are handled better.
|
||||
|
||||
c. Fixed a bug in the redisplay code that was triggered by a prompt
|
||||
containing invisible characters exactly the width of the screen.
|
||||
|
||||
d. Fixed a bug in the redisplay code encountered when running in horizontal
|
||||
scroll mode.
|
||||
|
||||
e. Fixed a bug that prevented menu completion from properly completing
|
||||
filenames.
|
||||
|
||||
f. Fixed a redisplay bug caused by a multibyte character causing a line to
|
||||
wrap.
|
||||
|
||||
g. Fixed a bug that caused key sequences of two characters to not be
|
||||
recognized when a longer sequence identical in the first two characters
|
||||
was bound.
|
||||
|
||||
h. Fixed a bug that caused history expansion to be attempted on $'...'
|
||||
single-quoted strings.
|
||||
|
||||
i. Fixed a bug that caused incorrect redisplay when the prompt contained
|
||||
multibyte characters in an `invisible' sequence bracketed by \[ and
|
||||
\].
|
||||
|
||||
j. Fixed a bug that caused history expansion to short-circuit after
|
||||
encountering a multibyte character.
|
||||
|
||||
3. New Features in Bash
|
||||
|
||||
a. Here-documents within $(...) command substitutions may once more be
|
||||
delimited by the closing right paren, instead of requiring a newline.
|
||||
|
||||
b. Bash's file status checks (executable, readable, etc.) now take file
|
||||
system ACLs into account on file systems that support them.
|
||||
|
||||
c. Bash now passes environment variables with names that are not valid
|
||||
shell variable names through into the environment passed to child
|
||||
processes.
|
||||
|
||||
d. The `execute-unix-command' readline function now attempts to clear and
|
||||
reuse the current line rather than move to a new one after the command
|
||||
executes.
|
||||
|
||||
e. `printf -v' can now assign values to array indices.
|
||||
|
||||
f. New `complete -E' and `compopt -E' options that work on the "empty"
|
||||
completion: completion attempted on an empty command line.
|
||||
|
||||
g. New complete/compgen/compopt -D option to define a `default' completion:
|
||||
a completion to be invoked on command for which no completion has been
|
||||
defined. If this function returns 124, programmable completion is
|
||||
attempted again, allowing a user to dynamically build a set of completions
|
||||
as completion is attempted by having the default completion function
|
||||
install individual completion functions each time it is invoked.
|
||||
|
||||
h. When displaying associative arrays, subscripts are now quoted.
|
||||
|
||||
i. Changes to dabbrev-expand to make it more `emacs-like': no space appended
|
||||
after matches, completions are not sorted, and most recent history entries
|
||||
are presented first.
|
||||
|
||||
j. The [[ and (( commands are now subject to the setting of `set -e' and the
|
||||
ERR trap.
|
||||
|
||||
k. The source/. builtin now removes NUL bytes from the file before attempting
|
||||
to parse commands.
|
||||
|
||||
l. There is a new configuration option (in config-top.h) that forces bash to
|
||||
forward all history entries to syslog.
|
||||
|
||||
m. A new variable $BASHOPTS to export shell options settable using `shopt' to
|
||||
child processes.
|
||||
|
||||
n. There is a new confgure option that forces the extglob option to be
|
||||
enabled by default.
|
||||
|
||||
o. New variable $BASH_XTRACEFD; when set to an integer bash will write xtrace
|
||||
output to that file descriptor.
|
||||
|
||||
p. If the optional left-hand-side of a redirection is of the form {var}, the
|
||||
shell assigns the file descriptor used to $var or uses $var as the file
|
||||
descriptor to move or close, depending on the redirection operator.
|
||||
|
||||
q. The < and > operators to the [[ conditional command now do string
|
||||
comparison according to the current locale.
|
||||
|
||||
r. Programmable completion now uses the completion for `b' instead of `a'
|
||||
when completion is attempted on a line like: a $(b c.
|
||||
|
||||
s. Force extglob on temporarily when parsing the pattern argument to
|
||||
the == and != operators to the [[ command, for compatibility.
|
||||
|
||||
t. Changed the behavior of interrupting the wait builtin when a SIGCHLD is
|
||||
received and a trap on SIGCHLD is set to be Posix-mode only.
|
||||
|
||||
u. The read builtin has a new `-N nchars' option, which reads exactly NCHARS
|
||||
characters, ignoring delimiters like newline.
|
||||
|
||||
4. New Features in Readline
|
||||
|
||||
a. New bindable function: menu-complete-backward.
|
||||
|
||||
b. In the vi insertion keymap, C-n is now bound to menu-complete by default,
|
||||
and C-p to menu-complete-backward.
|
||||
|
||||
c. When in vi command mode, repeatedly hitting ESC now does nothing, even
|
||||
when ESC introduces a bound key sequence. This is closer to how
|
||||
historical vi behaves.
|
||||
|
||||
d. New bindable function: skip-csi-sequence. Can be used as a default to
|
||||
consume key sequences generated by keys like Home and End without having
|
||||
to bind all keys.
|
||||
|
||||
e. New application-settable function: rl_filename_rewrite_hook. Can be used
|
||||
to rewite or modify filenames read from the file system before they are
|
||||
compared to the word to be completed.
|
||||
|
||||
f. New bindable variable: skip-completed-text, active when completing in the
|
||||
middle of a word. If enabled, it means that characters in the completion
|
||||
that match characters in the remainder of the word are "skipped" rather
|
||||
than inserted into the line.
|
||||
|
||||
g. The pre-readline-6.0 version of menu completion is available as
|
||||
"old-menu-complete" for users who do not like the readline-6.0 version.
|
||||
|
||||
h. New bindable variable: echo-control-characters. If enabled, and the
|
||||
tty ECHOCTL bit is set, controls the echoing of characters corresponding
|
||||
to keyboard-generated signals.
|
||||
|
||||
i. New bindable variable: enable-meta-key. Controls whether or not readline
|
||||
sends the smm/rmm sequences if the terminal indicates it has a meta key
|
||||
that enables eight-bit characters.
|
||||
+6510
File diff suppressed because it is too large
Load Diff
@@ -323,6 +323,3 @@ bash-2.0 were significant.)
|
||||
search the current directory for its filename argument, even if "." is
|
||||
not in $PATH. Posix says that the shell shouldn't look in $PWD in this
|
||||
case.
|
||||
|
||||
44. Bash-4.1 uses the current locale when comparing strings using the < and
|
||||
> operators to the `[[' command.
|
||||
|
||||
@@ -9014,3 +9014,60 @@ trap.c
|
||||
SIG_TRAPPED flag without changing signal disposition
|
||||
|
||||
[bash-4.1-alpha frozen]
|
||||
|
||||
10/16
|
||||
-----
|
||||
builtins/mapfile.def
|
||||
- return an error if the variable passed is not an indexed array.
|
||||
Fixes bug reported by Nick Hobson <nick.hobson@yahoo.com>
|
||||
- change help text to make it clear that an indexed array is required
|
||||
|
||||
doc/{bash.1,bashref.texi}
|
||||
- changed description of mapfile to note that the array variable
|
||||
argument must be an indexed array, and mapfile will return an
|
||||
error if it is not
|
||||
|
||||
subst.c
|
||||
- change expand_string_unsplit and expand_string_leave_quoted to
|
||||
add the (previously unused) W_NOSPLIT2 flag to the created word
|
||||
- change expand_word_internal to understand W_NOSPLIT2 to mean that
|
||||
we're not going to split on $IFS, so we should not quote any
|
||||
characters in IFS that we add to the result string. Fixes bug
|
||||
reported by Enrique Perez-Terron <enrio@online.no>
|
||||
- change cond_expand_word similarly. Fixes rest of bug reported by
|
||||
Enrique Perez-Terron <enrio@online.no>
|
||||
|
||||
parse.y
|
||||
- save and restore value of last_command_subst_pid around call to
|
||||
expand_prompt_string in decode_prompt_string. Fixes bug that causes
|
||||
$? to be set wrong when using a construct like false || A=3 when
|
||||
set -x is enabled and $PS4 contains a command substitution. Reported
|
||||
by Jeff Haemer <jeffrey.haemer@gmail.com>
|
||||
|
||||
10/17
|
||||
-----
|
||||
execute_cmd.c
|
||||
- in execute_in_subshell, make sure we set setjmp(return_catch) before
|
||||
running the command, in case the command or its word expansion
|
||||
calls jump_to_top_level. Fixes bug reported by Nils Bernhard
|
||||
<nils.bernhard@yahoo.de>
|
||||
|
||||
subst.c
|
||||
- new PF_NOSPLIT2 flag for param_expand
|
||||
- parameter_brace_expand takes a new `pflags' argument, before the
|
||||
`output' parameters; passes to param_expand as necessary
|
||||
- change parameter_brace_expand to call parameter_brace_expand_word
|
||||
with the PF_NOSPLIT2 flag if the pflags argument to
|
||||
parameter_brace_expand has it set
|
||||
|
||||
parse.y
|
||||
- change report_syntax_error to set last_command_exit_value to
|
||||
EX_BADSYNTAX if parse_and_execute_level is > 0, indicating a
|
||||
syntax error while we're executing a dot script, eval string,
|
||||
trap command, etc.
|
||||
|
||||
builtins/evalstring.c
|
||||
- in parse_and_execute, if parse_command() returns non-zero,
|
||||
indicating a parse error, print a warning message if the conditions
|
||||
would require a posix-mode shell to abort (parse error in a `.'
|
||||
script or eval string)
|
||||
|
||||
@@ -9012,3 +9012,62 @@ lib/readline/doc/{readline.3,rluser.texi},doc/bash.1
|
||||
trap.c
|
||||
- new function, free_trap_string(), does what it says and turns off
|
||||
SIG_TRAPPED flag without changing signal disposition
|
||||
|
||||
[bash-4.1-alpha frozen]
|
||||
|
||||
10/16
|
||||
-----
|
||||
builtins/mapfile.def
|
||||
- return an error if the variable passed is not an indexed array.
|
||||
Fixes bug reported by Nick Hobson <nick.hobson@yahoo.com>
|
||||
- change help text to make it clear that an indexed array is required
|
||||
|
||||
doc/{bash.1,bashref.texi}
|
||||
- changed description of mapfile to note that the array variable
|
||||
argument must be an indexed array, and mapfile will return an
|
||||
error if it is not
|
||||
|
||||
subst.c
|
||||
- change expand_string_unsplit and expand_string_leave_quoted to
|
||||
add the (previously unused) W_NOSPLIT2 flag to the created word
|
||||
- change expand_word_internal to understand W_NOSPLIT2 to mean that
|
||||
we're not going to split on $IFS, so we should not quote any
|
||||
characters in IFS that we add to the result string. Fixes bug
|
||||
reported by Enrique Perez-Terron <enrio@online.no>
|
||||
- change cond_expand_word similarly. Fixes rest of bug reported by
|
||||
Enrique Perez-Terron <enrio@online.no>
|
||||
|
||||
parse.y
|
||||
- save and restore value of last_command_subst_pid around call to
|
||||
expand_prompt_string in decode_prompt_string. Fixes bug that causes
|
||||
$? to be set wrong when using a construct like false || A=3 when
|
||||
set -x is enabled and $PS4 contains a command substitution. Reported
|
||||
by Jeff Haemer <jeffrey.haemer@gmail.com>
|
||||
|
||||
10/17
|
||||
-----
|
||||
execute_cmd.c
|
||||
- in execute_in_subshell, make sure we set setjmp(return_catch) before
|
||||
running the command, in case the command or its word expansion
|
||||
calls jump_to_top_level. Fixes bug reported by Enrique Perez-Terron
|
||||
<enrio@online.no>
|
||||
|
||||
subst.c
|
||||
- new PF_NOSPLIT2 flag for param_expand
|
||||
- parameter_brace_expand takes a new `pflags' argument, before the
|
||||
`output' parameters; passes to param_expand as necessary
|
||||
- change parameter_brace_expand to call parameter_brace_expand_word
|
||||
with the PF_NOSPLIT2 flag if the pflags argument to
|
||||
parameter_brace_expand has it set
|
||||
|
||||
parse.y
|
||||
- change report_syntax_error to set last_command_exit_value to
|
||||
EX_BADSYNTAX if parse_and_execute_level is > 0, indicating a
|
||||
syntax error while we're executing a dot script, eval string,
|
||||
trap command, etc.
|
||||
|
||||
builtins/evalstring.c
|
||||
- in parse_and_execute, if parse_command() returns non-zero,
|
||||
indicating a parse error, print a warning message if the conditions
|
||||
would require a posix-mode shell to abort (parse error in a `.'
|
||||
script or eval string)
|
||||
|
||||
-9016
File diff suppressed because it is too large
Load Diff
Symlink
+1
@@ -0,0 +1 @@
|
||||
CWRU.chlog
|
||||
@@ -833,6 +833,7 @@ tests/exp.tests f
|
||||
tests/exp.right f
|
||||
tests/exp1.sub f
|
||||
tests/exp2.sub f
|
||||
tests/exp3.sub f
|
||||
tests/extglob.tests f
|
||||
tests/extglob.right f
|
||||
tests/extglob1.sub f
|
||||
|
||||
@@ -729,6 +729,7 @@ examples/misc/cshtobash f
|
||||
tests/README f
|
||||
tests/COPYRIGHT f
|
||||
tests/alias.tests f
|
||||
tests/alias1.sub f
|
||||
tests/alias.right f
|
||||
tests/appendop.tests f
|
||||
tests/appendop.right f
|
||||
@@ -858,6 +859,7 @@ tests/glob1.sub f
|
||||
tests/glob.right f
|
||||
tests/globstar.tests f
|
||||
tests/globstar.right f
|
||||
tests/globstar1.sub f
|
||||
tests/heredoc.tests f
|
||||
tests/heredoc.right f
|
||||
tests/heredoc1.sub f
|
||||
@@ -1033,6 +1035,7 @@ tests/set-e1.sub f
|
||||
tests/set-e2.sub f
|
||||
tests/set-e.right f
|
||||
tests/set-x.tests f
|
||||
tests/set-x1.sub f
|
||||
tests/set-x.right f
|
||||
tests/shopt.tests f
|
||||
tests/shopt.right f
|
||||
|
||||
@@ -1,114 +1,3 @@
|
||||
This is a terse description of the new features added to bash-4.1 since
|
||||
the release of bash-4.0. As always, the manual page (doc/bash.1) is
|
||||
the place to look for complete descriptions.
|
||||
|
||||
1. New Features in Bash
|
||||
|
||||
a. Here-documents within $(...) command substitutions may once more be
|
||||
delimited by the closing right paren, instead of requiring a newline.
|
||||
|
||||
b. Bash's file status checks (executable, readable, etc.) now take file
|
||||
system ACLs into account on file systems that support them.
|
||||
|
||||
c. Bash now passes environment variables with names that are not valid
|
||||
shell variable names through into the environment passed to child
|
||||
processes.
|
||||
|
||||
d. The `execute-unix-command' readline function now attempts to clear and
|
||||
reuse the current line rather than move to a new one after the command
|
||||
executes.
|
||||
|
||||
e. `printf -v' can now assign values to array indices.
|
||||
|
||||
f. New `complete -E' and `compopt -E' options that work on the "empty"
|
||||
completion: completion attempted on an empty command line.
|
||||
|
||||
g. New complete/compgen/compopt -D option to define a `default' completion:
|
||||
a completion to be invoked on command for which no completion has been
|
||||
defined. If this function returns 124, programmable completion is
|
||||
attempted again, allowing a user to dynamically build a set of completions
|
||||
as completion is attempted by having the default completion function
|
||||
install individual completion functions each time it is invoked.
|
||||
|
||||
h. When displaying associative arrays, subscripts are now quoted.
|
||||
|
||||
i. Changes to dabbrev-expand to make it more `emacs-like': no space appended
|
||||
after matches, completions are not sorted, and most recent history entries
|
||||
are presented first.
|
||||
|
||||
j. The [[ and (( commands are now subject to the setting of `set -e' and the
|
||||
ERR trap.
|
||||
|
||||
k. The source/. builtin now removes NUL bytes from the file before attempting
|
||||
to parse commands.
|
||||
|
||||
l. There is a new configuration option (in config-top.h) that forces bash to
|
||||
forward all history entries to syslog.
|
||||
|
||||
m. A new variable $BASHOPTS to export shell options settable using `shopt' to
|
||||
child processes.
|
||||
|
||||
n. There is a new confgure option that forces the extglob option to be
|
||||
enabled by default.
|
||||
|
||||
o. New variable $BASH_XTRACEFD; when set to an integer bash will write xtrace
|
||||
output to that file descriptor.
|
||||
|
||||
p. If the optional left-hand-side of a redirection is of the form {var}, the
|
||||
shell assigns the file descriptor used to $var or uses $var as the file
|
||||
descriptor to move or close, depending on the redirection operator.
|
||||
|
||||
q. The < and > operators to the [[ conditional command now do string
|
||||
comparison according to the current locale.
|
||||
|
||||
r. Programmable completion now uses the completion for `b' instead of `a'
|
||||
when completion is attempted on a line like: a $(b c.
|
||||
|
||||
s. Force extglob on temporarily when parsing the pattern argument to
|
||||
the == and != operators to the [[ command, for compatibility.
|
||||
|
||||
t. Changed the behavior of interrupting the wait builtin when a SIGCHLD is
|
||||
received and a trap on SIGCHLD is set to be Posix-mode only.
|
||||
|
||||
u. The read builtin has a new `-N nchars' option, which reads exactly NCHARS
|
||||
characters, ignoring delimiters like newline.
|
||||
|
||||
2. New Features in Readline
|
||||
|
||||
a. New bindable function: menu-complete-backward.
|
||||
|
||||
b. In the vi insertion keymap, C-n is now bound to menu-complete by default,
|
||||
and C-p to menu-complete-backward.
|
||||
|
||||
c. When in vi command mode, repeatedly hitting ESC now does nothing, even
|
||||
when ESC introduces a bound key sequence. This is closer to how
|
||||
historical vi behaves.
|
||||
|
||||
d. New bindable function: skip-csi-sequence. Can be used as a default to
|
||||
consume key sequences generated by keys like Home and End without having
|
||||
to bind all keys.
|
||||
|
||||
e. New application-settable function: rl_filename_rewrite_hook. Can be used
|
||||
to rewite or modify filenames read from the file system before they are
|
||||
compared to the word to be completed.
|
||||
|
||||
f. New bindable variable: skip-completed-text, active when completing in the
|
||||
middle of a word. If enabled, it means that characters in the completion
|
||||
that match characters in the remainder of the word are "skipped" rather
|
||||
than inserted into the line.
|
||||
|
||||
g. The pre-readline-6.0 version of menu completion is available as
|
||||
"old-menu-complete" for users who do not like the readline-6.0 version.
|
||||
|
||||
h. New bindable variable: echo-control-characters. If enabled, and the
|
||||
tty ECHOCTL bit is set, controls the echoing of characters corresponding
|
||||
to keyboard-generated signals.
|
||||
|
||||
i. New bindable variable: enable-meta-key. Controls whether or not readline
|
||||
sends the smm/rmm sequences if the terminal indicates it has a meta key
|
||||
that enables eight-bit characters.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
This is a terse description of the new features added to bash-4.0 since
|
||||
the release of bash-3.2. As always, the manual page (doc/bash.1) is
|
||||
the place to look for complete descriptions.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Introduction
|
||||
============
|
||||
|
||||
This is GNU Bash, version 4.1. Bash is the GNU Project's Bourne
|
||||
This is GNU Bash, version 4.0. Bash is the GNU Project's Bourne
|
||||
Again SHell, a complete implementation of the POSIX.2 shell spec,
|
||||
but also with interactive command line editing, job control on
|
||||
architectures that support it, csh-like features such as history
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "../execute_cmd.h"
|
||||
#include "../redir.h"
|
||||
#include "../trap.h"
|
||||
#include "../bashintl.h"
|
||||
|
||||
#include <y.tab.h>
|
||||
|
||||
@@ -51,6 +52,7 @@
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "builtext.h"
|
||||
|
||||
#if !defined (errno)
|
||||
extern int errno;
|
||||
@@ -67,6 +69,7 @@ extern int loop_level;
|
||||
extern int executing_list;
|
||||
extern int comsub_ignore_return;
|
||||
extern int posixly_correct;
|
||||
extern sh_builtin_func_t *this_shell_builtin;
|
||||
|
||||
int parse_and_execute_level = 0;
|
||||
|
||||
@@ -324,6 +327,19 @@ parse_and_execute (string, from_file, flags)
|
||||
{
|
||||
last_result = EXECUTION_FAILURE;
|
||||
|
||||
if (interactive_shell == 0 && this_shell_builtin &&
|
||||
(this_shell_builtin == source_builtin || this_shell_builtin == eval_builtin) &&
|
||||
last_command_exit_value == EX_BADSYNTAX && posixly_correct)
|
||||
{
|
||||
#if 0 /* XXX - for bash-4.2 */
|
||||
should_jump_to_top_level = 1;
|
||||
code = ERREXIT;
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
#else
|
||||
internal_warning (_("syntax errors in . or eval will cause future versions of the shell to abort as Posix requires"));
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Since we are shell compatible, syntax errors in a script
|
||||
abort the execution of the script. Right? */
|
||||
break;
|
||||
|
||||
@@ -0,0 +1,512 @@
|
||||
/* evalstring.c - evaluate a string as one or more shell commands.
|
||||
|
||||
/* Copyright (C) 1996-2009 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#if defined (HAVE_UNISTD_H)
|
||||
# ifdef _MINIX
|
||||
# include <sys/types.h>
|
||||
# endif
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "filecntl.h"
|
||||
#include "../bashansi.h"
|
||||
|
||||
#include "../shell.h"
|
||||
#include "../jobs.h"
|
||||
#include "../builtins.h"
|
||||
#include "../flags.h"
|
||||
#include "../input.h"
|
||||
#include "../execute_cmd.h"
|
||||
#include "../redir.h"
|
||||
#include "../trap.h"
|
||||
#include "../bashintl.h"
|
||||
|
||||
#include <y.tab.h>
|
||||
|
||||
#if defined (HISTORY)
|
||||
# include "../bashhist.h"
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "builtext.h"
|
||||
|
||||
#if !defined (errno)
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
#define IS_BUILTIN(s) (builtin_address_internal(s, 0) != (struct builtin *)NULL)
|
||||
|
||||
extern int indirection_level, subshell_environment;
|
||||
extern int line_number;
|
||||
extern int current_token, shell_eof_token;
|
||||
extern int last_command_exit_value;
|
||||
extern int running_trap;
|
||||
extern int loop_level;
|
||||
extern int executing_list;
|
||||
extern int comsub_ignore_return;
|
||||
extern int posixly_correct;
|
||||
extern sh_builtin_func_t *this_shell_builtin;
|
||||
|
||||
int parse_and_execute_level = 0;
|
||||
|
||||
static int cat_file __P((REDIRECT *));
|
||||
|
||||
#define PE_TAG "parse_and_execute top"
|
||||
#define PS_TAG "parse_string top"
|
||||
|
||||
#if defined (HISTORY)
|
||||
static void
|
||||
set_history_remembering ()
|
||||
{
|
||||
remember_on_history = enable_history_list;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* How to force parse_and_execute () to clean up after itself. */
|
||||
void
|
||||
parse_and_execute_cleanup ()
|
||||
{
|
||||
if (running_trap)
|
||||
{
|
||||
run_trap_cleanup (running_trap - 1);
|
||||
unfreeze_jobs_list ();
|
||||
}
|
||||
|
||||
if (have_unwind_protects ())
|
||||
run_unwind_frame (PE_TAG);
|
||||
else
|
||||
parse_and_execute_level = 0; /* XXX */
|
||||
}
|
||||
|
||||
static void
|
||||
parse_prologue (string, flags, tag)
|
||||
char *string;
|
||||
int flags;
|
||||
char *tag;
|
||||
{
|
||||
char *orig_string;
|
||||
int x;
|
||||
|
||||
orig_string = string;
|
||||
/* Unwind protect this invocation of parse_and_execute (). */
|
||||
begin_unwind_frame (tag);
|
||||
unwind_protect_int (parse_and_execute_level);
|
||||
unwind_protect_jmp_buf (top_level);
|
||||
unwind_protect_int (indirection_level);
|
||||
unwind_protect_int (line_number);
|
||||
unwind_protect_int (loop_level);
|
||||
unwind_protect_int (executing_list);
|
||||
unwind_protect_int (comsub_ignore_return);
|
||||
if (flags & (SEVAL_NONINT|SEVAL_INTERACT))
|
||||
unwind_protect_int (interactive);
|
||||
|
||||
#if defined (HISTORY)
|
||||
if (parse_and_execute_level == 0)
|
||||
add_unwind_protect (set_history_remembering, (char *)NULL);
|
||||
else
|
||||
unwind_protect_int (remember_on_history); /* can be used in scripts */
|
||||
# if defined (BANG_HISTORY)
|
||||
if (interactive_shell)
|
||||
unwind_protect_int (history_expansion_inhibited);
|
||||
# endif /* BANG_HISTORY */
|
||||
#endif /* HISTORY */
|
||||
|
||||
if (interactive_shell)
|
||||
{
|
||||
x = get_current_prompt_level ();
|
||||
add_unwind_protect (set_current_prompt_level, x);
|
||||
}
|
||||
|
||||
add_unwind_protect (pop_stream, (char *)NULL);
|
||||
if (orig_string && ((flags & SEVAL_NOFREE) == 0))
|
||||
add_unwind_protect (xfree, orig_string);
|
||||
end_unwind_frame ();
|
||||
|
||||
if (flags & (SEVAL_NONINT|SEVAL_INTERACT))
|
||||
interactive = (flags & SEVAL_NONINT) ? 0 : 1;
|
||||
|
||||
#if defined (HISTORY)
|
||||
if (flags & SEVAL_NOHIST)
|
||||
bash_history_disable ();
|
||||
#endif /* HISTORY */
|
||||
}
|
||||
|
||||
/* Parse and execute the commands in STRING. Returns whatever
|
||||
execute_command () returns. This frees STRING. FLAGS is a
|
||||
flags word; look in common.h for the possible values. Actions
|
||||
are:
|
||||
(flags & SEVAL_NONINT) -> interactive = 0;
|
||||
(flags & SEVAL_INTERACT) -> interactive = 1;
|
||||
(flags & SEVAL_NOHIST) -> call bash_history_disable ()
|
||||
(flags & SEVAL_NOFREE) -> don't free STRING when finished
|
||||
(flags & SEVAL_RESETLINE) -> reset line_number to 1
|
||||
*/
|
||||
|
||||
int
|
||||
parse_and_execute (string, from_file, flags)
|
||||
char *string;
|
||||
const char *from_file;
|
||||
int flags;
|
||||
{
|
||||
int code, lreset;
|
||||
volatile int should_jump_to_top_level, last_result;
|
||||
COMMAND *volatile command;
|
||||
|
||||
parse_prologue (string, flags, PE_TAG);
|
||||
|
||||
parse_and_execute_level++;
|
||||
|
||||
lreset = flags & SEVAL_RESETLINE;
|
||||
|
||||
/* Reset the line number if the caller wants us to. If we don't reset the
|
||||
line number, we have to subtract one, because we will add one just
|
||||
before executing the next command (resetting the line number sets it to
|
||||
0; the first line number is 1). */
|
||||
push_stream (lreset);
|
||||
if (lreset == 0)
|
||||
line_number--;
|
||||
|
||||
indirection_level++;
|
||||
|
||||
code = should_jump_to_top_level = 0;
|
||||
last_result = EXECUTION_SUCCESS;
|
||||
|
||||
with_input_from_string (string, from_file);
|
||||
while (*(bash_input.location.string))
|
||||
{
|
||||
command = (COMMAND *)NULL;
|
||||
|
||||
if (interrupt_state)
|
||||
{
|
||||
last_result = EXECUTION_FAILURE;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Provide a location for functions which `longjmp (top_level)' to
|
||||
jump to. This prevents errors in substitution from restarting
|
||||
the reader loop directly, for example. */
|
||||
code = setjmp (top_level);
|
||||
|
||||
if (code)
|
||||
{
|
||||
should_jump_to_top_level = 0;
|
||||
switch (code)
|
||||
{
|
||||
case FORCE_EOF:
|
||||
case ERREXIT:
|
||||
case EXITPROG:
|
||||
if (command)
|
||||
run_unwind_frame ("pe_dispose");
|
||||
/* Remember to call longjmp (top_level) after the old
|
||||
value for it is restored. */
|
||||
should_jump_to_top_level = 1;
|
||||
goto out;
|
||||
|
||||
case DISCARD:
|
||||
if (command)
|
||||
run_unwind_frame ("pe_dispose");
|
||||
last_result = last_command_exit_value = EXECUTION_FAILURE; /* XXX */
|
||||
if (subshell_environment)
|
||||
{
|
||||
should_jump_to_top_level = 1;
|
||||
goto out;
|
||||
}
|
||||
else
|
||||
{
|
||||
#if 0
|
||||
dispose_command (command); /* pe_dispose does this */
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
default:
|
||||
command_error ("parse_and_execute", CMDERR_BADJUMP, code, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (parse_command () == 0)
|
||||
{
|
||||
if ((flags & SEVAL_PARSEONLY) || (interactive_shell == 0 && read_but_dont_execute))
|
||||
{
|
||||
last_result = EXECUTION_SUCCESS;
|
||||
dispose_command (global_command);
|
||||
global_command = (COMMAND *)NULL;
|
||||
}
|
||||
else if (command = global_command)
|
||||
{
|
||||
struct fd_bitmap *bitmap;
|
||||
|
||||
bitmap = new_fd_bitmap (FD_BITMAP_SIZE);
|
||||
begin_unwind_frame ("pe_dispose");
|
||||
add_unwind_protect (dispose_fd_bitmap, bitmap);
|
||||
add_unwind_protect (dispose_command, command); /* XXX */
|
||||
|
||||
global_command = (COMMAND *)NULL;
|
||||
|
||||
if ((subshell_environment & SUBSHELL_COMSUB) && comsub_ignore_return)
|
||||
command->flags |= CMD_IGNORE_RETURN;
|
||||
|
||||
#if defined (ONESHOT)
|
||||
/*
|
||||
* IF
|
||||
* we were invoked as `bash -c' (startup_state == 2) AND
|
||||
* parse_and_execute has not been called recursively AND
|
||||
* we're not running a trap AND
|
||||
* we have parsed the full command (string == '\0') AND
|
||||
* we're not going to run the exit trap AND
|
||||
* we have a simple command without redirections AND
|
||||
* the command is not being timed AND
|
||||
* the command's return status is not being inverted
|
||||
* THEN
|
||||
* tell the execution code that we don't need to fork
|
||||
*/
|
||||
if (startup_state == 2 && parse_and_execute_level == 1 &&
|
||||
running_trap == 0 &&
|
||||
*bash_input.location.string == '\0' &&
|
||||
command->type == cm_simple &&
|
||||
signal_is_trapped (EXIT_TRAP) == 0 &&
|
||||
command->redirects == 0 && command->value.Simple->redirects == 0 &&
|
||||
((command->flags & CMD_TIME_PIPELINE) == 0) &&
|
||||
((command->flags & CMD_INVERT_RETURN) == 0))
|
||||
{
|
||||
command->flags |= CMD_NO_FORK;
|
||||
command->value.Simple->flags |= CMD_NO_FORK;
|
||||
}
|
||||
#endif /* ONESHOT */
|
||||
|
||||
/* See if this is a candidate for $( <file ). */
|
||||
if (startup_state == 2 &&
|
||||
(subshell_environment & SUBSHELL_COMSUB) &&
|
||||
*bash_input.location.string == '\0' &&
|
||||
command->type == cm_simple && !command->redirects &&
|
||||
(command->flags & CMD_TIME_PIPELINE) == 0 &&
|
||||
command->value.Simple->words == 0 &&
|
||||
command->value.Simple->redirects &&
|
||||
command->value.Simple->redirects->next == 0 &&
|
||||
command->value.Simple->redirects->instruction == r_input_direction)
|
||||
{
|
||||
int r;
|
||||
r = cat_file (command->value.Simple->redirects);
|
||||
last_result = (r < 0) ? EXECUTION_FAILURE : EXECUTION_SUCCESS;
|
||||
}
|
||||
else
|
||||
last_result = execute_command_internal
|
||||
(command, 0, NO_PIPE, NO_PIPE, bitmap);
|
||||
|
||||
dispose_command (command);
|
||||
dispose_fd_bitmap (bitmap);
|
||||
discard_unwind_frame ("pe_dispose");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
last_result = EXECUTION_FAILURE;
|
||||
|
||||
if (interactive_shell == 0 && this_shell_builtin &&
|
||||
(this_shell_builtin == source_builtin || this_shell_builtin == eval_builtin) &&
|
||||
last_command_exit_value == EX_BADSYNTAX && posixly_correct)
|
||||
{
|
||||
#if 1 /* XXX - for bash-4.2 */
|
||||
should_jump_to_top_level = 1;
|
||||
code = ERREXIT;
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
#else
|
||||
internal_warning (_("syntax errors in . or eval will cause future versions of the shell to abort as Posix requires"));
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Since we are shell compatible, syntax errors in a script
|
||||
abort the execution of the script. Right? */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
run_unwind_frame (PE_TAG);
|
||||
|
||||
if (interrupt_state && parse_and_execute_level == 0)
|
||||
{
|
||||
/* An interrupt during non-interactive execution in an
|
||||
interactive shell (e.g. via $PROMPT_COMMAND) should
|
||||
not cause the shell to exit. */
|
||||
interactive = interactive_shell;
|
||||
throw_to_top_level ();
|
||||
}
|
||||
|
||||
if (should_jump_to_top_level)
|
||||
jump_to_top_level (code);
|
||||
|
||||
return (last_result);
|
||||
}
|
||||
|
||||
/* Parse a command contained in STRING according to FLAGS and return the
|
||||
number of characters consumed from the string. If non-NULL, set *ENDP
|
||||
to the position in the string where the parse ended. Used to validate
|
||||
command substitutions during parsing to obey Posix rules about finding
|
||||
the end of the command and balancing parens. */
|
||||
int
|
||||
parse_string (string, from_file, flags, endp)
|
||||
char *string;
|
||||
const char *from_file;
|
||||
int flags;
|
||||
char **endp;
|
||||
{
|
||||
int code, nc;
|
||||
volatile int should_jump_to_top_level;
|
||||
COMMAND *volatile command, *oglobal;
|
||||
char *ostring;
|
||||
|
||||
parse_prologue (string, flags, PS_TAG);
|
||||
|
||||
/* Reset the line number if the caller wants us to. If we don't reset the
|
||||
line number, we have to subtract one, because we will add one just
|
||||
before executing the next command (resetting the line number sets it to
|
||||
0; the first line number is 1). */
|
||||
push_stream (0);
|
||||
|
||||
code = should_jump_to_top_level = 0;
|
||||
oglobal = global_command;
|
||||
ostring = string;
|
||||
|
||||
with_input_from_string (string, from_file);
|
||||
while (*(bash_input.location.string))
|
||||
{
|
||||
command = (COMMAND *)NULL;
|
||||
|
||||
#if 0
|
||||
if (interrupt_state)
|
||||
break;
|
||||
#endif
|
||||
|
||||
/* Provide a location for functions which `longjmp (top_level)' to
|
||||
jump to. */
|
||||
code = setjmp (top_level);
|
||||
|
||||
if (code)
|
||||
{
|
||||
#if defined (DEBUG)
|
||||
itrace("parse_string: longjmp executed: code = %d", code);
|
||||
#endif
|
||||
should_jump_to_top_level = 0;
|
||||
switch (code)
|
||||
{
|
||||
case FORCE_EOF:
|
||||
case ERREXIT:
|
||||
case EXITPROG:
|
||||
case DISCARD: /* XXX */
|
||||
if (command)
|
||||
dispose_command (command);
|
||||
/* Remember to call longjmp (top_level) after the old
|
||||
value for it is restored. */
|
||||
should_jump_to_top_level = 1;
|
||||
goto out;
|
||||
|
||||
default:
|
||||
command_error ("parse_string", CMDERR_BADJUMP, code, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (parse_command () == 0)
|
||||
{
|
||||
dispose_command (global_command);
|
||||
global_command = (COMMAND *)NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((flags & SEVAL_NOLONGJMP) == 0)
|
||||
{
|
||||
should_jump_to_top_level = 1;
|
||||
code = DISCARD;
|
||||
}
|
||||
else
|
||||
reset_parser (); /* XXX - sets token_to_read */
|
||||
break;
|
||||
}
|
||||
|
||||
if (current_token == yacc_EOF || current_token == shell_eof_token)
|
||||
break;
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
global_command = oglobal;
|
||||
nc = bash_input.location.string - ostring;
|
||||
if (endp)
|
||||
*endp = bash_input.location.string;
|
||||
|
||||
run_unwind_frame (PS_TAG);
|
||||
|
||||
if (should_jump_to_top_level)
|
||||
jump_to_top_level (code);
|
||||
|
||||
return (nc);
|
||||
}
|
||||
|
||||
/* Handle a $( < file ) command substitution. This expands the filename,
|
||||
returning errors as appropriate, then just cats the file to the standard
|
||||
output. */
|
||||
static int
|
||||
cat_file (r)
|
||||
REDIRECT *r;
|
||||
{
|
||||
char *fn;
|
||||
int fd, rval;
|
||||
|
||||
if (r->instruction != r_input_direction)
|
||||
return -1;
|
||||
|
||||
/* Get the filename. */
|
||||
if (posixly_correct && !interactive_shell)
|
||||
disallow_filename_globbing++;
|
||||
fn = redirection_expand (r->redirectee.filename);
|
||||
if (posixly_correct && !interactive_shell)
|
||||
disallow_filename_globbing--;
|
||||
|
||||
if (fn == 0)
|
||||
{
|
||||
redirection_error (r, AMBIGUOUS_REDIRECT);
|
||||
return -1;
|
||||
}
|
||||
|
||||
fd = open(fn, O_RDONLY);
|
||||
if (fd < 0)
|
||||
{
|
||||
file_error (fn);
|
||||
free (fn);
|
||||
return -1;
|
||||
}
|
||||
|
||||
rval = zcatfd (fd, 1, fn);
|
||||
|
||||
free (fn);
|
||||
close (fd);
|
||||
|
||||
return (rval);
|
||||
}
|
||||
+13
-5
@@ -24,11 +24,11 @@ $PRODUCES mapfile.c
|
||||
$BUILTIN mapfile
|
||||
$FUNCTION mapfile_builtin
|
||||
$SHORT_DOC mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
|
||||
Read lines from the standard input into an array variable.
|
||||
Read lines from the standard input into an indexed array variable.
|
||||
|
||||
Read lines from the standard input into the array variable ARRAY, or from
|
||||
file descriptor FD if the -u option is supplied. The variable MAPFILE is
|
||||
the default ARRAY.
|
||||
Read lines from the standard input into the indexed array variable ARRAY, or
|
||||
from file descriptor FD if the -u option is supplied. The variable MAPFILE
|
||||
is the default ARRAY.
|
||||
|
||||
Options:
|
||||
-n count Copy at most COUNT lines. If COUNT is 0, all lines are copied.
|
||||
@@ -50,7 +50,8 @@ If not supplied with an explicit origin, mapfile will clear ARRAY before
|
||||
assigning to it.
|
||||
|
||||
Exit Status:
|
||||
Returns success unless an invalid option is given or ARRAY is readonly.
|
||||
Returns success unless an invalid option is given or ARRAY is readonly or
|
||||
not an indexed array.
|
||||
$END
|
||||
|
||||
$BUILTIN readarray
|
||||
@@ -71,6 +72,7 @@ $END
|
||||
#endif
|
||||
|
||||
#include "bashansi.h"
|
||||
#include "bashintl.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
@@ -158,6 +160,12 @@ mapfile (fd, line_count_goal, origin, nskip, callback_quantum, callback, array_n
|
||||
|
||||
return (EXECUTION_FAILURE);
|
||||
}
|
||||
else if (array_p (entry) == 0)
|
||||
{
|
||||
builtin_error (_("%s: not an indexed array"), array_name);
|
||||
return (EXECUTION_FAILURE);
|
||||
}
|
||||
|
||||
if (flags & MAPF_CLEARARRAY)
|
||||
array_flush (array_cell (entry));
|
||||
|
||||
|
||||
+14
-6
@@ -24,11 +24,11 @@ $PRODUCES mapfile.c
|
||||
$BUILTIN mapfile
|
||||
$FUNCTION mapfile_builtin
|
||||
$SHORT_DOC mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
|
||||
Read lines from the standard input into an array variable.
|
||||
Read lines from the standard input into an indexed array variable.
|
||||
|
||||
Read lines from the standard input into the array variable ARRAY, or from
|
||||
file descriptor FD if the -u option is supplied. The variable MAPFILE is
|
||||
the default ARRAY.
|
||||
Read lines from the standard input into the indexed array variable ARRAY, or
|
||||
from file descriptor FD if the -u option is supplied. The variable MAPFILE
|
||||
is the default ARRAY.
|
||||
|
||||
Options:
|
||||
-n count Copy at most COUNT lines. If COUNT is 0, all lines are copied.
|
||||
@@ -50,7 +50,8 @@ If not supplied with an explicit origin, mapfile will clear ARRAY before
|
||||
assigning to it.
|
||||
|
||||
Exit Status:
|
||||
Returns success unless an invalid option is given or ARRAY is readonly.
|
||||
Returns success unless an invalid option is given or ARRAY is readonly or
|
||||
not an indexed array.
|
||||
$END
|
||||
|
||||
$BUILTIN readarray
|
||||
@@ -71,6 +72,7 @@ $END
|
||||
#endif
|
||||
|
||||
#include "bashansi.h"
|
||||
#include "bashintl.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
@@ -153,11 +155,17 @@ mapfile (fd, line_count_goal, origin, nskip, callback_quantum, callback, array_n
|
||||
entry = find_or_make_array_variable (array_name, 1);
|
||||
if (entry == 0 || readonly_p (entry) || noassign_p (entry))
|
||||
{
|
||||
if (readonly_p (entry))
|
||||
if (entry && readonly_p (entry))
|
||||
err_readonly (array_name);
|
||||
|
||||
return (EXECUTION_FAILURE);
|
||||
}
|
||||
else if (array_p (entry) == 0)
|
||||
{
|
||||
builtin_error (_("%s: not an indexed array", array_name));
|
||||
return (EXECUTION_FAILURE);
|
||||
}
|
||||
|
||||
if (flags & MAPF_CLEARARRAY)
|
||||
array_flush (array_cell (entry));
|
||||
|
||||
|
||||
@@ -77,9 +77,9 @@ enum command_type { cm_for, cm_case, cm_while, cm_if, cm_simple, cm_select,
|
||||
#define W_QUOTED 0x000002 /* Some form of quote character is present. */
|
||||
#define W_ASSIGNMENT 0x000004 /* This word is a variable assignment. */
|
||||
#define W_GLOBEXP 0x000008 /* This word is the result of a glob expansion. */
|
||||
#define W_NOSPLIT 0x000010 /* Do not perform word splitting on this word. */
|
||||
#define W_NOSPLIT 0x000010 /* Do not perform word splitting on this word because ifs is empty string. */
|
||||
#define W_NOGLOB 0x000020 /* Do not perform globbing on this word. */
|
||||
#define W_NOSPLIT2 0x000040 /* Don't split word except for $@ expansion. */
|
||||
#define W_NOSPLIT2 0x000040 /* Don't split word except for $@ expansion (using spaces) because context does not allow it. */
|
||||
#define W_TILDEEXP 0x000080 /* Tilde expand this assignment word */
|
||||
#define W_DOLLARAT 0x000100 /* $@ and its special handling */
|
||||
#define W_DOLLARSTAR 0x000200 /* $* and its special handling */
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ enum r_instruction {
|
||||
#define NOCLOBBER_REDIRECT -2
|
||||
#define RESTRICTED_REDIRECT -3 /* can only happen in restricted shells. */
|
||||
#define HEREDOC_REDIRECT -4 /* here-doc temp file can't be created */
|
||||
#define BADVAR_REDIRECT -5 /* something wrong with {varname}redir
|
||||
#define BADVAR_REDIRECT -5 /* something wrong with {varname}redir */
|
||||
|
||||
#define CLOBBERING_REDIRECT(ri) \
|
||||
(ri == r_output_direction || ri == r_err_and_out)
|
||||
|
||||
+1857
-1843
File diff suppressed because it is too large
Load Diff
+5
-4
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet@po.cwru.edu
|
||||
.\"
|
||||
.\" Last Change: Fri Oct 9 12:07:53 EDT 2009
|
||||
.\" Last Change: Fri Oct 16 12:24:25 EDT 2009
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2009 October 9" "GNU Bash-4.1"
|
||||
.TH BASH 1 "2009 October 16" "GNU Bash-4.1"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -7787,7 +7787,7 @@ Exit a login shell.
|
||||
.TP
|
||||
\fBreadarray\fP [\fB\-n\fP \fIcount\fP] [\fB\-O\fP \fIorigin\fP] [\fB\-s\fP \fIcount\fP] [\fB\-t\fP] [\fB\-u\fP \fIfd\fP] [\fB\-C\fP \fIcallback\fP] [\fB\-c\fP \fIquantum\fP] [\fIarray\fP]
|
||||
.PD
|
||||
Read lines from the standard input into array variable
|
||||
Read lines from the standard input into the indexed array variable
|
||||
.IR array ,
|
||||
or from file descriptor
|
||||
.IR fd
|
||||
@@ -7845,7 +7845,8 @@ If not supplied with an explicit origin, \fBmapfile\fP will clear \fIarray\fP
|
||||
before assigning to it.
|
||||
.PP
|
||||
\fBmapfile\fP returns successfully unless an invalid option or option
|
||||
argument is supplied, or \fIarray\fP is invalid or unassignable.
|
||||
argument is supplied, \fIarray\fP is invalid or unassignable, or if
|
||||
\fIarray\fP is not an indexed array.
|
||||
.RE
|
||||
.TP
|
||||
\fBpopd\fP [\-\fBn\fP] [+\fIn\fP] [\-\fIn\fP]
|
||||
|
||||
@@ -4969,6 +4969,11 @@ When set to \fBOn\fP, readline will try to enable the application
|
||||
keypad when it is called. Some systems need this to enable the
|
||||
arrow keys.
|
||||
.TP
|
||||
.B enable\-meta\-key (On)
|
||||
When set to \fBOn\fP, readline will try to enable any meta modifier
|
||||
key the terminal claims to support when it is called. On many terminals,
|
||||
the meta key is used to send eight-bit characters.
|
||||
.TP
|
||||
.B expand\-tilde (Off)
|
||||
If set to \fBon\fP, tilde expansion is performed when readline
|
||||
attempts word completion.
|
||||
|
||||
+26
-8
@@ -3,7 +3,7 @@
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 September 16<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 October 9<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
@@ -902,6 +902,11 @@ as primaries.
|
||||
<P>
|
||||
|
||||
|
||||
When used with <B>[[</B>, The <B><</B> and <B>></B> operators sort
|
||||
lexicographically using the current locale.
|
||||
<P>
|
||||
|
||||
|
||||
When the <B>==</B> and <B>!=</B> operators are used, the string to the
|
||||
right of the operator is considered a pattern and matched according
|
||||
to the rules described below under <B>Pattern Matching</B>.
|
||||
@@ -1411,8 +1416,8 @@ The expanded result is single-quoted, as if the dollar sign had
|
||||
not been present.
|
||||
<P>
|
||||
|
||||
A double-quoted string preceded by a dollar sign (<B>$</B>) will cause
|
||||
the string to be translated according to the current locale.
|
||||
A double-quoted string preceded by a dollar sign (<B>$</B>dq<I>string</I>dq)
|
||||
will cause the string to be translated according to the current locale.
|
||||
If the current locale is <B>C</B> or <B>POSIX</B>, the dollar sign
|
||||
is ignored.
|
||||
If the string is translated and replaced, the replacement is
|
||||
@@ -3235,7 +3240,7 @@ interpreted as part of its name.
|
||||
</DL>
|
||||
<P>
|
||||
|
||||
If the first character of <I>parameter</I> is an exclamation point,
|
||||
If the first character of <I>parameter</I> is an exclamation point (<B>!</B>),
|
||||
a level of variable indirection is introduced.
|
||||
<B>Bash</B> uses the value of the variable formed from the rest of
|
||||
<I>parameter</I> as the name of the variable; this variable is then
|
||||
@@ -6435,6 +6440,12 @@ keyboard.
|
||||
When set to <B>On</B>, readline will try to enable the application
|
||||
keypad when it is called. Some systems need this to enable the
|
||||
arrow keys.
|
||||
<DT><B>enable-meta-key (On)</B>
|
||||
|
||||
<DD>
|
||||
When set to <B>On</B>, readline will try to enable any meta modifier
|
||||
key the terminal claims to support when it is called. On many terminals,
|
||||
the meta key is used to send eight-bit characters.
|
||||
<DT><B>expand-tilde (Off)</B>
|
||||
|
||||
<DD>
|
||||
@@ -10215,7 +10226,7 @@ option is used, the pathname printed may contain symbolic links.
|
||||
The return status is 0 unless an error occurs while
|
||||
reading the name of the current directory or an
|
||||
invalid option is supplied.
|
||||
<DT><B>read</B> [<B>-ers</B>] [<B>-a</B> <I>aname</I>] [<B>-d</B> <I>delim</I>] [<B>-i</B> <I>text</I>] [<B>-n</B> <I>nchars</I>] [<B>-p</B> <I>prompt</I>] [<B>-t</B> <I>timeout</I>] [<B>-u</B> <I>fd</I>] [<I>name</I> ...]<DD>
|
||||
<DT><B>read</B> [<B>-ers</B>] [<B>-a</B> <I>aname</I>] [<B>-d</B> <I>delim</I>] [<B>-i</B> <I>text</I>] [<B>-n</B> <I>nchars</I>] [<B>-N</B> <I>nchars</I>] [<B>-p</B> <I>prompt</I>] [<B>-t</B> <I>timeout</I>] [<B>-u</B> <I>fd</I>] [<I>name</I> ...]<DD>
|
||||
One line is read from the standard input, or from the file descriptor
|
||||
<I>fd</I> supplied as an argument to the <B>-u</B> option, and the first word
|
||||
is assigned to the first
|
||||
@@ -10284,7 +10295,14 @@ buffer before editing begins.
|
||||
|
||||
<DD>
|
||||
<B>read</B> returns after reading <I>nchars</I> characters rather than
|
||||
waiting for a complete line of input.
|
||||
waiting for a complete line of input, but honor a delimiter if fewer
|
||||
than <I>nchars</I> characters are read before the delimiter.
|
||||
<DT><B>-N </B><I>nchars</I>
|
||||
|
||||
<DD>
|
||||
<B>read</B> returns after reading exactly <I>nchars</I> characters rather
|
||||
than waiting for a complete line of input, unless EOF is encountered or
|
||||
<B>read</B> times out. Any delimiter is ignored.
|
||||
<DT><B>-p </B><I>prompt</I>
|
||||
|
||||
<DD>
|
||||
@@ -12237,7 +12255,7 @@ There may be only one active coprocess at a time.
|
||||
<HR>
|
||||
<TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.1<TH ALIGN=CENTER width=33%>2009 September 16<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.1<TH ALIGN=CENTER width=33%>2009 October 9<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
@@ -12343,6 +12361,6 @@ There may be only one active coprocess at a time.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 16 September 2009 21:35:09 EDT
|
||||
Time: 12 October 2009 10:07:29 EDT
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Binary file not shown.
+5180
-5162
File diff suppressed because it is too large
Load Diff
+55
-55
@@ -66,9 +66,9 @@
|
||||
@xrdef{Coprocesses-title}{Coprocesses}
|
||||
@xrdef{Coprocesses-snt}{Section@tie 3.2.5}
|
||||
@xrdef{Command Grouping-pg}{13}
|
||||
@xrdef{Coprocesses-pg}{13}
|
||||
@xrdef{Shell Functions-title}{Shell Functions}
|
||||
@xrdef{Shell Functions-snt}{Section@tie 3.3}
|
||||
@xrdef{Coprocesses-pg}{14}
|
||||
@xrdef{Shell Functions-pg}{14}
|
||||
@xrdef{Shell Parameters-title}{Shell Parameters}
|
||||
@xrdef{Shell Parameters-snt}{Section@tie 3.4}
|
||||
@@ -87,9 +87,9 @@
|
||||
@xrdef{Tilde Expansion-title}{Tilde Expansion}
|
||||
@xrdef{Tilde Expansion-snt}{Section@tie 3.5.2}
|
||||
@xrdef{Brace Expansion-pg}{18}
|
||||
@xrdef{Tilde Expansion-pg}{18}
|
||||
@xrdef{Shell Parameter Expansion-title}{Shell Parameter Expansion}
|
||||
@xrdef{Shell Parameter Expansion-snt}{Section@tie 3.5.3}
|
||||
@xrdef{Tilde Expansion-pg}{19}
|
||||
@xrdef{Shell Parameter Expansion-pg}{19}
|
||||
@xrdef{Command Substitution-title}{Command Substitution}
|
||||
@xrdef{Command Substitution-snt}{Section@tie 3.5.4}
|
||||
@@ -221,14 +221,14 @@
|
||||
@xrdef{Job Control-snt}{Chapter@tie 7}
|
||||
@xrdef{Job Control Basics-title}{Job Control Basics}
|
||||
@xrdef{Job Control Basics-snt}{Section@tie 7.1}
|
||||
@xrdef{Job Control-pg}{87}
|
||||
@xrdef{Job Control Basics-pg}{87}
|
||||
@xrdef{Job Control-pg}{89}
|
||||
@xrdef{Job Control Basics-pg}{89}
|
||||
@xrdef{Job Control Builtins-title}{Job Control Builtins}
|
||||
@xrdef{Job Control Builtins-snt}{Section@tie 7.2}
|
||||
@xrdef{Job Control Builtins-pg}{88}
|
||||
@xrdef{Job Control Builtins-pg}{90}
|
||||
@xrdef{Job Control Variables-title}{Job Control Variables}
|
||||
@xrdef{Job Control Variables-snt}{Section@tie 7.3}
|
||||
@xrdef{Job Control Variables-pg}{90}
|
||||
@xrdef{Job Control Variables-pg}{92}
|
||||
@xrdef{Command Line Editing-title}{Command Line Editing}
|
||||
@xrdef{Command Line Editing-snt}{Chapter@tie 8}
|
||||
@xrdef{Introduction and Notation-title}{Introduction to Line Editing}
|
||||
@@ -237,142 +237,142 @@
|
||||
@xrdef{Readline Interaction-snt}{Section@tie 8.2}
|
||||
@xrdef{Readline Bare Essentials-title}{Readline Bare Essentials}
|
||||
@xrdef{Readline Bare Essentials-snt}{Section@tie 8.2.1}
|
||||
@xrdef{Command Line Editing-pg}{91}
|
||||
@xrdef{Introduction and Notation-pg}{91}
|
||||
@xrdef{Readline Interaction-pg}{91}
|
||||
@xrdef{Command Line Editing-pg}{93}
|
||||
@xrdef{Introduction and Notation-pg}{93}
|
||||
@xrdef{Readline Interaction-pg}{93}
|
||||
@xrdef{Readline Movement Commands-title}{Readline Movement Commands}
|
||||
@xrdef{Readline Movement Commands-snt}{Section@tie 8.2.2}
|
||||
@xrdef{Readline Killing Commands-title}{Readline Killing Commands}
|
||||
@xrdef{Readline Killing Commands-snt}{Section@tie 8.2.3}
|
||||
@xrdef{Readline Bare Essentials-pg}{92}
|
||||
@xrdef{Readline Movement Commands-pg}{92}
|
||||
@xrdef{Readline Bare Essentials-pg}{94}
|
||||
@xrdef{Readline Movement Commands-pg}{94}
|
||||
@xrdef{Readline Arguments-title}{Readline Arguments}
|
||||
@xrdef{Readline Arguments-snt}{Section@tie 8.2.4}
|
||||
@xrdef{Searching-title}{Searching for Commands in the History}
|
||||
@xrdef{Searching-snt}{Section@tie 8.2.5}
|
||||
@xrdef{Readline Killing Commands-pg}{93}
|
||||
@xrdef{Readline Arguments-pg}{93}
|
||||
@xrdef{Searching-pg}{93}
|
||||
@xrdef{Readline Killing Commands-pg}{95}
|
||||
@xrdef{Readline Arguments-pg}{95}
|
||||
@xrdef{Searching-pg}{95}
|
||||
@xrdef{Readline Init File-title}{Readline Init File}
|
||||
@xrdef{Readline Init File-snt}{Section@tie 8.3}
|
||||
@xrdef{Readline Init File Syntax-title}{Readline Init File Syntax}
|
||||
@xrdef{Readline Init File Syntax-snt}{Section@tie 8.3.1}
|
||||
@xrdef{Readline Init File-pg}{94}
|
||||
@xrdef{Readline Init File Syntax-pg}{94}
|
||||
@xrdef{Readline Init File-pg}{96}
|
||||
@xrdef{Readline Init File Syntax-pg}{96}
|
||||
@xrdef{Conditional Init Constructs-title}{Conditional Init Constructs}
|
||||
@xrdef{Conditional Init Constructs-snt}{Section@tie 8.3.2}
|
||||
@xrdef{Conditional Init Constructs-pg}{100}
|
||||
@xrdef{Conditional Init Constructs-pg}{102}
|
||||
@xrdef{Sample Init File-title}{Sample Init File}
|
||||
@xrdef{Sample Init File-snt}{Section@tie 8.3.3}
|
||||
@xrdef{Sample Init File-pg}{101}
|
||||
@xrdef{Sample Init File-pg}{103}
|
||||
@xrdef{Bindable Readline Commands-title}{Bindable Readline Commands}
|
||||
@xrdef{Bindable Readline Commands-snt}{Section@tie 8.4}
|
||||
@xrdef{Commands For Moving-title}{Commands For Moving}
|
||||
@xrdef{Commands For Moving-snt}{Section@tie 8.4.1}
|
||||
@xrdef{Commands For History-title}{Commands For Manipulating The History}
|
||||
@xrdef{Commands For History-snt}{Section@tie 8.4.2}
|
||||
@xrdef{Bindable Readline Commands-pg}{104}
|
||||
@xrdef{Commands For Moving-pg}{104}
|
||||
@xrdef{Commands For History-pg}{105}
|
||||
@xrdef{Bindable Readline Commands-pg}{106}
|
||||
@xrdef{Commands For Moving-pg}{106}
|
||||
@xrdef{Commands For History-pg}{107}
|
||||
@xrdef{Commands For Text-title}{Commands For Changing Text}
|
||||
@xrdef{Commands For Text-snt}{Section@tie 8.4.3}
|
||||
@xrdef{Commands For Text-pg}{106}
|
||||
@xrdef{Commands For Text-pg}{108}
|
||||
@xrdef{Commands For Killing-title}{Killing And Yanking}
|
||||
@xrdef{Commands For Killing-snt}{Section@tie 8.4.4}
|
||||
@xrdef{Commands For Killing-pg}{107}
|
||||
@xrdef{Commands For Killing-pg}{109}
|
||||
@xrdef{Numeric Arguments-title}{Specifying Numeric Arguments}
|
||||
@xrdef{Numeric Arguments-snt}{Section@tie 8.4.5}
|
||||
@xrdef{Commands For Completion-title}{Letting Readline Type For You}
|
||||
@xrdef{Commands For Completion-snt}{Section@tie 8.4.6}
|
||||
@xrdef{Numeric Arguments-pg}{108}
|
||||
@xrdef{Commands For Completion-pg}{108}
|
||||
@xrdef{Numeric Arguments-pg}{110}
|
||||
@xrdef{Commands For Completion-pg}{110}
|
||||
@xrdef{Keyboard Macros-title}{Keyboard Macros}
|
||||
@xrdef{Keyboard Macros-snt}{Section@tie 8.4.7}
|
||||
@xrdef{Miscellaneous Commands-title}{Some Miscellaneous Commands}
|
||||
@xrdef{Miscellaneous Commands-snt}{Section@tie 8.4.8}
|
||||
@xrdef{Keyboard Macros-pg}{110}
|
||||
@xrdef{Miscellaneous Commands-pg}{110}
|
||||
@xrdef{Keyboard Macros-pg}{112}
|
||||
@xrdef{Miscellaneous Commands-pg}{112}
|
||||
@xrdef{Readline vi Mode-title}{Readline vi Mode}
|
||||
@xrdef{Readline vi Mode-snt}{Section@tie 8.5}
|
||||
@xrdef{Readline vi Mode-pg}{112}
|
||||
@xrdef{Readline vi Mode-pg}{114}
|
||||
@xrdef{Programmable Completion-title}{Programmable Completion}
|
||||
@xrdef{Programmable Completion-snt}{Section@tie 8.6}
|
||||
@xrdef{Programmable Completion-pg}{113}
|
||||
@xrdef{Programmable Completion-pg}{115}
|
||||
@xrdef{Programmable Completion Builtins-title}{Programmable Completion Builtins}
|
||||
@xrdef{Programmable Completion Builtins-snt}{Section@tie 8.7}
|
||||
@xrdef{Programmable Completion Builtins-pg}{115}
|
||||
@xrdef{Programmable Completion Builtins-pg}{117}
|
||||
@xrdef{Using History Interactively-title}{Using History Interactively}
|
||||
@xrdef{Using History Interactively-snt}{Chapter@tie 9}
|
||||
@xrdef{Bash History Facilities-title}{Bash History Facilities}
|
||||
@xrdef{Bash History Facilities-snt}{Section@tie 9.1}
|
||||
@xrdef{Bash History Builtins-title}{Bash History Builtins}
|
||||
@xrdef{Bash History Builtins-snt}{Section@tie 9.2}
|
||||
@xrdef{Using History Interactively-pg}{119}
|
||||
@xrdef{Bash History Facilities-pg}{119}
|
||||
@xrdef{Bash History Builtins-pg}{119}
|
||||
@xrdef{Using History Interactively-pg}{121}
|
||||
@xrdef{Bash History Facilities-pg}{121}
|
||||
@xrdef{Bash History Builtins-pg}{121}
|
||||
@xrdef{History Interaction-title}{History Expansion}
|
||||
@xrdef{History Interaction-snt}{Section@tie 9.3}
|
||||
@xrdef{Event Designators-title}{Event Designators}
|
||||
@xrdef{Event Designators-snt}{Section@tie 9.3.1}
|
||||
@xrdef{History Interaction-pg}{121}
|
||||
@xrdef{Event Designators-pg}{121}
|
||||
@xrdef{History Interaction-pg}{123}
|
||||
@xrdef{Event Designators-pg}{123}
|
||||
@xrdef{Word Designators-title}{Word Designators}
|
||||
@xrdef{Word Designators-snt}{Section@tie 9.3.2}
|
||||
@xrdef{Word Designators-pg}{122}
|
||||
@xrdef{Word Designators-pg}{124}
|
||||
@xrdef{Modifiers-title}{Modifiers}
|
||||
@xrdef{Modifiers-snt}{Section@tie 9.3.3}
|
||||
@xrdef{Modifiers-pg}{123}
|
||||
@xrdef{Modifiers-pg}{125}
|
||||
@xrdef{Installing Bash-title}{Installing Bash}
|
||||
@xrdef{Installing Bash-snt}{Chapter@tie 10}
|
||||
@xrdef{Basic Installation-title}{Basic Installation}
|
||||
@xrdef{Basic Installation-snt}{Section@tie 10.1}
|
||||
@xrdef{Compilers and Options-title}{Compilers and Options}
|
||||
@xrdef{Compilers and Options-snt}{Section@tie 10.2}
|
||||
@xrdef{Installing Bash-pg}{125}
|
||||
@xrdef{Basic Installation-pg}{125}
|
||||
@xrdef{Installing Bash-pg}{127}
|
||||
@xrdef{Basic Installation-pg}{127}
|
||||
@xrdef{Compiling For Multiple Architectures-title}{Compiling For Multiple Architectures}
|
||||
@xrdef{Compiling For Multiple Architectures-snt}{Section@tie 10.3}
|
||||
@xrdef{Installation Names-title}{Installation Names}
|
||||
@xrdef{Installation Names-snt}{Section@tie 10.4}
|
||||
@xrdef{Specifying the System Type-title}{Specifying the System Type}
|
||||
@xrdef{Specifying the System Type-snt}{Section@tie 10.5}
|
||||
@xrdef{Compilers and Options-pg}{126}
|
||||
@xrdef{Compiling For Multiple Architectures-pg}{126}
|
||||
@xrdef{Installation Names-pg}{126}
|
||||
@xrdef{Specifying the System Type-pg}{126}
|
||||
@xrdef{Compilers and Options-pg}{128}
|
||||
@xrdef{Compiling For Multiple Architectures-pg}{128}
|
||||
@xrdef{Installation Names-pg}{128}
|
||||
@xrdef{Specifying the System Type-pg}{128}
|
||||
@xrdef{Sharing Defaults-title}{Sharing Defaults}
|
||||
@xrdef{Sharing Defaults-snt}{Section@tie 10.6}
|
||||
@xrdef{Operation Controls-title}{Operation Controls}
|
||||
@xrdef{Operation Controls-snt}{Section@tie 10.7}
|
||||
@xrdef{Optional Features-title}{Optional Features}
|
||||
@xrdef{Optional Features-snt}{Section@tie 10.8}
|
||||
@xrdef{Sharing Defaults-pg}{127}
|
||||
@xrdef{Operation Controls-pg}{127}
|
||||
@xrdef{Optional Features-pg}{127}
|
||||
@xrdef{Sharing Defaults-pg}{129}
|
||||
@xrdef{Operation Controls-pg}{129}
|
||||
@xrdef{Optional Features-pg}{129}
|
||||
@xrdef{Reporting Bugs-title}{Reporting Bugs}
|
||||
@xrdef{Reporting Bugs-snt}{Appendix@tie @char65{}}
|
||||
@xrdef{Reporting Bugs-pg}{133}
|
||||
@xrdef{Reporting Bugs-pg}{135}
|
||||
@xrdef{Major Differences From The Bourne Shell-title}{Major Differences From The Bourne Shell}
|
||||
@xrdef{Major Differences From The Bourne Shell-snt}{Appendix@tie @char66{}}
|
||||
@xrdef{Major Differences From The Bourne Shell-pg}{135}
|
||||
@xrdef{Major Differences From The Bourne Shell-pg}{137}
|
||||
@xrdef{GNU Free Documentation License-title}{GNU Free Documentation License}
|
||||
@xrdef{GNU Free Documentation License-snt}{Appendix@tie @char67{}}
|
||||
@xrdef{GNU Free Documentation License-pg}{141}
|
||||
@xrdef{GNU Free Documentation License-pg}{143}
|
||||
@xrdef{Indexes-title}{Indexes}
|
||||
@xrdef{Indexes-snt}{Appendix@tie @char68{}}
|
||||
@xrdef{Builtin Index-title}{Index of Shell Builtin Commands}
|
||||
@xrdef{Builtin Index-snt}{Section@tie @char68.1}
|
||||
@xrdef{Indexes-pg}{149}
|
||||
@xrdef{Builtin Index-pg}{149}
|
||||
@xrdef{Indexes-pg}{151}
|
||||
@xrdef{Builtin Index-pg}{151}
|
||||
@xrdef{Reserved Word Index-title}{Index of Shell Reserved Words}
|
||||
@xrdef{Reserved Word Index-snt}{Section@tie @char68.2}
|
||||
@xrdef{Variable Index-title}{Parameter and Variable Index}
|
||||
@xrdef{Variable Index-snt}{Section@tie @char68.3}
|
||||
@xrdef{Reserved Word Index-pg}{150}
|
||||
@xrdef{Variable Index-pg}{150}
|
||||
@xrdef{Reserved Word Index-pg}{152}
|
||||
@xrdef{Variable Index-pg}{152}
|
||||
@xrdef{Function Index-title}{Function Index}
|
||||
@xrdef{Function Index-snt}{Section@tie @char68.4}
|
||||
@xrdef{Function Index-pg}{152}
|
||||
@xrdef{Function Index-pg}{154}
|
||||
@xrdef{Concept Index-title}{Concept Index}
|
||||
@xrdef{Concept Index-snt}{Section@tie @char68.5}
|
||||
@xrdef{Concept Index-pg}{154}
|
||||
@xrdef{Concept Index-pg}{156}
|
||||
|
||||
+13
-13
@@ -34,7 +34,7 @@
|
||||
\entry{mapfile}{46}{\code {mapfile}}
|
||||
\entry{printf}{47}{\code {printf}}
|
||||
\entry{read}{47}{\code {read}}
|
||||
\entry{readarray}{48}{\code {readarray}}
|
||||
\entry{readarray}{49}{\code {readarray}}
|
||||
\entry{source}{49}{\code {source}}
|
||||
\entry{type}{49}{\code {type}}
|
||||
\entry{typeset}{49}{\code {typeset}}
|
||||
@@ -45,15 +45,15 @@
|
||||
\entry{dirs}{81}{\code {dirs}}
|
||||
\entry{popd}{82}{\code {popd}}
|
||||
\entry{pushd}{82}{\code {pushd}}
|
||||
\entry{bg}{88}{\code {bg}}
|
||||
\entry{fg}{88}{\code {fg}}
|
||||
\entry{jobs}{88}{\code {jobs}}
|
||||
\entry{kill}{89}{\code {kill}}
|
||||
\entry{wait}{89}{\code {wait}}
|
||||
\entry{disown}{89}{\code {disown}}
|
||||
\entry{suspend}{89}{\code {suspend}}
|
||||
\entry{compgen}{115}{\code {compgen}}
|
||||
\entry{complete}{115}{\code {complete}}
|
||||
\entry{compopt}{118}{\code {compopt}}
|
||||
\entry{fc}{119}{\code {fc}}
|
||||
\entry{history}{120}{\code {history}}
|
||||
\entry{bg}{90}{\code {bg}}
|
||||
\entry{fg}{90}{\code {fg}}
|
||||
\entry{jobs}{90}{\code {jobs}}
|
||||
\entry{kill}{91}{\code {kill}}
|
||||
\entry{wait}{91}{\code {wait}}
|
||||
\entry{disown}{91}{\code {disown}}
|
||||
\entry{suspend}{91}{\code {suspend}}
|
||||
\entry{compgen}{117}{\code {compgen}}
|
||||
\entry{complete}{117}{\code {complete}}
|
||||
\entry{compopt}{120}{\code {compopt}}
|
||||
\entry{fc}{121}{\code {fc}}
|
||||
\entry{history}{122}{\code {history}}
|
||||
|
||||
+13
-13
@@ -7,7 +7,7 @@
|
||||
\initial {A}
|
||||
\entry {\code {alias}}{41}
|
||||
\initial {B}
|
||||
\entry {\code {bg}}{88}
|
||||
\entry {\code {bg}}{90}
|
||||
\entry {\code {bind}}{41}
|
||||
\entry {\code {break}}{35}
|
||||
\entry {\code {builtin}}{43}
|
||||
@@ -15,14 +15,14 @@
|
||||
\entry {\code {caller}}{43}
|
||||
\entry {\code {cd}}{36}
|
||||
\entry {\code {command}}{43}
|
||||
\entry {\code {compgen}}{115}
|
||||
\entry {\code {complete}}{115}
|
||||
\entry {\code {compopt}}{118}
|
||||
\entry {\code {compgen}}{117}
|
||||
\entry {\code {complete}}{117}
|
||||
\entry {\code {compopt}}{120}
|
||||
\entry {\code {continue}}{36}
|
||||
\initial {D}
|
||||
\entry {\code {declare}}{43}
|
||||
\entry {\code {dirs}}{81}
|
||||
\entry {\code {disown}}{89}
|
||||
\entry {\code {disown}}{91}
|
||||
\initial {E}
|
||||
\entry {\code {echo}}{45}
|
||||
\entry {\code {enable}}{45}
|
||||
@@ -31,18 +31,18 @@
|
||||
\entry {\code {exit}}{36}
|
||||
\entry {\code {export}}{36}
|
||||
\initial {F}
|
||||
\entry {\code {fc}}{119}
|
||||
\entry {\code {fg}}{88}
|
||||
\entry {\code {fc}}{121}
|
||||
\entry {\code {fg}}{90}
|
||||
\initial {G}
|
||||
\entry {\code {getopts}}{37}
|
||||
\initial {H}
|
||||
\entry {\code {hash}}{37}
|
||||
\entry {\code {help}}{46}
|
||||
\entry {\code {history}}{120}
|
||||
\entry {\code {history}}{122}
|
||||
\initial {J}
|
||||
\entry {\code {jobs}}{88}
|
||||
\entry {\code {jobs}}{90}
|
||||
\initial {K}
|
||||
\entry {\code {kill}}{89}
|
||||
\entry {\code {kill}}{91}
|
||||
\initial {L}
|
||||
\entry {\code {let}}{46}
|
||||
\entry {\code {local}}{46}
|
||||
@@ -56,7 +56,7 @@
|
||||
\entry {\code {pwd}}{38}
|
||||
\initial {R}
|
||||
\entry {\code {read}}{47}
|
||||
\entry {\code {readarray}}{48}
|
||||
\entry {\code {readarray}}{49}
|
||||
\entry {\code {readonly}}{38}
|
||||
\entry {\code {return}}{38}
|
||||
\initial {S}
|
||||
@@ -64,7 +64,7 @@
|
||||
\entry {\code {shift}}{38}
|
||||
\entry {\code {shopt}}{55}
|
||||
\entry {\code {source}}{49}
|
||||
\entry {\code {suspend}}{89}
|
||||
\entry {\code {suspend}}{91}
|
||||
\initial {T}
|
||||
\entry {\code {test}}{39}
|
||||
\entry {\code {times}}{40}
|
||||
@@ -77,4 +77,4 @@
|
||||
\entry {\code {unalias}}{50}
|
||||
\entry {\code {unset}}{41}
|
||||
\initial {W}
|
||||
\entry {\code {wait}}{89}
|
||||
\entry {\code {wait}}{91}
|
||||
|
||||
+30
-30
@@ -36,7 +36,7 @@
|
||||
\entry{commands, looping}{9}{commands, looping}
|
||||
\entry{commands, conditional}{10}{commands, conditional}
|
||||
\entry{commands, grouping}{13}{commands, grouping}
|
||||
\entry{coprocess}{13}{coprocess}
|
||||
\entry{coprocess}{14}{coprocess}
|
||||
\entry{shell function}{14}{shell function}
|
||||
\entry{functions, shell}{14}{functions, shell}
|
||||
\entry{parameters}{15}{parameters}
|
||||
@@ -47,8 +47,8 @@
|
||||
\entry{expansion}{17}{expansion}
|
||||
\entry{brace expansion}{18}{brace expansion}
|
||||
\entry{expansion, brace}{18}{expansion, brace}
|
||||
\entry{tilde expansion}{18}{tilde expansion}
|
||||
\entry{expansion, tilde}{18}{expansion, tilde}
|
||||
\entry{tilde expansion}{19}{tilde expansion}
|
||||
\entry{expansion, tilde}{19}{expansion, tilde}
|
||||
\entry{parameter expansion}{19}{parameter expansion}
|
||||
\entry{expansion, parameter}{19}{expansion, parameter}
|
||||
\entry{command substitution}{22}{command substitution}
|
||||
@@ -89,30 +89,30 @@
|
||||
\entry{prompting}{82}{prompting}
|
||||
\entry{restricted shell}{84}{restricted shell}
|
||||
\entry{POSIX Mode}{84}{POSIX Mode}
|
||||
\entry{job control}{87}{job control}
|
||||
\entry{foreground}{87}{foreground}
|
||||
\entry{background}{87}{background}
|
||||
\entry{suspending jobs}{87}{suspending jobs}
|
||||
\entry{Readline, how to use}{90}{Readline, how to use}
|
||||
\entry{interaction, readline}{91}{interaction, readline}
|
||||
\entry{notation, readline}{92}{notation, readline}
|
||||
\entry{command editing}{92}{command editing}
|
||||
\entry{editing command lines}{92}{editing command lines}
|
||||
\entry{killing text}{93}{killing text}
|
||||
\entry{yanking text}{93}{yanking text}
|
||||
\entry{kill ring}{93}{kill ring}
|
||||
\entry{initialization file, readline}{94}{initialization file, readline}
|
||||
\entry{variables, readline}{95}{variables, readline}
|
||||
\entry{programmable completion}{113}{programmable completion}
|
||||
\entry{completion builtins}{115}{completion builtins}
|
||||
\entry{History, how to use}{118}{History, how to use}
|
||||
\entry{command history}{119}{command history}
|
||||
\entry{history list}{119}{history list}
|
||||
\entry{history builtins}{119}{history builtins}
|
||||
\entry{history expansion}{121}{history expansion}
|
||||
\entry{event designators}{121}{event designators}
|
||||
\entry{history events}{121}{history events}
|
||||
\entry{installation}{125}{installation}
|
||||
\entry{configuration}{125}{configuration}
|
||||
\entry{Bash installation}{125}{Bash installation}
|
||||
\entry{Bash configuration}{125}{Bash configuration}
|
||||
\entry{job control}{89}{job control}
|
||||
\entry{foreground}{89}{foreground}
|
||||
\entry{background}{89}{background}
|
||||
\entry{suspending jobs}{89}{suspending jobs}
|
||||
\entry{Readline, how to use}{92}{Readline, how to use}
|
||||
\entry{interaction, readline}{93}{interaction, readline}
|
||||
\entry{notation, readline}{94}{notation, readline}
|
||||
\entry{command editing}{94}{command editing}
|
||||
\entry{editing command lines}{94}{editing command lines}
|
||||
\entry{killing text}{95}{killing text}
|
||||
\entry{yanking text}{95}{yanking text}
|
||||
\entry{kill ring}{95}{kill ring}
|
||||
\entry{initialization file, readline}{96}{initialization file, readline}
|
||||
\entry{variables, readline}{97}{variables, readline}
|
||||
\entry{programmable completion}{115}{programmable completion}
|
||||
\entry{completion builtins}{117}{completion builtins}
|
||||
\entry{History, how to use}{120}{History, how to use}
|
||||
\entry{command history}{121}{command history}
|
||||
\entry{history list}{121}{history list}
|
||||
\entry{history builtins}{121}{history builtins}
|
||||
\entry{history expansion}{123}{history expansion}
|
||||
\entry{event designators}{123}{event designators}
|
||||
\entry{history events}{123}{history events}
|
||||
\entry{installation}{127}{installation}
|
||||
\entry{configuration}{127}{configuration}
|
||||
\entry{Bash installation}{127}{Bash installation}
|
||||
\entry{Bash configuration}{127}{Bash configuration}
|
||||
|
||||
+30
-30
@@ -5,17 +5,17 @@
|
||||
\entry {arithmetic, shell}{78}
|
||||
\entry {arrays}{80}
|
||||
\initial {B}
|
||||
\entry {background}{87}
|
||||
\entry {Bash configuration}{125}
|
||||
\entry {Bash installation}{125}
|
||||
\entry {background}{89}
|
||||
\entry {Bash configuration}{127}
|
||||
\entry {Bash installation}{127}
|
||||
\entry {Bourne shell}{5}
|
||||
\entry {brace expansion}{18}
|
||||
\entry {builtin}{3}
|
||||
\initial {C}
|
||||
\entry {command editing}{92}
|
||||
\entry {command editing}{94}
|
||||
\entry {command execution}{30}
|
||||
\entry {command expansion}{29}
|
||||
\entry {command history}{119}
|
||||
\entry {command history}{121}
|
||||
\entry {command search}{30}
|
||||
\entry {command substitution}{22}
|
||||
\entry {command timing}{8}
|
||||
@@ -28,17 +28,17 @@
|
||||
\entry {commands, shell}{7}
|
||||
\entry {commands, simple}{8}
|
||||
\entry {comments, shell}{7}
|
||||
\entry {completion builtins}{115}
|
||||
\entry {configuration}{125}
|
||||
\entry {completion builtins}{117}
|
||||
\entry {configuration}{127}
|
||||
\entry {control operator}{3}
|
||||
\entry {coprocess}{13}
|
||||
\entry {coprocess}{14}
|
||||
\initial {D}
|
||||
\entry {directory stack}{81}
|
||||
\initial {E}
|
||||
\entry {editing command lines}{92}
|
||||
\entry {editing command lines}{94}
|
||||
\entry {environment}{31}
|
||||
\entry {evaluation, arithmetic}{78}
|
||||
\entry {event designators}{121}
|
||||
\entry {event designators}{123}
|
||||
\entry {execution environment}{30}
|
||||
\entry {exit status}{3, 32}
|
||||
\entry {expansion}{17}
|
||||
@@ -47,34 +47,34 @@
|
||||
\entry {expansion, filename}{24}
|
||||
\entry {expansion, parameter}{19}
|
||||
\entry {expansion, pathname}{24}
|
||||
\entry {expansion, tilde}{18}
|
||||
\entry {expansion, tilde}{19}
|
||||
\entry {expressions, arithmetic}{78}
|
||||
\entry {expressions, conditional}{76}
|
||||
\initial {F}
|
||||
\entry {field}{3}
|
||||
\entry {filename}{3}
|
||||
\entry {filename expansion}{24}
|
||||
\entry {foreground}{87}
|
||||
\entry {foreground}{89}
|
||||
\entry {functions, shell}{14}
|
||||
\initial {H}
|
||||
\entry {history builtins}{119}
|
||||
\entry {history events}{121}
|
||||
\entry {history expansion}{121}
|
||||
\entry {history list}{119}
|
||||
\entry {History, how to use}{118}
|
||||
\entry {history builtins}{121}
|
||||
\entry {history events}{123}
|
||||
\entry {history expansion}{123}
|
||||
\entry {history list}{121}
|
||||
\entry {History, how to use}{120}
|
||||
\initial {I}
|
||||
\entry {identifier}{3}
|
||||
\entry {initialization file, readline}{94}
|
||||
\entry {installation}{125}
|
||||
\entry {interaction, readline}{91}
|
||||
\entry {initialization file, readline}{96}
|
||||
\entry {installation}{127}
|
||||
\entry {interaction, readline}{93}
|
||||
\entry {interactive shell}{73, 75}
|
||||
\entry {internationalization}{7}
|
||||
\initial {J}
|
||||
\entry {job}{3}
|
||||
\entry {job control}{3, 87}
|
||||
\entry {job control}{3, 89}
|
||||
\initial {K}
|
||||
\entry {kill ring}{93}
|
||||
\entry {killing text}{93}
|
||||
\entry {kill ring}{95}
|
||||
\entry {killing text}{95}
|
||||
\initial {L}
|
||||
\entry {localization}{7}
|
||||
\entry {login shell}{73}
|
||||
@@ -84,7 +84,7 @@
|
||||
\initial {N}
|
||||
\entry {name}{3}
|
||||
\entry {native languages}{7}
|
||||
\entry {notation, readline}{92}
|
||||
\entry {notation, readline}{94}
|
||||
\initial {O}
|
||||
\entry {operator, shell}{3}
|
||||
\initial {P}
|
||||
@@ -100,13 +100,13 @@
|
||||
\entry {process group}{3}
|
||||
\entry {process group ID}{3}
|
||||
\entry {process substitution}{23}
|
||||
\entry {programmable completion}{113}
|
||||
\entry {programmable completion}{115}
|
||||
\entry {prompting}{82}
|
||||
\initial {Q}
|
||||
\entry {quoting}{6}
|
||||
\entry {quoting, ANSI}{6}
|
||||
\initial {R}
|
||||
\entry {Readline, how to use}{90}
|
||||
\entry {Readline, how to use}{92}
|
||||
\entry {redirection}{26}
|
||||
\entry {reserved word}{3}
|
||||
\entry {restricted shell}{84}
|
||||
@@ -121,16 +121,16 @@
|
||||
\entry {signal handling}{32}
|
||||
\entry {special builtin}{4, 59}
|
||||
\entry {startup files}{73}
|
||||
\entry {suspending jobs}{87}
|
||||
\entry {suspending jobs}{89}
|
||||
\initial {T}
|
||||
\entry {tilde expansion}{18}
|
||||
\entry {tilde expansion}{19}
|
||||
\entry {token}{4}
|
||||
\entry {translation, native languages}{7}
|
||||
\initial {V}
|
||||
\entry {variable, shell}{15}
|
||||
\entry {variables, readline}{95}
|
||||
\entry {variables, readline}{97}
|
||||
\initial {W}
|
||||
\entry {word}{4}
|
||||
\entry {word splitting}{23}
|
||||
\initial {Y}
|
||||
\entry {yanking text}{93}
|
||||
\entry {yanking text}{95}
|
||||
|
||||
Binary file not shown.
+103
-103
@@ -1,103 +1,103 @@
|
||||
\entry{beginning-of-line (C-a)}{104}{\code {beginning-of-line (C-a)}}
|
||||
\entry{end-of-line (C-e)}{104}{\code {end-of-line (C-e)}}
|
||||
\entry{forward-char (C-f)}{104}{\code {forward-char (C-f)}}
|
||||
\entry{backward-char (C-b)}{104}{\code {backward-char (C-b)}}
|
||||
\entry{forward-word (M-f)}{104}{\code {forward-word (M-f)}}
|
||||
\entry{backward-word (M-b)}{104}{\code {backward-word (M-b)}}
|
||||
\entry{shell-forward-word ()}{104}{\code {shell-forward-word ()}}
|
||||
\entry{shell-backward-word ()}{104}{\code {shell-backward-word ()}}
|
||||
\entry{clear-screen (C-l)}{104}{\code {clear-screen (C-l)}}
|
||||
\entry{redraw-current-line ()}{104}{\code {redraw-current-line ()}}
|
||||
\entry{accept-line (Newline or Return)}{105}{\code {accept-line (Newline or Return)}}
|
||||
\entry{previous-history (C-p)}{105}{\code {previous-history (C-p)}}
|
||||
\entry{next-history (C-n)}{105}{\code {next-history (C-n)}}
|
||||
\entry{beginning-of-history (M-<)}{105}{\code {beginning-of-history (M-<)}}
|
||||
\entry{end-of-history (M->)}{105}{\code {end-of-history (M->)}}
|
||||
\entry{reverse-search-history (C-r)}{105}{\code {reverse-search-history (C-r)}}
|
||||
\entry{forward-search-history (C-s)}{105}{\code {forward-search-history (C-s)}}
|
||||
\entry{non-incremental-reverse-search-history (M-p)}{105}{\code {non-incremental-reverse-search-history (M-p)}}
|
||||
\entry{non-incremental-forward-search-history (M-n)}{105}{\code {non-incremental-forward-search-history (M-n)}}
|
||||
\entry{history-search-forward ()}{105}{\code {history-search-forward ()}}
|
||||
\entry{history-search-backward ()}{105}{\code {history-search-backward ()}}
|
||||
\entry{yank-nth-arg (M-C-y)}{105}{\code {yank-nth-arg (M-C-y)}}
|
||||
\entry{yank-last-arg (M-. or M-_)}{106}{\code {yank-last-arg (M-. or M-_)}}
|
||||
\entry{delete-char (C-d)}{106}{\code {delete-char (C-d)}}
|
||||
\entry{backward-delete-char (Rubout)}{106}{\code {backward-delete-char (Rubout)}}
|
||||
\entry{forward-backward-delete-char ()}{106}{\code {forward-backward-delete-char ()}}
|
||||
\entry{quoted-insert (C-q or C-v)}{106}{\code {quoted-insert (C-q or C-v)}}
|
||||
\entry{self-insert (a, b, A, 1, !, ...{})}{106}{\code {self-insert (a, b, A, 1, !, \dots {})}}
|
||||
\entry{transpose-chars (C-t)}{106}{\code {transpose-chars (C-t)}}
|
||||
\entry{transpose-words (M-t)}{106}{\code {transpose-words (M-t)}}
|
||||
\entry{upcase-word (M-u)}{106}{\code {upcase-word (M-u)}}
|
||||
\entry{downcase-word (M-l)}{106}{\code {downcase-word (M-l)}}
|
||||
\entry{capitalize-word (M-c)}{107}{\code {capitalize-word (M-c)}}
|
||||
\entry{overwrite-mode ()}{107}{\code {overwrite-mode ()}}
|
||||
\entry{kill-line (C-k)}{107}{\code {kill-line (C-k)}}
|
||||
\entry{backward-kill-line (C-x Rubout)}{107}{\code {backward-kill-line (C-x Rubout)}}
|
||||
\entry{unix-line-discard (C-u)}{107}{\code {unix-line-discard (C-u)}}
|
||||
\entry{kill-whole-line ()}{107}{\code {kill-whole-line ()}}
|
||||
\entry{kill-word (M-d)}{107}{\code {kill-word (M-d)}}
|
||||
\entry{backward-kill-word (M-DEL)}{107}{\code {backward-kill-word (M-\key {DEL})}}
|
||||
\entry{shell-kill-word ()}{107}{\code {shell-kill-word ()}}
|
||||
\entry{backward-kill-word ()}{107}{\code {backward-kill-word ()}}
|
||||
\entry{unix-word-rubout (C-w)}{107}{\code {unix-word-rubout (C-w)}}
|
||||
\entry{unix-filename-rubout ()}{107}{\code {unix-filename-rubout ()}}
|
||||
\entry{delete-horizontal-space ()}{107}{\code {delete-horizontal-space ()}}
|
||||
\entry{kill-region ()}{108}{\code {kill-region ()}}
|
||||
\entry{copy-region-as-kill ()}{108}{\code {copy-region-as-kill ()}}
|
||||
\entry{copy-backward-word ()}{108}{\code {copy-backward-word ()}}
|
||||
\entry{copy-forward-word ()}{108}{\code {copy-forward-word ()}}
|
||||
\entry{yank (C-y)}{108}{\code {yank (C-y)}}
|
||||
\entry{yank-pop (M-y)}{108}{\code {yank-pop (M-y)}}
|
||||
\entry{digit-argument (M-0, M-1, ...{} M--)}{108}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}
|
||||
\entry{universal-argument ()}{108}{\code {universal-argument ()}}
|
||||
\entry{complete (TAB)}{108}{\code {complete (\key {TAB})}}
|
||||
\entry{possible-completions (M-?)}{108}{\code {possible-completions (M-?)}}
|
||||
\entry{insert-completions (M-*)}{109}{\code {insert-completions (M-*)}}
|
||||
\entry{menu-complete ()}{109}{\code {menu-complete ()}}
|
||||
\entry{menu-complete-backward ()}{109}{\code {menu-complete-backward ()}}
|
||||
\entry{delete-char-or-list ()}{109}{\code {delete-char-or-list ()}}
|
||||
\entry{complete-filename (M-/)}{109}{\code {complete-filename (M-/)}}
|
||||
\entry{possible-filename-completions (C-x /)}{109}{\code {possible-filename-completions (C-x /)}}
|
||||
\entry{complete-username (M-~)}{109}{\code {complete-username (M-~)}}
|
||||
\entry{possible-username-completions (C-x ~)}{109}{\code {possible-username-completions (C-x ~)}}
|
||||
\entry{complete-variable (M-$)}{109}{\code {complete-variable (M-$)}}
|
||||
\entry{possible-variable-completions (C-x $)}{109}{\code {possible-variable-completions (C-x $)}}
|
||||
\entry{complete-hostname (M-@)}{109}{\code {complete-hostname (M-@)}}
|
||||
\entry{possible-hostname-completions (C-x @)}{109}{\code {possible-hostname-completions (C-x @)}}
|
||||
\entry{complete-command (M-!)}{109}{\code {complete-command (M-!)}}
|
||||
\entry{possible-command-completions (C-x !)}{110}{\code {possible-command-completions (C-x !)}}
|
||||
\entry{dynamic-complete-history (M-TAB)}{110}{\code {dynamic-complete-history (M-\key {TAB})}}
|
||||
\entry{dabbrev-expand ()}{110}{\code {dabbrev-expand ()}}
|
||||
\entry{complete-into-braces (M-{\tt \char 123})}{110}{\code {complete-into-braces (M-{\tt \char 123})}}
|
||||
\entry{start-kbd-macro (C-x ()}{110}{\code {start-kbd-macro (C-x ()}}
|
||||
\entry{end-kbd-macro (C-x ))}{110}{\code {end-kbd-macro (C-x ))}}
|
||||
\entry{call-last-kbd-macro (C-x e)}{110}{\code {call-last-kbd-macro (C-x e)}}
|
||||
\entry{re-read-init-file (C-x C-r)}{110}{\code {re-read-init-file (C-x C-r)}}
|
||||
\entry{abort (C-g)}{110}{\code {abort (C-g)}}
|
||||
\entry{do-uppercase-version (M-a, M-b, M-x, ...{})}{110}{\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}
|
||||
\entry{prefix-meta (ESC)}{110}{\code {prefix-meta (\key {ESC})}}
|
||||
\entry{undo (C-_ or C-x C-u)}{110}{\code {undo (C-_ or C-x C-u)}}
|
||||
\entry{revert-line (M-r)}{110}{\code {revert-line (M-r)}}
|
||||
\entry{tilde-expand (M-&)}{111}{\code {tilde-expand (M-&)}}
|
||||
\entry{set-mark (C-@)}{111}{\code {set-mark (C-@)}}
|
||||
\entry{exchange-point-and-mark (C-x C-x)}{111}{\code {exchange-point-and-mark (C-x C-x)}}
|
||||
\entry{character-search (C-])}{111}{\code {character-search (C-])}}
|
||||
\entry{character-search-backward (M-C-])}{111}{\code {character-search-backward (M-C-])}}
|
||||
\entry{skip-csi-sequence ()}{111}{\code {skip-csi-sequence ()}}
|
||||
\entry{insert-comment (M-#)}{111}{\code {insert-comment (M-#)}}
|
||||
\entry{dump-functions ()}{111}{\code {dump-functions ()}}
|
||||
\entry{dump-variables ()}{111}{\code {dump-variables ()}}
|
||||
\entry{dump-macros ()}{111}{\code {dump-macros ()}}
|
||||
\entry{glob-complete-word (M-g)}{112}{\code {glob-complete-word (M-g)}}
|
||||
\entry{glob-expand-word (C-x *)}{112}{\code {glob-expand-word (C-x *)}}
|
||||
\entry{glob-list-expansions (C-x g)}{112}{\code {glob-list-expansions (C-x g)}}
|
||||
\entry{display-shell-version (C-x C-v)}{112}{\code {display-shell-version (C-x C-v)}}
|
||||
\entry{shell-expand-line (M-C-e)}{112}{\code {shell-expand-line (M-C-e)}}
|
||||
\entry{history-expand-line (M-^)}{112}{\code {history-expand-line (M-^)}}
|
||||
\entry{magic-space ()}{112}{\code {magic-space ()}}
|
||||
\entry{alias-expand-line ()}{112}{\code {alias-expand-line ()}}
|
||||
\entry{history-and-alias-expand-line ()}{112}{\code {history-and-alias-expand-line ()}}
|
||||
\entry{insert-last-argument (M-. or M-_)}{112}{\code {insert-last-argument (M-. or M-_)}}
|
||||
\entry{operate-and-get-next (C-o)}{112}{\code {operate-and-get-next (C-o)}}
|
||||
\entry{edit-and-execute-command (C-xC-e)}{112}{\code {edit-and-execute-command (C-xC-e)}}
|
||||
\entry{beginning-of-line (C-a)}{106}{\code {beginning-of-line (C-a)}}
|
||||
\entry{end-of-line (C-e)}{106}{\code {end-of-line (C-e)}}
|
||||
\entry{forward-char (C-f)}{106}{\code {forward-char (C-f)}}
|
||||
\entry{backward-char (C-b)}{106}{\code {backward-char (C-b)}}
|
||||
\entry{forward-word (M-f)}{106}{\code {forward-word (M-f)}}
|
||||
\entry{backward-word (M-b)}{106}{\code {backward-word (M-b)}}
|
||||
\entry{shell-forward-word ()}{106}{\code {shell-forward-word ()}}
|
||||
\entry{shell-backward-word ()}{106}{\code {shell-backward-word ()}}
|
||||
\entry{clear-screen (C-l)}{106}{\code {clear-screen (C-l)}}
|
||||
\entry{redraw-current-line ()}{106}{\code {redraw-current-line ()}}
|
||||
\entry{accept-line (Newline or Return)}{107}{\code {accept-line (Newline or Return)}}
|
||||
\entry{previous-history (C-p)}{107}{\code {previous-history (C-p)}}
|
||||
\entry{next-history (C-n)}{107}{\code {next-history (C-n)}}
|
||||
\entry{beginning-of-history (M-<)}{107}{\code {beginning-of-history (M-<)}}
|
||||
\entry{end-of-history (M->)}{107}{\code {end-of-history (M->)}}
|
||||
\entry{reverse-search-history (C-r)}{107}{\code {reverse-search-history (C-r)}}
|
||||
\entry{forward-search-history (C-s)}{107}{\code {forward-search-history (C-s)}}
|
||||
\entry{non-incremental-reverse-search-history (M-p)}{107}{\code {non-incremental-reverse-search-history (M-p)}}
|
||||
\entry{non-incremental-forward-search-history (M-n)}{107}{\code {non-incremental-forward-search-history (M-n)}}
|
||||
\entry{history-search-forward ()}{107}{\code {history-search-forward ()}}
|
||||
\entry{history-search-backward ()}{107}{\code {history-search-backward ()}}
|
||||
\entry{yank-nth-arg (M-C-y)}{107}{\code {yank-nth-arg (M-C-y)}}
|
||||
\entry{yank-last-arg (M-. or M-_)}{108}{\code {yank-last-arg (M-. or M-_)}}
|
||||
\entry{delete-char (C-d)}{108}{\code {delete-char (C-d)}}
|
||||
\entry{backward-delete-char (Rubout)}{108}{\code {backward-delete-char (Rubout)}}
|
||||
\entry{forward-backward-delete-char ()}{108}{\code {forward-backward-delete-char ()}}
|
||||
\entry{quoted-insert (C-q or C-v)}{108}{\code {quoted-insert (C-q or C-v)}}
|
||||
\entry{self-insert (a, b, A, 1, !, ...{})}{108}{\code {self-insert (a, b, A, 1, !, \dots {})}}
|
||||
\entry{transpose-chars (C-t)}{108}{\code {transpose-chars (C-t)}}
|
||||
\entry{transpose-words (M-t)}{108}{\code {transpose-words (M-t)}}
|
||||
\entry{upcase-word (M-u)}{108}{\code {upcase-word (M-u)}}
|
||||
\entry{downcase-word (M-l)}{108}{\code {downcase-word (M-l)}}
|
||||
\entry{capitalize-word (M-c)}{109}{\code {capitalize-word (M-c)}}
|
||||
\entry{overwrite-mode ()}{109}{\code {overwrite-mode ()}}
|
||||
\entry{kill-line (C-k)}{109}{\code {kill-line (C-k)}}
|
||||
\entry{backward-kill-line (C-x Rubout)}{109}{\code {backward-kill-line (C-x Rubout)}}
|
||||
\entry{unix-line-discard (C-u)}{109}{\code {unix-line-discard (C-u)}}
|
||||
\entry{kill-whole-line ()}{109}{\code {kill-whole-line ()}}
|
||||
\entry{kill-word (M-d)}{109}{\code {kill-word (M-d)}}
|
||||
\entry{backward-kill-word (M-DEL)}{109}{\code {backward-kill-word (M-\key {DEL})}}
|
||||
\entry{shell-kill-word ()}{109}{\code {shell-kill-word ()}}
|
||||
\entry{backward-kill-word ()}{109}{\code {backward-kill-word ()}}
|
||||
\entry{unix-word-rubout (C-w)}{109}{\code {unix-word-rubout (C-w)}}
|
||||
\entry{unix-filename-rubout ()}{109}{\code {unix-filename-rubout ()}}
|
||||
\entry{delete-horizontal-space ()}{109}{\code {delete-horizontal-space ()}}
|
||||
\entry{kill-region ()}{110}{\code {kill-region ()}}
|
||||
\entry{copy-region-as-kill ()}{110}{\code {copy-region-as-kill ()}}
|
||||
\entry{copy-backward-word ()}{110}{\code {copy-backward-word ()}}
|
||||
\entry{copy-forward-word ()}{110}{\code {copy-forward-word ()}}
|
||||
\entry{yank (C-y)}{110}{\code {yank (C-y)}}
|
||||
\entry{yank-pop (M-y)}{110}{\code {yank-pop (M-y)}}
|
||||
\entry{digit-argument (M-0, M-1, ...{} M--)}{110}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}
|
||||
\entry{universal-argument ()}{110}{\code {universal-argument ()}}
|
||||
\entry{complete (TAB)}{110}{\code {complete (\key {TAB})}}
|
||||
\entry{possible-completions (M-?)}{110}{\code {possible-completions (M-?)}}
|
||||
\entry{insert-completions (M-*)}{111}{\code {insert-completions (M-*)}}
|
||||
\entry{menu-complete ()}{111}{\code {menu-complete ()}}
|
||||
\entry{menu-complete-backward ()}{111}{\code {menu-complete-backward ()}}
|
||||
\entry{delete-char-or-list ()}{111}{\code {delete-char-or-list ()}}
|
||||
\entry{complete-filename (M-/)}{111}{\code {complete-filename (M-/)}}
|
||||
\entry{possible-filename-completions (C-x /)}{111}{\code {possible-filename-completions (C-x /)}}
|
||||
\entry{complete-username (M-~)}{111}{\code {complete-username (M-~)}}
|
||||
\entry{possible-username-completions (C-x ~)}{111}{\code {possible-username-completions (C-x ~)}}
|
||||
\entry{complete-variable (M-$)}{111}{\code {complete-variable (M-$)}}
|
||||
\entry{possible-variable-completions (C-x $)}{111}{\code {possible-variable-completions (C-x $)}}
|
||||
\entry{complete-hostname (M-@)}{111}{\code {complete-hostname (M-@)}}
|
||||
\entry{possible-hostname-completions (C-x @)}{111}{\code {possible-hostname-completions (C-x @)}}
|
||||
\entry{complete-command (M-!)}{111}{\code {complete-command (M-!)}}
|
||||
\entry{possible-command-completions (C-x !)}{112}{\code {possible-command-completions (C-x !)}}
|
||||
\entry{dynamic-complete-history (M-TAB)}{112}{\code {dynamic-complete-history (M-\key {TAB})}}
|
||||
\entry{dabbrev-expand ()}{112}{\code {dabbrev-expand ()}}
|
||||
\entry{complete-into-braces (M-{\tt \char 123})}{112}{\code {complete-into-braces (M-{\tt \char 123})}}
|
||||
\entry{start-kbd-macro (C-x ()}{112}{\code {start-kbd-macro (C-x ()}}
|
||||
\entry{end-kbd-macro (C-x ))}{112}{\code {end-kbd-macro (C-x ))}}
|
||||
\entry{call-last-kbd-macro (C-x e)}{112}{\code {call-last-kbd-macro (C-x e)}}
|
||||
\entry{re-read-init-file (C-x C-r)}{112}{\code {re-read-init-file (C-x C-r)}}
|
||||
\entry{abort (C-g)}{112}{\code {abort (C-g)}}
|
||||
\entry{do-uppercase-version (M-a, M-b, M-x, ...{})}{112}{\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}
|
||||
\entry{prefix-meta (ESC)}{112}{\code {prefix-meta (\key {ESC})}}
|
||||
\entry{undo (C-_ or C-x C-u)}{112}{\code {undo (C-_ or C-x C-u)}}
|
||||
\entry{revert-line (M-r)}{112}{\code {revert-line (M-r)}}
|
||||
\entry{tilde-expand (M-&)}{113}{\code {tilde-expand (M-&)}}
|
||||
\entry{set-mark (C-@)}{113}{\code {set-mark (C-@)}}
|
||||
\entry{exchange-point-and-mark (C-x C-x)}{113}{\code {exchange-point-and-mark (C-x C-x)}}
|
||||
\entry{character-search (C-])}{113}{\code {character-search (C-])}}
|
||||
\entry{character-search-backward (M-C-])}{113}{\code {character-search-backward (M-C-])}}
|
||||
\entry{skip-csi-sequence ()}{113}{\code {skip-csi-sequence ()}}
|
||||
\entry{insert-comment (M-#)}{113}{\code {insert-comment (M-#)}}
|
||||
\entry{dump-functions ()}{113}{\code {dump-functions ()}}
|
||||
\entry{dump-variables ()}{113}{\code {dump-variables ()}}
|
||||
\entry{dump-macros ()}{113}{\code {dump-macros ()}}
|
||||
\entry{glob-complete-word (M-g)}{114}{\code {glob-complete-word (M-g)}}
|
||||
\entry{glob-expand-word (C-x *)}{114}{\code {glob-expand-word (C-x *)}}
|
||||
\entry{glob-list-expansions (C-x g)}{114}{\code {glob-list-expansions (C-x g)}}
|
||||
\entry{display-shell-version (C-x C-v)}{114}{\code {display-shell-version (C-x C-v)}}
|
||||
\entry{shell-expand-line (M-C-e)}{114}{\code {shell-expand-line (M-C-e)}}
|
||||
\entry{history-expand-line (M-^)}{114}{\code {history-expand-line (M-^)}}
|
||||
\entry{magic-space ()}{114}{\code {magic-space ()}}
|
||||
\entry{alias-expand-line ()}{114}{\code {alias-expand-line ()}}
|
||||
\entry{history-and-alias-expand-line ()}{114}{\code {history-and-alias-expand-line ()}}
|
||||
\entry{insert-last-argument (M-. or M-_)}{114}{\code {insert-last-argument (M-. or M-_)}}
|
||||
\entry{operate-and-get-next (C-o)}{114}{\code {operate-and-get-next (C-o)}}
|
||||
\entry{edit-and-execute-command (C-xC-e)}{114}{\code {edit-and-execute-command (C-xC-e)}}
|
||||
|
||||
+103
-103
@@ -1,123 +1,123 @@
|
||||
\initial {A}
|
||||
\entry {\code {abort (C-g)}}{110}
|
||||
\entry {\code {accept-line (Newline or Return)}}{105}
|
||||
\entry {\code {alias-expand-line ()}}{112}
|
||||
\entry {\code {abort (C-g)}}{112}
|
||||
\entry {\code {accept-line (Newline or Return)}}{107}
|
||||
\entry {\code {alias-expand-line ()}}{114}
|
||||
\initial {B}
|
||||
\entry {\code {backward-char (C-b)}}{104}
|
||||
\entry {\code {backward-delete-char (Rubout)}}{106}
|
||||
\entry {\code {backward-kill-line (C-x Rubout)}}{107}
|
||||
\entry {\code {backward-kill-word ()}}{107}
|
||||
\entry {\code {backward-kill-word (M-\key {DEL})}}{107}
|
||||
\entry {\code {backward-word (M-b)}}{104}
|
||||
\entry {\code {beginning-of-history (M-<)}}{105}
|
||||
\entry {\code {beginning-of-line (C-a)}}{104}
|
||||
\entry {\code {backward-char (C-b)}}{106}
|
||||
\entry {\code {backward-delete-char (Rubout)}}{108}
|
||||
\entry {\code {backward-kill-line (C-x Rubout)}}{109}
|
||||
\entry {\code {backward-kill-word ()}}{109}
|
||||
\entry {\code {backward-kill-word (M-\key {DEL})}}{109}
|
||||
\entry {\code {backward-word (M-b)}}{106}
|
||||
\entry {\code {beginning-of-history (M-<)}}{107}
|
||||
\entry {\code {beginning-of-line (C-a)}}{106}
|
||||
\initial {C}
|
||||
\entry {\code {call-last-kbd-macro (C-x e)}}{110}
|
||||
\entry {\code {capitalize-word (M-c)}}{107}
|
||||
\entry {\code {character-search (C-])}}{111}
|
||||
\entry {\code {character-search-backward (M-C-])}}{111}
|
||||
\entry {\code {clear-screen (C-l)}}{104}
|
||||
\entry {\code {complete (\key {TAB})}}{108}
|
||||
\entry {\code {complete-command (M-!)}}{109}
|
||||
\entry {\code {complete-filename (M-/)}}{109}
|
||||
\entry {\code {complete-hostname (M-@)}}{109}
|
||||
\entry {\code {complete-into-braces (M-{\tt \char 123})}}{110}
|
||||
\entry {\code {complete-username (M-~)}}{109}
|
||||
\entry {\code {complete-variable (M-$)}}{109}
|
||||
\entry {\code {copy-backward-word ()}}{108}
|
||||
\entry {\code {copy-forward-word ()}}{108}
|
||||
\entry {\code {copy-region-as-kill ()}}{108}
|
||||
\entry {\code {call-last-kbd-macro (C-x e)}}{112}
|
||||
\entry {\code {capitalize-word (M-c)}}{109}
|
||||
\entry {\code {character-search (C-])}}{113}
|
||||
\entry {\code {character-search-backward (M-C-])}}{113}
|
||||
\entry {\code {clear-screen (C-l)}}{106}
|
||||
\entry {\code {complete (\key {TAB})}}{110}
|
||||
\entry {\code {complete-command (M-!)}}{111}
|
||||
\entry {\code {complete-filename (M-/)}}{111}
|
||||
\entry {\code {complete-hostname (M-@)}}{111}
|
||||
\entry {\code {complete-into-braces (M-{\tt \char 123})}}{112}
|
||||
\entry {\code {complete-username (M-~)}}{111}
|
||||
\entry {\code {complete-variable (M-$)}}{111}
|
||||
\entry {\code {copy-backward-word ()}}{110}
|
||||
\entry {\code {copy-forward-word ()}}{110}
|
||||
\entry {\code {copy-region-as-kill ()}}{110}
|
||||
\initial {D}
|
||||
\entry {\code {dabbrev-expand ()}}{110}
|
||||
\entry {\code {delete-char (C-d)}}{106}
|
||||
\entry {\code {delete-char-or-list ()}}{109}
|
||||
\entry {\code {delete-horizontal-space ()}}{107}
|
||||
\entry {\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{108}
|
||||
\entry {\code {display-shell-version (C-x C-v)}}{112}
|
||||
\entry {\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}{110}
|
||||
\entry {\code {downcase-word (M-l)}}{106}
|
||||
\entry {\code {dump-functions ()}}{111}
|
||||
\entry {\code {dump-macros ()}}{111}
|
||||
\entry {\code {dump-variables ()}}{111}
|
||||
\entry {\code {dynamic-complete-history (M-\key {TAB})}}{110}
|
||||
\entry {\code {dabbrev-expand ()}}{112}
|
||||
\entry {\code {delete-char (C-d)}}{108}
|
||||
\entry {\code {delete-char-or-list ()}}{111}
|
||||
\entry {\code {delete-horizontal-space ()}}{109}
|
||||
\entry {\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{110}
|
||||
\entry {\code {display-shell-version (C-x C-v)}}{114}
|
||||
\entry {\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}{112}
|
||||
\entry {\code {downcase-word (M-l)}}{108}
|
||||
\entry {\code {dump-functions ()}}{113}
|
||||
\entry {\code {dump-macros ()}}{113}
|
||||
\entry {\code {dump-variables ()}}{113}
|
||||
\entry {\code {dynamic-complete-history (M-\key {TAB})}}{112}
|
||||
\initial {E}
|
||||
\entry {\code {edit-and-execute-command (C-xC-e)}}{112}
|
||||
\entry {\code {end-kbd-macro (C-x ))}}{110}
|
||||
\entry {\code {end-of-history (M->)}}{105}
|
||||
\entry {\code {end-of-line (C-e)}}{104}
|
||||
\entry {\code {exchange-point-and-mark (C-x C-x)}}{111}
|
||||
\entry {\code {edit-and-execute-command (C-xC-e)}}{114}
|
||||
\entry {\code {end-kbd-macro (C-x ))}}{112}
|
||||
\entry {\code {end-of-history (M->)}}{107}
|
||||
\entry {\code {end-of-line (C-e)}}{106}
|
||||
\entry {\code {exchange-point-and-mark (C-x C-x)}}{113}
|
||||
\initial {F}
|
||||
\entry {\code {forward-backward-delete-char ()}}{106}
|
||||
\entry {\code {forward-char (C-f)}}{104}
|
||||
\entry {\code {forward-search-history (C-s)}}{105}
|
||||
\entry {\code {forward-word (M-f)}}{104}
|
||||
\entry {\code {forward-backward-delete-char ()}}{108}
|
||||
\entry {\code {forward-char (C-f)}}{106}
|
||||
\entry {\code {forward-search-history (C-s)}}{107}
|
||||
\entry {\code {forward-word (M-f)}}{106}
|
||||
\initial {G}
|
||||
\entry {\code {glob-complete-word (M-g)}}{112}
|
||||
\entry {\code {glob-expand-word (C-x *)}}{112}
|
||||
\entry {\code {glob-list-expansions (C-x g)}}{112}
|
||||
\entry {\code {glob-complete-word (M-g)}}{114}
|
||||
\entry {\code {glob-expand-word (C-x *)}}{114}
|
||||
\entry {\code {glob-list-expansions (C-x g)}}{114}
|
||||
\initial {H}
|
||||
\entry {\code {history-and-alias-expand-line ()}}{112}
|
||||
\entry {\code {history-expand-line (M-^)}}{112}
|
||||
\entry {\code {history-search-backward ()}}{105}
|
||||
\entry {\code {history-search-forward ()}}{105}
|
||||
\entry {\code {history-and-alias-expand-line ()}}{114}
|
||||
\entry {\code {history-expand-line (M-^)}}{114}
|
||||
\entry {\code {history-search-backward ()}}{107}
|
||||
\entry {\code {history-search-forward ()}}{107}
|
||||
\initial {I}
|
||||
\entry {\code {insert-comment (M-#)}}{111}
|
||||
\entry {\code {insert-completions (M-*)}}{109}
|
||||
\entry {\code {insert-last-argument (M-. or M-_)}}{112}
|
||||
\entry {\code {insert-comment (M-#)}}{113}
|
||||
\entry {\code {insert-completions (M-*)}}{111}
|
||||
\entry {\code {insert-last-argument (M-. or M-_)}}{114}
|
||||
\initial {K}
|
||||
\entry {\code {kill-line (C-k)}}{107}
|
||||
\entry {\code {kill-region ()}}{108}
|
||||
\entry {\code {kill-whole-line ()}}{107}
|
||||
\entry {\code {kill-word (M-d)}}{107}
|
||||
\entry {\code {kill-line (C-k)}}{109}
|
||||
\entry {\code {kill-region ()}}{110}
|
||||
\entry {\code {kill-whole-line ()}}{109}
|
||||
\entry {\code {kill-word (M-d)}}{109}
|
||||
\initial {M}
|
||||
\entry {\code {magic-space ()}}{112}
|
||||
\entry {\code {menu-complete ()}}{109}
|
||||
\entry {\code {menu-complete-backward ()}}{109}
|
||||
\entry {\code {magic-space ()}}{114}
|
||||
\entry {\code {menu-complete ()}}{111}
|
||||
\entry {\code {menu-complete-backward ()}}{111}
|
||||
\initial {N}
|
||||
\entry {\code {next-history (C-n)}}{105}
|
||||
\entry {\code {non-incremental-forward-search-history (M-n)}}{105}
|
||||
\entry {\code {non-incremental-reverse-search-history (M-p)}}{105}
|
||||
\entry {\code {next-history (C-n)}}{107}
|
||||
\entry {\code {non-incremental-forward-search-history (M-n)}}{107}
|
||||
\entry {\code {non-incremental-reverse-search-history (M-p)}}{107}
|
||||
\initial {O}
|
||||
\entry {\code {operate-and-get-next (C-o)}}{112}
|
||||
\entry {\code {overwrite-mode ()}}{107}
|
||||
\entry {\code {operate-and-get-next (C-o)}}{114}
|
||||
\entry {\code {overwrite-mode ()}}{109}
|
||||
\initial {P}
|
||||
\entry {\code {possible-command-completions (C-x !)}}{110}
|
||||
\entry {\code {possible-completions (M-?)}}{108}
|
||||
\entry {\code {possible-filename-completions (C-x /)}}{109}
|
||||
\entry {\code {possible-hostname-completions (C-x @)}}{109}
|
||||
\entry {\code {possible-username-completions (C-x ~)}}{109}
|
||||
\entry {\code {possible-variable-completions (C-x $)}}{109}
|
||||
\entry {\code {prefix-meta (\key {ESC})}}{110}
|
||||
\entry {\code {previous-history (C-p)}}{105}
|
||||
\entry {\code {possible-command-completions (C-x !)}}{112}
|
||||
\entry {\code {possible-completions (M-?)}}{110}
|
||||
\entry {\code {possible-filename-completions (C-x /)}}{111}
|
||||
\entry {\code {possible-hostname-completions (C-x @)}}{111}
|
||||
\entry {\code {possible-username-completions (C-x ~)}}{111}
|
||||
\entry {\code {possible-variable-completions (C-x $)}}{111}
|
||||
\entry {\code {prefix-meta (\key {ESC})}}{112}
|
||||
\entry {\code {previous-history (C-p)}}{107}
|
||||
\initial {Q}
|
||||
\entry {\code {quoted-insert (C-q or C-v)}}{106}
|
||||
\entry {\code {quoted-insert (C-q or C-v)}}{108}
|
||||
\initial {R}
|
||||
\entry {\code {re-read-init-file (C-x C-r)}}{110}
|
||||
\entry {\code {redraw-current-line ()}}{104}
|
||||
\entry {\code {reverse-search-history (C-r)}}{105}
|
||||
\entry {\code {revert-line (M-r)}}{110}
|
||||
\entry {\code {re-read-init-file (C-x C-r)}}{112}
|
||||
\entry {\code {redraw-current-line ()}}{106}
|
||||
\entry {\code {reverse-search-history (C-r)}}{107}
|
||||
\entry {\code {revert-line (M-r)}}{112}
|
||||
\initial {S}
|
||||
\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{106}
|
||||
\entry {\code {set-mark (C-@)}}{111}
|
||||
\entry {\code {shell-backward-word ()}}{104}
|
||||
\entry {\code {shell-expand-line (M-C-e)}}{112}
|
||||
\entry {\code {shell-forward-word ()}}{104}
|
||||
\entry {\code {shell-kill-word ()}}{107}
|
||||
\entry {\code {skip-csi-sequence ()}}{111}
|
||||
\entry {\code {start-kbd-macro (C-x ()}}{110}
|
||||
\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{108}
|
||||
\entry {\code {set-mark (C-@)}}{113}
|
||||
\entry {\code {shell-backward-word ()}}{106}
|
||||
\entry {\code {shell-expand-line (M-C-e)}}{114}
|
||||
\entry {\code {shell-forward-word ()}}{106}
|
||||
\entry {\code {shell-kill-word ()}}{109}
|
||||
\entry {\code {skip-csi-sequence ()}}{113}
|
||||
\entry {\code {start-kbd-macro (C-x ()}}{112}
|
||||
\initial {T}
|
||||
\entry {\code {tilde-expand (M-&)}}{111}
|
||||
\entry {\code {transpose-chars (C-t)}}{106}
|
||||
\entry {\code {transpose-words (M-t)}}{106}
|
||||
\entry {\code {tilde-expand (M-&)}}{113}
|
||||
\entry {\code {transpose-chars (C-t)}}{108}
|
||||
\entry {\code {transpose-words (M-t)}}{108}
|
||||
\initial {U}
|
||||
\entry {\code {undo (C-_ or C-x C-u)}}{110}
|
||||
\entry {\code {universal-argument ()}}{108}
|
||||
\entry {\code {unix-filename-rubout ()}}{107}
|
||||
\entry {\code {unix-line-discard (C-u)}}{107}
|
||||
\entry {\code {unix-word-rubout (C-w)}}{107}
|
||||
\entry {\code {upcase-word (M-u)}}{106}
|
||||
\entry {\code {undo (C-_ or C-x C-u)}}{112}
|
||||
\entry {\code {universal-argument ()}}{110}
|
||||
\entry {\code {unix-filename-rubout ()}}{109}
|
||||
\entry {\code {unix-line-discard (C-u)}}{109}
|
||||
\entry {\code {unix-word-rubout (C-w)}}{109}
|
||||
\entry {\code {upcase-word (M-u)}}{108}
|
||||
\initial {Y}
|
||||
\entry {\code {yank (C-y)}}{108}
|
||||
\entry {\code {yank-last-arg (M-. or M-_)}}{106}
|
||||
\entry {\code {yank-nth-arg (M-C-y)}}{105}
|
||||
\entry {\code {yank-pop (M-y)}}{108}
|
||||
\entry {\code {yank (C-y)}}{110}
|
||||
\entry {\code {yank-last-arg (M-. or M-_)}}{108}
|
||||
\entry {\code {yank-nth-arg (M-C-y)}}{107}
|
||||
\entry {\code {yank-pop (M-y)}}{110}
|
||||
|
||||
+33
-9
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on September, 16 2009 by texi2html 1.64 -->
|
||||
<!-- Created on October, 12 2009 by texi2html 1.64 -->
|
||||
<!--
|
||||
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
||||
Karl Berry <karl@freefriends.org>
|
||||
@@ -33,10 +33,10 @@ Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
|
||||
<H1>Bash Reference Manual</H1></P><P>
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.1, 16 September 2009).
|
||||
the Bash shell (version 4.1, 9 October 2009).
|
||||
</P><P>
|
||||
|
||||
This is Edition 4.1, last updated 16 September 2009,
|
||||
This is Edition 4.1, last updated 9 October 2009,
|
||||
of <CITE>The GNU Bash Reference Manual</CITE>,
|
||||
for <CODE>Bash</CODE>, Version 4.1.
|
||||
</P><P>
|
||||
@@ -1318,6 +1318,10 @@ Conditional operators such as <SAMP>`-f'</SAMP> must be unquoted to be recognize
|
||||
as primaries.
|
||||
</P><P>
|
||||
|
||||
When used with <SAMP>`[['</SAMP>, The <SAMP>`<'</SAMP> and <SAMP>`>'</SAMP> operators sort
|
||||
lexicographically using the current locale.
|
||||
</P><P>
|
||||
|
||||
When the <SAMP>`=='</SAMP> and <SAMP>`!='</SAMP> operators are used, the string to the
|
||||
right of the operator is considered a pattern and matched according
|
||||
to the rules described below in <A HREF="bashref.html#SEC37">3.5.8.1 Pattern Matching</A>.
|
||||
@@ -2159,7 +2163,7 @@ is followed by a character that is not to be
|
||||
interpreted as part of its name.
|
||||
</P><P>
|
||||
|
||||
If the first character of <VAR>parameter</VAR> is an exclamation point,
|
||||
If the first character of <VAR>parameter</VAR> is an exclamation point (!),
|
||||
a level of variable indirection is introduced.
|
||||
Bash uses the value of the variable formed from the rest of
|
||||
<VAR>parameter</VAR> as the name of the variable; this variable is then
|
||||
@@ -2794,7 +2798,7 @@ may instead be preceded by a word of the form {<VAR>varname</VAR>}.
|
||||
In this case, for each redirection operator except
|
||||
>&- and <&-, the shell will allocate a file descriptor greater
|
||||
than 10 and assign it to {<VAR>varname</VAR>}. If >&- or <&- is preceded
|
||||
by {<VAR>varname</VAR>}, the value of {<VAR>varname</VAR>} defines the file
|
||||
by {<VAR>varname</VAR>}, the value of <VAR>varname</VAR> defines the file
|
||||
descriptor to close.
|
||||
</P><P>
|
||||
|
||||
@@ -4812,7 +4816,7 @@ non-zero on failure.
|
||||
|
||||
<DT><CODE>read</CODE>
|
||||
<DD><A NAME="IDX103"></A>
|
||||
<TABLE><tr><td> </td><td class=example><pre>read [-ers] [-a <VAR>aname</VAR>] [-d <VAR>delim</VAR>] [-i <VAR>text</VAR>] [-n <VAR>nchars</VAR>] [-p <VAR>prompt</VAR>] [-t <VAR>timeout</VAR>] [-u <VAR>fd</VAR>] [<VAR>name</VAR> <small>...</small>]
|
||||
<TABLE><tr><td> </td><td class=example><pre>read [-ers] [-a <VAR>aname</VAR>] [-d <VAR>delim</VAR>] [-i <VAR>text</VAR>] [-n <VAR>nchars</VAR>] [-N <VAR>nchars</VAR>] [-p <VAR>prompt</VAR>] [-t <VAR>timeout</VAR>] [-u <VAR>fd</VAR>] [<VAR>name</VAR> <small>...</small>]
|
||||
</pre></td></tr></table>One line is read from the standard input, or from the file descriptor
|
||||
<VAR>fd</VAR> supplied as an argument to the <SAMP>`-u'</SAMP> option, and the first word
|
||||
is assigned to the first <VAR>name</VAR>, the second word to the second <VAR>name</VAR>,
|
||||
@@ -4860,7 +4864,14 @@ the editing buffer before editing begins.
|
||||
|
||||
<DT><CODE>-n <VAR>nchars</VAR></CODE>
|
||||
<DD><CODE>read</CODE> returns after reading <VAR>nchars</VAR> characters rather than
|
||||
waiting for a complete line of input.
|
||||
waiting for a complete line of input, but honor a delimiter if fewer
|
||||
than <VAR>nchars</VAR> characters are read before the delimiter.
|
||||
<P>
|
||||
|
||||
<DT><CODE>-N <VAR>nchars</VAR></CODE>
|
||||
<DD><CODE>read</CODE> returns after reading exactly <VAR>nchars</VAR> characters rather
|
||||
than waiting for a complete line of input, unless EOF is encountered or
|
||||
<CODE>read</CODE> times out. Any delimiter is ignored.
|
||||
<P>
|
||||
|
||||
<DT><CODE>-p <VAR>prompt</VAR></CODE>
|
||||
@@ -8621,6 +8632,12 @@ The <CODE>ulimit</CODE> builtin uses a block size of 512 bytes for the <SAMP>`-c
|
||||
and <SAMP>`-f'</SAMP> options.
|
||||
<P>
|
||||
|
||||
<LI>
|
||||
The arrival of <CODE>SIGCHLD</CODE> when a trap is set on <CODE>SIGCHLD</CODE> does
|
||||
not interrupt the <CODE>wait</CODE> builtin and cause it to return immediately.
|
||||
The trap command is run once for each child that exits.
|
||||
<P>
|
||||
|
||||
</OL>
|
||||
<P>
|
||||
|
||||
@@ -9643,6 +9660,13 @@ keypad when it is called. Some systems need this to enable the
|
||||
arrow keys. The default is <SAMP>`off'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>enable-meta-key</CODE>
|
||||
<DD>When set to <SAMP>`on'</SAMP>, Readline will try to enable any meta modifier
|
||||
key the terminal claims to support when it is called. On many terminals,
|
||||
the meta key is used to send eight-bit characters.
|
||||
The default is <SAMP>`on'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>expand-tilde</CODE>
|
||||
<DD><A NAME="IDX316"></A>
|
||||
If set to <SAMP>`on'</SAMP>, tilde expansion is performed when Readline
|
||||
@@ -16019,7 +16043,7 @@ to permit their use in free software.
|
||||
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bashref.html#SEC_About"> ? </A>]</TD>
|
||||
</TR></TABLE>
|
||||
<H1>About this document</H1>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>September, 16 2009</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -16181,7 +16205,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>September, 16 2009</I>
|
||||
by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
+32
-32
@@ -1,4 +1,4 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 16 SEP 2009 21:37
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 12 OCT 2009 10:07
|
||||
**/Users/chet/src/bash/src/doc/bashref.texi
|
||||
(/Users/chet/src/bash/src/doc/bashref.texi (./texinfo.tex
|
||||
Loading texinfo [version 2009-01-18.17]:
|
||||
@@ -193,7 +193,7 @@ textttsl pat-tern@texttt ][]) @textttsl command-list @texttt ;;][] esac[][]
|
||||
[10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24]
|
||||
[25] [26] [27] [28] [29] [30] [31] [32] Chapter 4 [33] [34] [35] [36] [37]
|
||||
[38] [39] [40] [41]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 3294--3307
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 3297--3310
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -206,10 +206,10 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[42] [43] [44] [45] [46]
|
||||
Overfull \hbox (102.08961pt too wide) in paragraph at lines 3719--3719
|
||||
Overfull \hbox (172.34125pt too wide) in paragraph at lines 3722--3722
|
||||
[]@texttt read [-ers] [-a @textttsl aname@texttt ] [-d @textttsl de-lim@texttt
|
||||
] [-i @textttsl text@texttt ] [-n @textttsl nchars@texttt ] [-p @textttsl prom
|
||||
pt@texttt ] [-t @textttsl time-
|
||||
] [-i @textttsl text@texttt ] [-n @textttsl nchars@texttt ] [-N @textttsl ncha
|
||||
rs@texttt ] [-p @textttsl prompt@texttt ] [-t @textttsl time-
|
||||
|
||||
@hbox(7.60416+2.43333)x433.62
|
||||
.@glue(@leftskip) 86.72375
|
||||
@@ -220,7 +220,7 @@ pt@texttt ] [-t @textttsl time-
|
||||
.etc.
|
||||
|
||||
[47] [48] [49] [50] [51] [52] [53] [54] [55]
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4398--4402
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4407--4411
|
||||
[]@textrm Error trac-ing is en-abled: com-mand sub-sti-tu-tion, shell
|
||||
|
||||
@hbox(7.60416+2.12917)x433.62, glue set 2.95305
|
||||
@@ -237,7 +237,7 @@ Underfull \hbox (badness 2573) in paragraph at lines 4398--4402
|
||||
|
||||
[56] [57] [58] Chapter 5 [59] [60] [61] [62] [63] [64] [65] [66] [67] [68]
|
||||
[69] Chapter 6 [70]
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5266--5266
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5275--5275
|
||||
[]@texttt bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@t
|
||||
exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -250,7 +250,7 @@ exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5267--5267
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5276--5276
|
||||
[]@texttt bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@texttt
|
||||
] [-O @textttsl shopt_option@texttt ] -c @textttsl string @texttt [@textttsl ar
|
||||
-
|
||||
@@ -264,7 +264,7 @@ Overfull \hbox (76.23077pt too wide) in paragraph at lines 5267--5267
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5268--5268
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5277--5277
|
||||
[]@texttt bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@text
|
||||
tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -277,7 +277,7 @@ tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
[71] [72]
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5442--5444
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5451--5453
|
||||
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
|
||||
the file
|
||||
|
||||
@@ -290,7 +290,7 @@ the file
|
||||
.etc.
|
||||
|
||||
[73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85]
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6581--6584
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6595--6598
|
||||
@textrm `@texttt --enable-strict-posix-default[]@textrm '[] to @texttt configur
|
||||
e[] @textrm when build-ing (see Sec-tion 10.8
|
||||
|
||||
@@ -302,10 +302,10 @@ e[] @textrm when build-ing (see Sec-tion 10.8
|
||||
.@texttt n
|
||||
.etc.
|
||||
|
||||
Chapter 7 [86] [87] [88] [89]
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8 [90] [91]
|
||||
[92] [93] [94] [95] [96]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 529--545
|
||||
Chapter 7 [86] [87] [88] [89] [90] [91]
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8 [92] [93]
|
||||
[94] [95] [96] [97] [98]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 535--551
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -317,8 +317,8 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.@texttt c
|
||||
.etc.
|
||||
|
||||
[97] [98] [99] [100] [101]
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 865--865
|
||||
[99] [100] [101] [102] [103]
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 871--871
|
||||
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
|
||||
gnored[]
|
||||
|
||||
@@ -330,9 +330,9 @@ gnored[]
|
||||
.@texttt t
|
||||
.etc.
|
||||
|
||||
[102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113]
|
||||
[114]
|
||||
Overfull \hbox (12.05716pt too wide) in paragraph at lines 1783--1783
|
||||
[104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115]
|
||||
[116]
|
||||
Overfull \hbox (12.05716pt too wide) in paragraph at lines 1789--1789
|
||||
[]@texttt complete [-abcdefgjksuv] [-o @textttsl comp-option@texttt ] [-DE] [-
|
||||
A @textttsl ac-tion@texttt ] [-
|
||||
|
||||
@@ -344,8 +344,8 @@ A @textttsl ac-tion@texttt ] [-
|
||||
.@texttt m
|
||||
.etc.
|
||||
|
||||
[115] [116]
|
||||
Underfull \hbox (badness 2753) in paragraph at lines 1893--1896
|
||||
[117] [118]
|
||||
Underfull \hbox (badness 2753) in paragraph at lines 1899--1902
|
||||
@texttt hostname[]@textrm Hostnames, as taken from the file spec-i-fied by
|
||||
|
||||
@hbox(7.60416+2.12917)x433.62, glue set 3.02202
|
||||
@@ -356,9 +356,9 @@ Underfull \hbox (badness 2753) in paragraph at lines 1893--1896
|
||||
.@texttt o
|
||||
.etc.
|
||||
|
||||
[117]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[118] [119] [120] [121] [122]) Chapter 10 [123] [124] [125] [126] [127]
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7182--7186
|
||||
[119]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[120] [121] [122] [123] [124]) Chapter 10 [125] [126] [127] [128] [129]
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7196--7200
|
||||
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
|
||||
s/large_
|
||||
|
||||
@@ -370,18 +370,18 @@ s/large_
|
||||
.@textrm a
|
||||
.etc.
|
||||
|
||||
[128] [129] [130] Appendix A [131] [132] Appendix B [133] [134] [135] [136]
|
||||
[137] [138] [139] Appendix C [140] (./fdl.texi [141] [142] [143] [144] [145]
|
||||
[146] [147]) Appendix D [148] (./bashref.bts) [149] (./bashref.rws)
|
||||
(./bashref.vrs [150] [151]) (./bashref.fns [152] [153]) (./bashref.cps [154])
|
||||
[155] [156] )
|
||||
[130] [131] [132] Appendix A [133] [134] Appendix B [135] [136] [137] [138]
|
||||
[139] [140] [141] Appendix C [142] (./fdl.texi [143] [144] [145] [146] [147]
|
||||
[148] [149]) Appendix D [150] (./bashref.bts) [151] (./bashref.rws)
|
||||
(./bashref.vrs [152] [153]) (./bashref.fns [154] [155]) (./bashref.cps [156])
|
||||
[157] [158] )
|
||||
Here is how much of TeX's memory you used:
|
||||
2078 strings out of 97980
|
||||
28503 string characters out of 1221004
|
||||
65674 words of memory out of 1500000
|
||||
65668 words of memory out of 1500000
|
||||
2894 multiletter control sequences out of 10000+50000
|
||||
32127 words of font info for 112 fonts, out of 1200000 for 2000
|
||||
51 hyphenation exceptions out of 8191
|
||||
16i,6n,14p,315b,699s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
|
||||
Output written on bashref.dvi (162 pages, 661824 bytes).
|
||||
Output written on bashref.dvi (164 pages, 663028 bytes).
|
||||
|
||||
Binary file not shown.
+1699
-1669
File diff suppressed because it is too large
Load Diff
+4
-3
@@ -3648,7 +3648,7 @@ parent.
|
||||
mapfile [-n @var{count}] [-O @var{origin}] [-s @var{count}] [-t] [-u @var{fd}] [
|
||||
-C @var{callback}] [-c @var{quantum}] [@var{array}]
|
||||
@end example
|
||||
Read lines from the standard input into array variable @var{array},
|
||||
Read lines from the standard input into the indexed array variable @var{array},
|
||||
or from file descriptor @var{fd}
|
||||
if the @option{-u} option is supplied.
|
||||
The variable @code{MAPFILE} is the default @var{array}.
|
||||
@@ -3684,7 +3684,8 @@ If not supplied with an explicit origin, @code{mapfile} will clear @var{array}
|
||||
before assigning to it.
|
||||
|
||||
@code{mapfile} returns successfully unless an invalid option or option
|
||||
argument is supplied, or @var{array} is invalid or unassignable.
|
||||
argument is supplied, @var{array} is invalid or unassignable, or @var{array}
|
||||
is not an indexed array.
|
||||
|
||||
@item printf
|
||||
@btindex printf
|
||||
@@ -3808,7 +3809,7 @@ Read input from file descriptor @var{fd}.
|
||||
readarray [-n @var{count}] [-O @var{origin}] [-s @var{count}] [-t] [-u @var{fd}] [
|
||||
-C @var{callback}] [-c @var{quantum}] [@var{array}]
|
||||
@end example
|
||||
Read lines from the standard input into array variable @var{array},
|
||||
Read lines from the standard input into the indexed array variable @var{array},
|
||||
or from file descriptor @var{fd}
|
||||
if the @option{-u} option is supplied.
|
||||
|
||||
|
||||
+8
-2
@@ -3719,7 +3719,7 @@ non-zero on failure.
|
||||
@item read
|
||||
@btindex read
|
||||
@example
|
||||
read [-ers] [-a @var{aname}] [-d @var{delim}] [-i @var{text}] [-n @var{nchars}] [-p @var{prompt}] [-t @var{timeout}] [-u @var{fd}] [@var{name} @dots{}]
|
||||
read [-ers] [-a @var{aname}] [-d @var{delim}] [-i @var{text}] [-n @var{nchars}] [-N @var{nchars}] [-p @var{prompt}] [-t @var{timeout}] [-u @var{fd}] [@var{name} @dots{}]
|
||||
@end example
|
||||
One line is read from the standard input, or from the file descriptor
|
||||
@var{fd} supplied as an argument to the @option{-u} option, and the first word
|
||||
@@ -3762,7 +3762,13 @@ the editing buffer before editing begins.
|
||||
|
||||
@item -n @var{nchars}
|
||||
@code{read} returns after reading @var{nchars} characters rather than
|
||||
waiting for a complete line of input.
|
||||
waiting for a complete line of input, but honor a delimiter if fewer
|
||||
than @var{nchars} characters are read before the delimiter.
|
||||
|
||||
@item -N @var{nchars}
|
||||
@code{read} returns after reading exactly @var{nchars} characters rather
|
||||
than waiting for a complete line of input, unless EOF is encountered or
|
||||
@code{read} times out. Any delimiter is ignored.
|
||||
|
||||
@item -p @var{prompt}
|
||||
Display @var{prompt}, without a trailing newline, before attempting
|
||||
|
||||
+56
-56
@@ -20,14 +20,14 @@
|
||||
@numsubsubsecentry{Looping Constructs}{3.2.4.1}{Looping Constructs}{9}
|
||||
@numsubsubsecentry{Conditional Constructs}{3.2.4.2}{Conditional Constructs}{10}
|
||||
@numsubsubsecentry{Grouping Commands}{3.2.4.3}{Command Grouping}{13}
|
||||
@numsubsecentry{Coprocesses}{3.2.5}{Coprocesses}{13}
|
||||
@numsubsecentry{Coprocesses}{3.2.5}{Coprocesses}{14}
|
||||
@numsecentry{Shell Functions}{3.3}{Shell Functions}{14}
|
||||
@numsecentry{Shell Parameters}{3.4}{Shell Parameters}{15}
|
||||
@numsubsecentry{Positional Parameters}{3.4.1}{Positional Parameters}{16}
|
||||
@numsubsecentry{Special Parameters}{3.4.2}{Special Parameters}{16}
|
||||
@numsecentry{Shell Expansions}{3.5}{Shell Expansions}{17}
|
||||
@numsubsecentry{Brace Expansion}{3.5.1}{Brace Expansion}{18}
|
||||
@numsubsecentry{Tilde Expansion}{3.5.2}{Tilde Expansion}{18}
|
||||
@numsubsecentry{Tilde Expansion}{3.5.2}{Tilde Expansion}{19}
|
||||
@numsubsecentry{Shell Parameter Expansion}{3.5.3}{Shell Parameter Expansion}{19}
|
||||
@numsubsecentry{Command Substitution}{3.5.4}{Command Substitution}{22}
|
||||
@numsubsecentry{Arithmetic Expansion}{3.5.5}{Arithmetic Expansion}{23}
|
||||
@@ -81,57 +81,57 @@
|
||||
@numsecentry{Controlling the Prompt}{6.9}{Printing a Prompt}{82}
|
||||
@numsecentry{The Restricted Shell}{6.10}{The Restricted Shell}{84}
|
||||
@numsecentry{Bash POSIX Mode}{6.11}{Bash POSIX Mode}{84}
|
||||
@numchapentry{Job Control}{7}{Job Control}{87}
|
||||
@numsecentry{Job Control Basics}{7.1}{Job Control Basics}{87}
|
||||
@numsecentry{Job Control Builtins}{7.2}{Job Control Builtins}{88}
|
||||
@numsecentry{Job Control Variables}{7.3}{Job Control Variables}{90}
|
||||
@numchapentry{Command Line Editing}{8}{Command Line Editing}{91}
|
||||
@numsecentry{Introduction to Line Editing}{8.1}{Introduction and Notation}{91}
|
||||
@numsecentry{Readline Interaction}{8.2}{Readline Interaction}{91}
|
||||
@numsubsecentry{Readline Bare Essentials}{8.2.1}{Readline Bare Essentials}{92}
|
||||
@numsubsecentry{Readline Movement Commands}{8.2.2}{Readline Movement Commands}{92}
|
||||
@numsubsecentry{Readline Killing Commands}{8.2.3}{Readline Killing Commands}{93}
|
||||
@numsubsecentry{Readline Arguments}{8.2.4}{Readline Arguments}{93}
|
||||
@numsubsecentry{Searching for Commands in the History}{8.2.5}{Searching}{93}
|
||||
@numsecentry{Readline Init File}{8.3}{Readline Init File}{94}
|
||||
@numsubsecentry{Readline Init File Syntax}{8.3.1}{Readline Init File Syntax}{94}
|
||||
@numsubsecentry{Conditional Init Constructs}{8.3.2}{Conditional Init Constructs}{100}
|
||||
@numsubsecentry{Sample Init File}{8.3.3}{Sample Init File}{101}
|
||||
@numsecentry{Bindable Readline Commands}{8.4}{Bindable Readline Commands}{104}
|
||||
@numsubsecentry{Commands For Moving}{8.4.1}{Commands For Moving}{104}
|
||||
@numsubsecentry{Commands For Manipulating The History}{8.4.2}{Commands For History}{105}
|
||||
@numsubsecentry{Commands For Changing Text}{8.4.3}{Commands For Text}{106}
|
||||
@numsubsecentry{Killing And Yanking}{8.4.4}{Commands For Killing}{107}
|
||||
@numsubsecentry{Specifying Numeric Arguments}{8.4.5}{Numeric Arguments}{108}
|
||||
@numsubsecentry{Letting Readline Type For You}{8.4.6}{Commands For Completion}{108}
|
||||
@numsubsecentry{Keyboard Macros}{8.4.7}{Keyboard Macros}{110}
|
||||
@numsubsecentry{Some Miscellaneous Commands}{8.4.8}{Miscellaneous Commands}{110}
|
||||
@numsecentry{Readline vi Mode}{8.5}{Readline vi Mode}{112}
|
||||
@numsecentry{Programmable Completion}{8.6}{Programmable Completion}{113}
|
||||
@numsecentry{Programmable Completion Builtins}{8.7}{Programmable Completion Builtins}{115}
|
||||
@numchapentry{Using History Interactively}{9}{Using History Interactively}{119}
|
||||
@numsecentry{Bash History Facilities}{9.1}{Bash History Facilities}{119}
|
||||
@numsecentry{Bash History Builtins}{9.2}{Bash History Builtins}{119}
|
||||
@numsecentry{History Expansion}{9.3}{History Interaction}{121}
|
||||
@numsubsecentry{Event Designators}{9.3.1}{Event Designators}{121}
|
||||
@numsubsecentry{Word Designators}{9.3.2}{Word Designators}{122}
|
||||
@numsubsecentry{Modifiers}{9.3.3}{Modifiers}{123}
|
||||
@numchapentry{Installing Bash}{10}{Installing Bash}{125}
|
||||
@numsecentry{Basic Installation}{10.1}{Basic Installation}{125}
|
||||
@numsecentry{Compilers and Options}{10.2}{Compilers and Options}{126}
|
||||
@numsecentry{Compiling For Multiple Architectures}{10.3}{Compiling For Multiple Architectures}{126}
|
||||
@numsecentry{Installation Names}{10.4}{Installation Names}{126}
|
||||
@numsecentry{Specifying the System Type}{10.5}{Specifying the System Type}{126}
|
||||
@numsecentry{Sharing Defaults}{10.6}{Sharing Defaults}{127}
|
||||
@numsecentry{Operation Controls}{10.7}{Operation Controls}{127}
|
||||
@numsecentry{Optional Features}{10.8}{Optional Features}{127}
|
||||
@appentry{Reporting Bugs}{A}{Reporting Bugs}{133}
|
||||
@appentry{Major Differences From The Bourne Shell}{B}{Major Differences From The Bourne Shell}{135}
|
||||
@appsecentry{Implementation Differences From The SVR4.2 Shell}{B.1}{}{139}
|
||||
@appentry{GNU Free Documentation License}{C}{GNU Free Documentation License}{141}
|
||||
@appentry{Indexes}{D}{Indexes}{149}
|
||||
@appsecentry{Index of Shell Builtin Commands}{D.1}{Builtin Index}{149}
|
||||
@appsecentry{Index of Shell Reserved Words}{D.2}{Reserved Word Index}{150}
|
||||
@appsecentry{Parameter and Variable Index}{D.3}{Variable Index}{150}
|
||||
@appsecentry{Function Index}{D.4}{Function Index}{152}
|
||||
@appsecentry{Concept Index}{D.5}{Concept Index}{154}
|
||||
@numchapentry{Job Control}{7}{Job Control}{89}
|
||||
@numsecentry{Job Control Basics}{7.1}{Job Control Basics}{89}
|
||||
@numsecentry{Job Control Builtins}{7.2}{Job Control Builtins}{90}
|
||||
@numsecentry{Job Control Variables}{7.3}{Job Control Variables}{92}
|
||||
@numchapentry{Command Line Editing}{8}{Command Line Editing}{93}
|
||||
@numsecentry{Introduction to Line Editing}{8.1}{Introduction and Notation}{93}
|
||||
@numsecentry{Readline Interaction}{8.2}{Readline Interaction}{93}
|
||||
@numsubsecentry{Readline Bare Essentials}{8.2.1}{Readline Bare Essentials}{94}
|
||||
@numsubsecentry{Readline Movement Commands}{8.2.2}{Readline Movement Commands}{94}
|
||||
@numsubsecentry{Readline Killing Commands}{8.2.3}{Readline Killing Commands}{95}
|
||||
@numsubsecentry{Readline Arguments}{8.2.4}{Readline Arguments}{95}
|
||||
@numsubsecentry{Searching for Commands in the History}{8.2.5}{Searching}{95}
|
||||
@numsecentry{Readline Init File}{8.3}{Readline Init File}{96}
|
||||
@numsubsecentry{Readline Init File Syntax}{8.3.1}{Readline Init File Syntax}{96}
|
||||
@numsubsecentry{Conditional Init Constructs}{8.3.2}{Conditional Init Constructs}{102}
|
||||
@numsubsecentry{Sample Init File}{8.3.3}{Sample Init File}{103}
|
||||
@numsecentry{Bindable Readline Commands}{8.4}{Bindable Readline Commands}{106}
|
||||
@numsubsecentry{Commands For Moving}{8.4.1}{Commands For Moving}{106}
|
||||
@numsubsecentry{Commands For Manipulating The History}{8.4.2}{Commands For History}{107}
|
||||
@numsubsecentry{Commands For Changing Text}{8.4.3}{Commands For Text}{108}
|
||||
@numsubsecentry{Killing And Yanking}{8.4.4}{Commands For Killing}{109}
|
||||
@numsubsecentry{Specifying Numeric Arguments}{8.4.5}{Numeric Arguments}{110}
|
||||
@numsubsecentry{Letting Readline Type For You}{8.4.6}{Commands For Completion}{110}
|
||||
@numsubsecentry{Keyboard Macros}{8.4.7}{Keyboard Macros}{112}
|
||||
@numsubsecentry{Some Miscellaneous Commands}{8.4.8}{Miscellaneous Commands}{112}
|
||||
@numsecentry{Readline vi Mode}{8.5}{Readline vi Mode}{114}
|
||||
@numsecentry{Programmable Completion}{8.6}{Programmable Completion}{115}
|
||||
@numsecentry{Programmable Completion Builtins}{8.7}{Programmable Completion Builtins}{117}
|
||||
@numchapentry{Using History Interactively}{9}{Using History Interactively}{121}
|
||||
@numsecentry{Bash History Facilities}{9.1}{Bash History Facilities}{121}
|
||||
@numsecentry{Bash History Builtins}{9.2}{Bash History Builtins}{121}
|
||||
@numsecentry{History Expansion}{9.3}{History Interaction}{123}
|
||||
@numsubsecentry{Event Designators}{9.3.1}{Event Designators}{123}
|
||||
@numsubsecentry{Word Designators}{9.3.2}{Word Designators}{124}
|
||||
@numsubsecentry{Modifiers}{9.3.3}{Modifiers}{125}
|
||||
@numchapentry{Installing Bash}{10}{Installing Bash}{127}
|
||||
@numsecentry{Basic Installation}{10.1}{Basic Installation}{127}
|
||||
@numsecentry{Compilers and Options}{10.2}{Compilers and Options}{128}
|
||||
@numsecentry{Compiling For Multiple Architectures}{10.3}{Compiling For Multiple Architectures}{128}
|
||||
@numsecentry{Installation Names}{10.4}{Installation Names}{128}
|
||||
@numsecentry{Specifying the System Type}{10.5}{Specifying the System Type}{128}
|
||||
@numsecentry{Sharing Defaults}{10.6}{Sharing Defaults}{129}
|
||||
@numsecentry{Operation Controls}{10.7}{Operation Controls}{129}
|
||||
@numsecentry{Optional Features}{10.8}{Optional Features}{129}
|
||||
@appentry{Reporting Bugs}{A}{Reporting Bugs}{135}
|
||||
@appentry{Major Differences From The Bourne Shell}{B}{Major Differences From The Bourne Shell}{137}
|
||||
@appsecentry{Implementation Differences From The SVR4.2 Shell}{B.1}{}{141}
|
||||
@appentry{GNU Free Documentation License}{C}{GNU Free Documentation License}{143}
|
||||
@appentry{Indexes}{D}{Indexes}{151}
|
||||
@appsecentry{Index of Shell Builtin Commands}{D.1}{Builtin Index}{151}
|
||||
@appsecentry{Index of Shell Reserved Words}{D.2}{Reserved Word Index}{152}
|
||||
@appsecentry{Parameter and Variable Index}{D.3}{Variable Index}{152}
|
||||
@appsecentry{Function Index}{D.4}{Function Index}{154}
|
||||
@appsecentry{Concept Index}{D.5}{Concept Index}{156}
|
||||
|
||||
+28
-28
@@ -98,31 +98,31 @@
|
||||
\entry{TMOUT}{69}{\code {TMOUT}}
|
||||
\entry{TMPDIR}{70}{\code {TMPDIR}}
|
||||
\entry{UID}{70}{\code {UID}}
|
||||
\entry{auto_resume}{90}{\code {auto_resume}}
|
||||
\entry{bell-style}{95}{\code {bell-style}}
|
||||
\entry{bind-tty-special-chars}{95}{\code {bind-tty-special-chars}}
|
||||
\entry{comment-begin}{95}{\code {comment-begin}}
|
||||
\entry{completion-prefix-display-length}{95}{\code {completion-prefix-display-length}}
|
||||
\entry{completion-query-items}{95}{\code {completion-query-items}}
|
||||
\entry{convert-meta}{96}{\code {convert-meta}}
|
||||
\entry{disable-completion}{96}{\code {disable-completion}}
|
||||
\entry{editing-mode}{96}{\code {editing-mode}}
|
||||
\entry{enable-keypad}{96}{\code {enable-keypad}}
|
||||
\entry{expand-tilde}{96}{\code {expand-tilde}}
|
||||
\entry{history-preserve-point}{96}{\code {history-preserve-point}}
|
||||
\entry{history-size}{96}{\code {history-size}}
|
||||
\entry{horizontal-scroll-mode}{96}{\code {horizontal-scroll-mode}}
|
||||
\entry{input-meta}{96}{\code {input-meta}}
|
||||
\entry{meta-flag}{96}{\code {meta-flag}}
|
||||
\entry{isearch-terminators}{97}{\code {isearch-terminators}}
|
||||
\entry{keymap}{97}{\code {keymap}}
|
||||
\entry{mark-modified-lines}{97}{\code {mark-modified-lines}}
|
||||
\entry{mark-symlinked-directories}{97}{\code {mark-symlinked-directories}}
|
||||
\entry{match-hidden-files}{97}{\code {match-hidden-files}}
|
||||
\entry{output-meta}{97}{\code {output-meta}}
|
||||
\entry{page-completions}{97}{\code {page-completions}}
|
||||
\entry{revert-all-at-newline}{98}{\code {revert-all-at-newline}}
|
||||
\entry{show-all-if-ambiguous}{98}{\code {show-all-if-ambiguous}}
|
||||
\entry{show-all-if-unmodified}{98}{\code {show-all-if-unmodified}}
|
||||
\entry{skip-completed-text}{98}{\code {skip-completed-text}}
|
||||
\entry{visible-stats}{98}{\code {visible-stats}}
|
||||
\entry{auto_resume}{92}{\code {auto_resume}}
|
||||
\entry{bell-style}{97}{\code {bell-style}}
|
||||
\entry{bind-tty-special-chars}{97}{\code {bind-tty-special-chars}}
|
||||
\entry{comment-begin}{97}{\code {comment-begin}}
|
||||
\entry{completion-prefix-display-length}{97}{\code {completion-prefix-display-length}}
|
||||
\entry{completion-query-items}{97}{\code {completion-query-items}}
|
||||
\entry{convert-meta}{98}{\code {convert-meta}}
|
||||
\entry{disable-completion}{98}{\code {disable-completion}}
|
||||
\entry{editing-mode}{98}{\code {editing-mode}}
|
||||
\entry{enable-keypad}{98}{\code {enable-keypad}}
|
||||
\entry{expand-tilde}{98}{\code {expand-tilde}}
|
||||
\entry{history-preserve-point}{98}{\code {history-preserve-point}}
|
||||
\entry{history-size}{98}{\code {history-size}}
|
||||
\entry{horizontal-scroll-mode}{98}{\code {horizontal-scroll-mode}}
|
||||
\entry{input-meta}{99}{\code {input-meta}}
|
||||
\entry{meta-flag}{99}{\code {meta-flag}}
|
||||
\entry{isearch-terminators}{99}{\code {isearch-terminators}}
|
||||
\entry{keymap}{99}{\code {keymap}}
|
||||
\entry{mark-modified-lines}{99}{\code {mark-modified-lines}}
|
||||
\entry{mark-symlinked-directories}{99}{\code {mark-symlinked-directories}}
|
||||
\entry{match-hidden-files}{99}{\code {match-hidden-files}}
|
||||
\entry{output-meta}{99}{\code {output-meta}}
|
||||
\entry{page-completions}{99}{\code {page-completions}}
|
||||
\entry{revert-all-at-newline}{100}{\code {revert-all-at-newline}}
|
||||
\entry{show-all-if-ambiguous}{100}{\code {show-all-if-ambiguous}}
|
||||
\entry{show-all-if-unmodified}{100}{\code {show-all-if-unmodified}}
|
||||
\entry{skip-completed-text}{100}{\code {skip-completed-text}}
|
||||
\entry{visible-stats}{100}{\code {visible-stats}}
|
||||
|
||||
+28
-28
@@ -17,7 +17,7 @@
|
||||
\initial {0}
|
||||
\entry {\code {0}}{17}
|
||||
\initial {A}
|
||||
\entry {\code {auto_resume}}{90}
|
||||
\entry {\code {auto_resume}}{92}
|
||||
\initial {B}
|
||||
\entry {\code {BASH}}{61}
|
||||
\entry {\code {BASH_ALIASES}}{62}
|
||||
@@ -36,12 +36,12 @@
|
||||
\entry {\code {BASH_XTRACEFD}}{63}
|
||||
\entry {\code {BASHOPTS}}{62}
|
||||
\entry {\code {BASHPID}}{62}
|
||||
\entry {\code {bell-style}}{95}
|
||||
\entry {\code {bind-tty-special-chars}}{95}
|
||||
\entry {\code {bell-style}}{97}
|
||||
\entry {\code {bind-tty-special-chars}}{97}
|
||||
\initial {C}
|
||||
\entry {\code {CDPATH}}{61}
|
||||
\entry {\code {COLUMNS}}{64}
|
||||
\entry {\code {comment-begin}}{95}
|
||||
\entry {\code {comment-begin}}{97}
|
||||
\entry {\code {COMP_CWORD}}{64}
|
||||
\entry {\code {COMP_KEY}}{64}
|
||||
\entry {\code {COMP_LINE}}{64}
|
||||
@@ -49,19 +49,19 @@
|
||||
\entry {\code {COMP_TYPE}}{64}
|
||||
\entry {\code {COMP_WORDBREAKS}}{64}
|
||||
\entry {\code {COMP_WORDS}}{64}
|
||||
\entry {\code {completion-prefix-display-length}}{95}
|
||||
\entry {\code {completion-query-items}}{95}
|
||||
\entry {\code {completion-prefix-display-length}}{97}
|
||||
\entry {\code {completion-query-items}}{97}
|
||||
\entry {\code {COMPREPLY}}{65}
|
||||
\entry {\code {convert-meta}}{96}
|
||||
\entry {\code {convert-meta}}{98}
|
||||
\initial {D}
|
||||
\entry {\code {DIRSTACK}}{65}
|
||||
\entry {\code {disable-completion}}{96}
|
||||
\entry {\code {disable-completion}}{98}
|
||||
\initial {E}
|
||||
\entry {\code {editing-mode}}{96}
|
||||
\entry {\code {editing-mode}}{98}
|
||||
\entry {\code {EMACS}}{65}
|
||||
\entry {\code {enable-keypad}}{96}
|
||||
\entry {\code {enable-keypad}}{98}
|
||||
\entry {\code {EUID}}{65}
|
||||
\entry {\code {expand-tilde}}{96}
|
||||
\entry {\code {expand-tilde}}{98}
|
||||
\initial {F}
|
||||
\entry {\code {FCEDIT}}{65}
|
||||
\entry {\code {FIGNORE}}{65}
|
||||
@@ -76,23 +76,23 @@
|
||||
\entry {\code {HISTFILE}}{66}
|
||||
\entry {\code {HISTFILESIZE}}{66}
|
||||
\entry {\code {HISTIGNORE}}{66}
|
||||
\entry {\code {history-preserve-point}}{96}
|
||||
\entry {\code {history-size}}{96}
|
||||
\entry {\code {history-preserve-point}}{98}
|
||||
\entry {\code {history-size}}{98}
|
||||
\entry {\code {HISTSIZE}}{66}
|
||||
\entry {\code {HISTTIMEFORMAT}}{66}
|
||||
\entry {\code {HOME}}{61}
|
||||
\entry {\code {horizontal-scroll-mode}}{96}
|
||||
\entry {\code {horizontal-scroll-mode}}{98}
|
||||
\entry {\code {HOSTFILE}}{67}
|
||||
\entry {\code {HOSTNAME}}{67}
|
||||
\entry {\code {HOSTTYPE}}{67}
|
||||
\initial {I}
|
||||
\entry {\code {IFS}}{61}
|
||||
\entry {\code {IGNOREEOF}}{67}
|
||||
\entry {\code {input-meta}}{96}
|
||||
\entry {\code {input-meta}}{99}
|
||||
\entry {\code {INPUTRC}}{67}
|
||||
\entry {\code {isearch-terminators}}{97}
|
||||
\entry {\code {isearch-terminators}}{99}
|
||||
\initial {K}
|
||||
\entry {\code {keymap}}{97}
|
||||
\entry {\code {keymap}}{99}
|
||||
\initial {L}
|
||||
\entry {\code {LANG}}{67}
|
||||
\entry {\code {LC_ALL}}{67}
|
||||
@@ -107,19 +107,19 @@
|
||||
\entry {\code {MAIL}}{61}
|
||||
\entry {\code {MAILCHECK}}{68}
|
||||
\entry {\code {MAILPATH}}{61}
|
||||
\entry {\code {mark-modified-lines}}{97}
|
||||
\entry {\code {mark-symlinked-directories}}{97}
|
||||
\entry {\code {match-hidden-files}}{97}
|
||||
\entry {\code {meta-flag}}{96}
|
||||
\entry {\code {mark-modified-lines}}{99}
|
||||
\entry {\code {mark-symlinked-directories}}{99}
|
||||
\entry {\code {match-hidden-files}}{99}
|
||||
\entry {\code {meta-flag}}{99}
|
||||
\initial {O}
|
||||
\entry {\code {OLDPWD}}{68}
|
||||
\entry {\code {OPTARG}}{61}
|
||||
\entry {\code {OPTERR}}{68}
|
||||
\entry {\code {OPTIND}}{61}
|
||||
\entry {\code {OSTYPE}}{68}
|
||||
\entry {\code {output-meta}}{97}
|
||||
\entry {\code {output-meta}}{99}
|
||||
\initial {P}
|
||||
\entry {\code {page-completions}}{97}
|
||||
\entry {\code {page-completions}}{99}
|
||||
\entry {\code {PATH}}{61}
|
||||
\entry {\code {PIPESTATUS}}{68}
|
||||
\entry {\code {POSIXLY_CORRECT}}{68}
|
||||
@@ -134,15 +134,15 @@
|
||||
\initial {R}
|
||||
\entry {\code {RANDOM}}{68}
|
||||
\entry {\code {REPLY}}{68}
|
||||
\entry {\code {revert-all-at-newline}}{98}
|
||||
\entry {\code {revert-all-at-newline}}{100}
|
||||
\initial {S}
|
||||
\entry {\code {SECONDS}}{69}
|
||||
\entry {\code {SHELL}}{69}
|
||||
\entry {\code {SHELLOPTS}}{69}
|
||||
\entry {\code {SHLVL}}{69}
|
||||
\entry {\code {show-all-if-ambiguous}}{98}
|
||||
\entry {\code {show-all-if-unmodified}}{98}
|
||||
\entry {\code {skip-completed-text}}{98}
|
||||
\entry {\code {show-all-if-ambiguous}}{100}
|
||||
\entry {\code {show-all-if-unmodified}}{100}
|
||||
\entry {\code {skip-completed-text}}{100}
|
||||
\initial {T}
|
||||
\entry {\code {TEXTDOMAIN}}{7}
|
||||
\entry {\code {TEXTDOMAINDIR}}{7}
|
||||
@@ -152,4 +152,4 @@
|
||||
\initial {U}
|
||||
\entry {\code {UID}}{70}
|
||||
\initial {V}
|
||||
\entry {\code {visible-stats}}{98}
|
||||
\entry {\code {visible-stats}}{100}
|
||||
|
||||
+304
-297
@@ -859,8 +859,8 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
occurs while reading the name of the current directory or an
|
||||
invalid option is supplied.
|
||||
|
||||
rreeaadd [--eerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [--ii _t_e_x_t] [--nn _n_c_h_a_r_s] [--pp _p_r_o_m_p_t] [--tt
|
||||
_t_i_m_e_o_u_t] [--uu _f_d] [_n_a_m_e ...]
|
||||
rreeaadd [--eerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [--ii _t_e_x_t] [--nn _n_c_h_a_r_s] [--NN _n_c_h_a_r_s] [--pp
|
||||
_p_r_o_m_p_t] [--tt _t_i_m_e_o_u_t] [--uu _f_d] [_n_a_m_e ...]
|
||||
One line is read from the standard input, or from the file
|
||||
descriptor _f_d supplied as an argument to the --uu option, and the
|
||||
first word is assigned to the first _n_a_m_e, the second word to the
|
||||
@@ -889,112 +889,119 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
placed into the editing buffer before editing begins.
|
||||
--nn _n_c_h_a_r_s
|
||||
rreeaadd returns after reading _n_c_h_a_r_s characters rather than
|
||||
waiting for a complete line of input.
|
||||
waiting for a complete line of input, but honor a delim-
|
||||
iter if fewer than _n_c_h_a_r_s characters are read before the
|
||||
delimiter.
|
||||
--NN _n_c_h_a_r_s
|
||||
rreeaadd returns after reading exactly _n_c_h_a_r_s characters
|
||||
rather than waiting for a complete line of input, unless
|
||||
EOF is encountered or rreeaadd times out. Any delimiter is
|
||||
ignored.
|
||||
--pp _p_r_o_m_p_t
|
||||
Display _p_r_o_m_p_t on standard error, without a trailing new-
|
||||
line, before attempting to read any input. The prompt is
|
||||
displayed only if input is coming from a terminal.
|
||||
--rr Backslash does not act as an escape character. The back-
|
||||
slash is considered to be part of the line. In particu-
|
||||
lar, a backslash-newline pair may not be used as a line
|
||||
slash is considered to be part of the line. In particu-
|
||||
lar, a backslash-newline pair may not be used as a line
|
||||
continuation.
|
||||
--ss Silent mode. If input is coming from a terminal, charac-
|
||||
ters are not echoed.
|
||||
--tt _t_i_m_e_o_u_t
|
||||
Cause rreeaadd to time out and return failure if a complete
|
||||
line of input is not read within _t_i_m_e_o_u_t seconds. _t_i_m_e_-
|
||||
_o_u_t may be a decimal number with a fractional portion
|
||||
following the decimal point. This option is only effec-
|
||||
tive if rreeaadd is reading input from a terminal, pipe, or
|
||||
other special file; it has no effect when reading from
|
||||
regular files. If _t_i_m_e_o_u_t is 0, rreeaadd returns success if
|
||||
input is available on the specified file descriptor,
|
||||
failure otherwise. The exit status is greater than 128
|
||||
Cause rreeaadd to time out and return failure if a complete
|
||||
line of input is not read within _t_i_m_e_o_u_t seconds. _t_i_m_e_-
|
||||
_o_u_t may be a decimal number with a fractional portion
|
||||
following the decimal point. This option is only effec-
|
||||
tive if rreeaadd is reading input from a terminal, pipe, or
|
||||
other special file; it has no effect when reading from
|
||||
regular files. If _t_i_m_e_o_u_t is 0, rreeaadd returns success if
|
||||
input is available on the specified file descriptor,
|
||||
failure otherwise. The exit status is greater than 128
|
||||
if the timeout is exceeded.
|
||||
--uu _f_d Read input from file descriptor _f_d.
|
||||
|
||||
If no _n_a_m_e_s are supplied, the line read is assigned to the vari-
|
||||
able RREEPPLLYY. The return code is zero, unless end-of-file is
|
||||
encountered, rreeaadd times out (in which case the return code is
|
||||
greater than 128), or an invalid file descriptor is supplied as
|
||||
able RREEPPLLYY. The return code is zero, unless end-of-file is
|
||||
encountered, rreeaadd times out (in which case the return code is
|
||||
greater than 128), or an invalid file descriptor is supplied as
|
||||
the argument to --uu.
|
||||
|
||||
rreeaaddoonnllyy [--aaAAppff] [_n_a_m_e[=_w_o_r_d] ...]
|
||||
The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s
|
||||
may not be changed by subsequent assignment. If the --ff option
|
||||
is supplied, the functions corresponding to the _n_a_m_e_s are so
|
||||
marked. The --aa option restricts the variables to indexed
|
||||
arrays; the --AA option restricts the variables to associative
|
||||
arrays. If no _n_a_m_e arguments are given, or if the --pp option is
|
||||
supplied, a list of all readonly names is printed. The --pp
|
||||
option causes output to be displayed in a format that may be
|
||||
reused as input. If a variable name is followed by =_w_o_r_d, the
|
||||
value of the variable is set to _w_o_r_d. The return status is 0
|
||||
The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s
|
||||
may not be changed by subsequent assignment. If the --ff option
|
||||
is supplied, the functions corresponding to the _n_a_m_e_s are so
|
||||
marked. The --aa option restricts the variables to indexed
|
||||
arrays; the --AA option restricts the variables to associative
|
||||
arrays. If no _n_a_m_e arguments are given, or if the --pp option is
|
||||
supplied, a list of all readonly names is printed. The --pp
|
||||
option causes output to be displayed in a format that may be
|
||||
reused as input. If a variable name is followed by =_w_o_r_d, the
|
||||
value of the variable is set to _w_o_r_d. The return status is 0
|
||||
unless an invalid option is encountered, one of the _n_a_m_e_s is not
|
||||
a valid shell variable name, or --ff is supplied with a _n_a_m_e that
|
||||
a valid shell variable name, or --ff is supplied with a _n_a_m_e that
|
||||
is not a function.
|
||||
|
||||
rreettuurrnn [_n]
|
||||
Causes a function to exit with the return value specified by _n.
|
||||
If _n is omitted, the return status is that of the last command
|
||||
executed in the function body. If used outside a function, but
|
||||
during execution of a script by the .. (ssoouurrccee) command, it
|
||||
Causes a function to exit with the return value specified by _n.
|
||||
If _n is omitted, the return status is that of the last command
|
||||
executed in the function body. If used outside a function, but
|
||||
during execution of a script by the .. (ssoouurrccee) command, it
|
||||
causes the shell to stop executing that script and return either
|
||||
_n or the exit status of the last command executed within the
|
||||
script as the exit status of the script. If used outside a
|
||||
function and not during execution of a script by .., the return
|
||||
_n or the exit status of the last command executed within the
|
||||
script as the exit status of the script. If used outside a
|
||||
function and not during execution of a script by .., the return
|
||||
status is false. Any command associated with the RREETTUURRNN trap is
|
||||
executed before execution resumes after the function or script.
|
||||
executed before execution resumes after the function or script.
|
||||
|
||||
sseett [----aabbeeffhhkkmmnnppttuuvvxxBBCCEEHHPPTT] [--oo _o_p_t_i_o_n] [_a_r_g ...]
|
||||
sseett [++aabbeeffhhkkmmnnppttuuvvxxBBCCEEHHPPTT] [++oo _o_p_t_i_o_n] [_a_r_g ...]
|
||||
Without options, the name and value of each shell variable are
|
||||
Without options, the name and value of each shell variable are
|
||||
displayed in a format that can be reused as input for setting or
|
||||
resetting the currently-set variables. Read-only variables can-
|
||||
not be reset. In _p_o_s_i_x _m_o_d_e, only shell variables are listed.
|
||||
The output is sorted according to the current locale. When
|
||||
options are specified, they set or unset shell attributes. Any
|
||||
arguments remaining after option processing are treated as val-
|
||||
not be reset. In _p_o_s_i_x _m_o_d_e, only shell variables are listed.
|
||||
The output is sorted according to the current locale. When
|
||||
options are specified, they set or unset shell attributes. Any
|
||||
arguments remaining after option processing are treated as val-
|
||||
ues for the positional parameters and are assigned, in order, to
|
||||
$$11, $$22, ...... $$_n. Options, if specified, have the following
|
||||
$$11, $$22, ...... $$_n. Options, if specified, have the following
|
||||
meanings:
|
||||
--aa Automatically mark variables and functions which are
|
||||
modified or created for export to the environment of
|
||||
--aa Automatically mark variables and functions which are
|
||||
modified or created for export to the environment of
|
||||
subsequent commands.
|
||||
--bb Report the status of terminated background jobs immedi-
|
||||
--bb Report the status of terminated background jobs immedi-
|
||||
ately, rather than before the next primary prompt. This
|
||||
is effective only when job control is enabled.
|
||||
--ee Exit immediately if a _p_i_p_e_l_i_n_e (which may consist of a
|
||||
single _s_i_m_p_l_e _c_o_m_m_a_n_d), a _s_u_b_s_h_e_l_l command enclosed in
|
||||
parentheses, or one of the commands executed as part of
|
||||
a command list enclosed by braces (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
--ee Exit immediately if a _p_i_p_e_l_i_n_e (which may consist of a
|
||||
single _s_i_m_p_l_e _c_o_m_m_a_n_d), a _s_u_b_s_h_e_l_l command enclosed in
|
||||
parentheses, or one of the commands executed as part of
|
||||
a command list enclosed by braces (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above) exits with a non-zero status. The shell does not
|
||||
exit if the command that fails is part of the command
|
||||
list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test following the iiff or eelliiff reserved
|
||||
words, part of any command executed in a &&&& or |||| list
|
||||
except the command following the final &&&& or ||||, any
|
||||
command in a pipeline but the last, or if the command's
|
||||
return value is being inverted with !!. A trap on EERRRR,
|
||||
exit if the command that fails is part of the command
|
||||
list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test following the iiff or eelliiff reserved
|
||||
words, part of any command executed in a &&&& or |||| list
|
||||
except the command following the final &&&& or ||||, any
|
||||
command in a pipeline but the last, or if the command's
|
||||
return value is being inverted with !!. A trap on EERRRR,
|
||||
if set, is executed before the shell exits. This option
|
||||
applies to the shell environment and each subshell envi-
|
||||
ronment separately (see CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT
|
||||
ronment separately (see CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT
|
||||
above), and may cause subshells to exit before executing
|
||||
all the commands in the subshell.
|
||||
--ff Disable pathname expansion.
|
||||
--hh Remember the location of commands as they are looked up
|
||||
--hh Remember the location of commands as they are looked up
|
||||
for execution. This is enabled by default.
|
||||
--kk All arguments in the form of assignment statements are
|
||||
placed in the environment for a command, not just those
|
||||
--kk All arguments in the form of assignment statements are
|
||||
placed in the environment for a command, not just those
|
||||
that precede the command name.
|
||||
--mm Monitor mode. Job control is enabled. This option is
|
||||
on by default for interactive shells on systems that
|
||||
support it (see JJOOBB CCOONNTTRROOLL above). Background pro-
|
||||
cesses run in a separate process group and a line con-
|
||||
taining their exit status is printed upon their comple-
|
||||
--mm Monitor mode. Job control is enabled. This option is
|
||||
on by default for interactive shells on systems that
|
||||
support it (see JJOOBB CCOONNTTRROOLL above). Background pro-
|
||||
cesses run in a separate process group and a line con-
|
||||
taining their exit status is printed upon their comple-
|
||||
tion.
|
||||
--nn Read commands but do not execute them. This may be used
|
||||
to check a shell script for syntax errors. This is
|
||||
to check a shell script for syntax errors. This is
|
||||
ignored by interactive shells.
|
||||
--oo _o_p_t_i_o_n_-_n_a_m_e
|
||||
The _o_p_t_i_o_n_-_n_a_m_e can be one of the following:
|
||||
@@ -1002,10 +1009,10 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
Same as --aa.
|
||||
bbrraacceeeexxppaanndd
|
||||
Same as --BB.
|
||||
eemmaaccss Use an emacs-style command line editing inter-
|
||||
eemmaaccss Use an emacs-style command line editing inter-
|
||||
face. This is enabled by default when the shell
|
||||
is interactive, unless the shell is started with
|
||||
the ----nnooeeddiittiinngg option. This also affects the
|
||||
the ----nnooeeddiittiinngg option. This also affects the
|
||||
editing interface used for rreeaadd --ee.
|
||||
eerrrrttrraaccee
|
||||
Same as --EE.
|
||||
@@ -1019,8 +1026,8 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
HHIISSTTOORRYY. This option is on by default in inter-
|
||||
active shells.
|
||||
iiggnnoorreeeeooff
|
||||
The effect is as if the shell command
|
||||
``IGNOREEOF=10'' had been executed (see SShheellll
|
||||
The effect is as if the shell command
|
||||
``IGNOREEOF=10'' had been executed (see SShheellll
|
||||
VVaarriiaabblleess above).
|
||||
kkeeyywwoorrdd Same as --kk.
|
||||
mmoonniittoorr Same as --mm.
|
||||
@@ -1035,215 +1042,215 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
pphhyyssiiccaall
|
||||
Same as --PP.
|
||||
ppiippeeffaaiill
|
||||
If set, the return value of a pipeline is the
|
||||
value of the last (rightmost) command to exit
|
||||
with a non-zero status, or zero if all commands
|
||||
in the pipeline exit successfully. This option
|
||||
If set, the return value of a pipeline is the
|
||||
value of the last (rightmost) command to exit
|
||||
with a non-zero status, or zero if all commands
|
||||
in the pipeline exit successfully. This option
|
||||
is disabled by default.
|
||||
ppoossiixx Change the behavior of bbaasshh where the default
|
||||
operation differs from the POSIX standard to
|
||||
ppoossiixx Change the behavior of bbaasshh where the default
|
||||
operation differs from the POSIX standard to
|
||||
match the standard (_p_o_s_i_x _m_o_d_e).
|
||||
pprriivviilleeggeedd
|
||||
Same as --pp.
|
||||
vveerrbboossee Same as --vv.
|
||||
vvii Use a vi-style command line editing interface.
|
||||
vvii Use a vi-style command line editing interface.
|
||||
This also affects the editing interface used for
|
||||
rreeaadd --ee.
|
||||
xxttrraaccee Same as --xx.
|
||||
If --oo is supplied with no _o_p_t_i_o_n_-_n_a_m_e, the values of the
|
||||
current options are printed. If ++oo is supplied with no
|
||||
_o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the
|
||||
current option settings is displayed on the standard
|
||||
current options are printed. If ++oo is supplied with no
|
||||
_o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the
|
||||
current option settings is displayed on the standard
|
||||
output.
|
||||
--pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and
|
||||
$$BBAASSHH__EENNVV files are not processed, shell functions are
|
||||
not inherited from the environment, and the SSHHEELLLLOOPPTTSS,
|
||||
BBAASSHHOOPPTTSS, CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they
|
||||
--pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and
|
||||
$$BBAASSHH__EENNVV files are not processed, shell functions are
|
||||
not inherited from the environment, and the SSHHEELLLLOOPPTTSS,
|
||||
BBAASSHHOOPPTTSS, CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they
|
||||
appear in the environment, are ignored. If the shell is
|
||||
started with the effective user (group) id not equal to
|
||||
the real user (group) id, and the --pp option is not sup-
|
||||
started with the effective user (group) id not equal to
|
||||
the real user (group) id, and the --pp option is not sup-
|
||||
plied, these actions are taken and the effective user id
|
||||
is set to the real user id. If the --pp option is sup-
|
||||
plied at startup, the effective user id is not reset.
|
||||
Turning this option off causes the effective user and
|
||||
is set to the real user id. If the --pp option is sup-
|
||||
plied at startup, the effective user id is not reset.
|
||||
Turning this option off causes the effective user and
|
||||
group ids to be set to the real user and group ids.
|
||||
--tt Exit after reading and executing one command.
|
||||
--uu Treat unset variables and parameters other than the spe-
|
||||
cial parameters "@" and "*" as an error when performing
|
||||
parameter expansion. If expansion is attempted on an
|
||||
unset variable or parameter, the shell prints an error
|
||||
message, and, if not interactive, exits with a non-zero
|
||||
cial parameters "@" and "*" as an error when performing
|
||||
parameter expansion. If expansion is attempted on an
|
||||
unset variable or parameter, the shell prints an error
|
||||
message, and, if not interactive, exits with a non-zero
|
||||
status.
|
||||
--vv Print shell input lines as they are read.
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
command, sseelleecctt command, or arithmetic ffoorr command, dis-
|
||||
play the expanded value of PPSS44, followed by the command
|
||||
play the expanded value of PPSS44, followed by the command
|
||||
and its expanded arguments or associated word list.
|
||||
--BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn
|
||||
--BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn
|
||||
above). This is on by default.
|
||||
--CC If set, bbaasshh does not overwrite an existing file with
|
||||
the >>, >>&&, and <<>> redirection operators. This may be
|
||||
--CC If set, bbaasshh does not overwrite an existing file with
|
||||
the >>, >>&&, and <<>> redirection operators. This may be
|
||||
overridden when creating output files by using the redi-
|
||||
rection operator >>|| instead of >>.
|
||||
--EE If set, any trap on EERRRR is inherited by shell functions,
|
||||
command substitutions, and commands executed in a sub-
|
||||
shell environment. The EERRRR trap is normally not inher-
|
||||
command substitutions, and commands executed in a sub-
|
||||
shell environment. The EERRRR trap is normally not inher-
|
||||
ited in such cases.
|
||||
--HH Enable !! style history substitution. This option is on
|
||||
by default when the shell is interactive.
|
||||
--PP If set, the shell does not follow symbolic links when
|
||||
executing commands such as ccdd that change the current
|
||||
--PP If set, the shell does not follow symbolic links when
|
||||
executing commands such as ccdd that change the current
|
||||
working directory. It uses the physical directory
|
||||
structure instead. By default, bbaasshh follows the logical
|
||||
chain of directories when performing commands which
|
||||
chain of directories when performing commands which
|
||||
change the current directory.
|
||||
--TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by
|
||||
shell functions, command substitutions, and commands
|
||||
executed in a subshell environment. The DDEEBBUUGG and
|
||||
--TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by
|
||||
shell functions, command substitutions, and commands
|
||||
executed in a subshell environment. The DDEEBBUUGG and
|
||||
RREETTUURRNN traps are normally not inherited in such cases.
|
||||
---- If no arguments follow this option, then the positional
|
||||
---- If no arguments follow this option, then the positional
|
||||
parameters are unset. Otherwise, the positional parame-
|
||||
ters are set to the _a_r_gs, even if some of them begin
|
||||
ters are set to the _a_r_gs, even if some of them begin
|
||||
with a --.
|
||||
-- Signal the end of options, cause all remaining _a_r_gs to
|
||||
-- Signal the end of options, cause all remaining _a_r_gs to
|
||||
be assigned to the positional parameters. The --xx and --vv
|
||||
options are turned off. If there are no _a_r_gs, the posi-
|
||||
tional parameters remain unchanged.
|
||||
|
||||
The options are off by default unless otherwise noted. Using +
|
||||
rather than - causes these options to be turned off. The
|
||||
options can also be specified as arguments to an invocation of
|
||||
the shell. The current set of options may be found in $$--. The
|
||||
The options are off by default unless otherwise noted. Using +
|
||||
rather than - causes these options to be turned off. The
|
||||
options can also be specified as arguments to an invocation of
|
||||
the shell. The current set of options may be found in $$--. The
|
||||
return status is always true unless an invalid option is encoun-
|
||||
tered.
|
||||
|
||||
sshhiifftt [_n]
|
||||
The positional parameters from _n+1 ... are renamed to $$11 ........
|
||||
Parameters represented by the numbers $$## down to $$##-_n+1 are
|
||||
unset. _n must be a non-negative number less than or equal to
|
||||
$$##. If _n is 0, no parameters are changed. If _n is not given,
|
||||
it is assumed to be 1. If _n is greater than $$##, the positional
|
||||
parameters are not changed. The return status is greater than
|
||||
The positional parameters from _n+1 ... are renamed to $$11 ........
|
||||
Parameters represented by the numbers $$## down to $$##-_n+1 are
|
||||
unset. _n must be a non-negative number less than or equal to
|
||||
$$##. If _n is 0, no parameters are changed. If _n is not given,
|
||||
it is assumed to be 1. If _n is greater than $$##, the positional
|
||||
parameters are not changed. The return status is greater than
|
||||
zero if _n is greater than $$## or less than zero; otherwise 0.
|
||||
|
||||
sshhoopptt [--ppqqssuu] [--oo] [_o_p_t_n_a_m_e ...]
|
||||
Toggle the values of variables controlling optional shell behav-
|
||||
ior. With no options, or with the --pp option, a list of all set-
|
||||
table options is displayed, with an indication of whether or not
|
||||
each is set. The --pp option causes output to be displayed in a
|
||||
form that may be reused as input. Other options have the fol-
|
||||
each is set. The --pp option causes output to be displayed in a
|
||||
form that may be reused as input. Other options have the fol-
|
||||
lowing meanings:
|
||||
--ss Enable (set) each _o_p_t_n_a_m_e.
|
||||
--uu Disable (unset) each _o_p_t_n_a_m_e.
|
||||
--qq Suppresses normal output (quiet mode); the return status
|
||||
--qq Suppresses normal output (quiet mode); the return status
|
||||
indicates whether the _o_p_t_n_a_m_e is set or unset. If multi-
|
||||
ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta-
|
||||
tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other-
|
||||
ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta-
|
||||
tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other-
|
||||
wise.
|
||||
--oo Restricts the values of _o_p_t_n_a_m_e to be those defined for
|
||||
--oo Restricts the values of _o_p_t_n_a_m_e to be those defined for
|
||||
the --oo option to the sseett builtin.
|
||||
|
||||
If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis-
|
||||
If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis-
|
||||
play is limited to those options which are set or unset, respec-
|
||||
tively. Unless otherwise noted, the sshhoopptt options are disabled
|
||||
tively. Unless otherwise noted, the sshhoopptt options are disabled
|
||||
(unset) by default.
|
||||
|
||||
The return status when listing options is zero if all _o_p_t_n_a_m_e_s
|
||||
are enabled, non-zero otherwise. When setting or unsetting
|
||||
options, the return status is zero unless an _o_p_t_n_a_m_e is not a
|
||||
The return status when listing options is zero if all _o_p_t_n_a_m_e_s
|
||||
are enabled, non-zero otherwise. When setting or unsetting
|
||||
options, the return status is zero unless an _o_p_t_n_a_m_e is not a
|
||||
valid shell option.
|
||||
|
||||
The list of sshhoopptt options is:
|
||||
|
||||
aauuttooccdd If set, a command name that is the name of a directory
|
||||
is executed as if it were the argument to the ccdd com-
|
||||
aauuttooccdd If set, a command name that is the name of a directory
|
||||
is executed as if it were the argument to the ccdd com-
|
||||
mand. This option is only used by interactive shells.
|
||||
ccddaabbllee__vvaarrss
|
||||
If set, an argument to the ccdd builtin command that is
|
||||
not a directory is assumed to be the name of a variable
|
||||
If set, an argument to the ccdd builtin command that is
|
||||
not a directory is assumed to be the name of a variable
|
||||
whose value is the directory to change to.
|
||||
ccddssppeellll If set, minor errors in the spelling of a directory com-
|
||||
ponent in a ccdd command will be corrected. The errors
|
||||
ponent in a ccdd command will be corrected. The errors
|
||||
checked for are transposed characters, a missing charac-
|
||||
ter, and one character too many. If a correction is
|
||||
found, the corrected file name is printed, and the com-
|
||||
mand proceeds. This option is only used by interactive
|
||||
ter, and one character too many. If a correction is
|
||||
found, the corrected file name is printed, and the com-
|
||||
mand proceeds. This option is only used by interactive
|
||||
shells.
|
||||
cchheecckkhhaasshh
|
||||
If set, bbaasshh checks that a command found in the hash ta-
|
||||
ble exists before trying to execute it. If a hashed
|
||||
command no longer exists, a normal path search is per-
|
||||
ble exists before trying to execute it. If a hashed
|
||||
command no longer exists, a normal path search is per-
|
||||
formed.
|
||||
cchheecckkjjoobbss
|
||||
If set, bbaasshh lists the status of any stopped and running
|
||||
jobs before exiting an interactive shell. If any jobs
|
||||
jobs before exiting an interactive shell. If any jobs
|
||||
are running, this causes the exit to be deferred until a
|
||||
second exit is attempted without an intervening command
|
||||
(see JJOOBB CCOONNTTRROOLL above). The shell always postpones
|
||||
second exit is attempted without an intervening command
|
||||
(see JJOOBB CCOONNTTRROOLL above). The shell always postpones
|
||||
exiting if any jobs are stopped.
|
||||
cchheecckkwwiinnssiizzee
|
||||
If set, bbaasshh checks the window size after each command
|
||||
and, if necessary, updates the values of LLIINNEESS and CCOOLL--
|
||||
If set, bbaasshh checks the window size after each command
|
||||
and, if necessary, updates the values of LLIINNEESS and CCOOLL--
|
||||
UUMMNNSS.
|
||||
ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple-
|
||||
line command in the same history entry. This allows
|
||||
ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple-
|
||||
line command in the same history entry. This allows
|
||||
easy re-editing of multi-line commands.
|
||||
ccoommppaatt3311
|
||||
If set, bbaasshh changes its behavior to that of version 3.1
|
||||
with respect to quoted arguments to the conditional com-
|
||||
mand's =~ operator.
|
||||
ddiirrssppeellll
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
tially supplied does not exist.
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
the results of pathname expansion.
|
||||
eexxeeccffaaiill
|
||||
If set, a non-interactive shell will not exit if it can-
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
exit if eexxeecc fails.
|
||||
eexxppaanndd__aalliiaasseess
|
||||
If set, aliases are expanded as described above under
|
||||
If set, aliases are expanded as described above under
|
||||
AALLIIAASSEESS. This option is enabled by default for interac-
|
||||
tive shells.
|
||||
eexxttddeebbuugg
|
||||
If set, behavior intended for use by debuggers is
|
||||
If set, behavior intended for use by debuggers is
|
||||
enabled:
|
||||
11.. The --FF option to the ddeeccllaarree builtin displays the
|
||||
source file name and line number corresponding to
|
||||
each function name supplied as an argument.
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
not executed.
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), a call to
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), a call to
|
||||
rreettuurrnn is simulated.
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
in their descriptions above.
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
tion, shell functions, and subshells invoked with
|
||||
(( _c_o_m_m_a_n_d )) inherit the DDEEBBUUGG and RREETTUURRNN traps.
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
_c_o_m_m_a_n_d )) inherit the EERRRROORR trap.
|
||||
eexxttgglloobb If set, the extended pattern matching features described
|
||||
above under PPaatthhnnaammee EExxppaannssiioonn are enabled.
|
||||
eexxttqquuoottee
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
quotes. This option is enabled by default.
|
||||
ffaaiillgglloobb
|
||||
If set, patterns which fail to match filenames during
|
||||
If set, patterns which fail to match filenames during
|
||||
pathname expansion result in an expansion error.
|
||||
ffoorrccee__ffiiggnnoorree
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
completion even if the ignored words are the only possi-
|
||||
ble completions. See SSHHEELLLL VVAARRIIAABBLLEESS above for a
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
default.
|
||||
gglloobbssttaarr
|
||||
If set, the pattern **** used in a pathname expansion con-
|
||||
@@ -1254,58 +1261,58 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
If set, shell error messages are written in the standard
|
||||
GNU error message format.
|
||||
hhiissttaappppeenndd
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
exits, rather than overwriting the file.
|
||||
hhiissttrreeeeddiitt
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
opportunity to re-edit a failed history substitution.
|
||||
hhiissttvveerriiffyy
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
into the rreeaaddlliinnee editing buffer, allowing further modi-
|
||||
fication.
|
||||
hhoossttccoommpplleettee
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will attempt to
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
above). This is enabled by default.
|
||||
hhuuppoonneexxiitt
|
||||
If set, bbaasshh will send SSIIGGHHUUPP to all jobs when an inter-
|
||||
active login shell exits.
|
||||
iinntteerraaccttiivvee__ccoommmmeennttss
|
||||
If set, allow a word beginning with ## to cause that word
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
option is enabled by default.
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
commands are saved to the history with embedded newlines
|
||||
rather than using semicolon separators where possible.
|
||||
llooggiinn__sshheellll
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
changed.
|
||||
mmaaiillwwaarrnn
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
played.
|
||||
nnoo__eemmppttyy__ccmmdd__ccoommpplleettiioonn
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
attempt to search the PPAATTHH for possible completions when
|
||||
completion is attempted on an empty line.
|
||||
nnooccaasseegglloobb
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
fashion when performing pathname expansion (see PPaatthhnnaammee
|
||||
EExxppaannssiioonn above).
|
||||
nnooccaasseemmaattcchh
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
fashion when performing matching while executing ccaassee or
|
||||
[[[[ conditional commands.
|
||||
nnuullllgglloobb
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
rather than themselves.
|
||||
pprrooggccoommpp
|
||||
If set, the programmable completion facilities (see PPrroo--
|
||||
@@ -1313,47 +1320,47 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
enabled by default.
|
||||
pprroommppttvvaarrss
|
||||
If set, prompt strings undergo parameter expansion, com-
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
above. This option is enabled by default.
|
||||
rreessttrriicctteedd__sshheellll
|
||||
The shell sets this option if it is started in
|
||||
The shell sets this option if it is started in
|
||||
restricted mode (see RREESSTTRRIICCTTEEDD SSHHEELLLL below). The value
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
cover whether or not a shell is restricted.
|
||||
sshhiifftt__vveerrbboossee
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
the shift count exceeds the number of positional parame-
|
||||
ters.
|
||||
ssoouurrcceeppaatthh
|
||||
If set, the ssoouurrccee (..) builtin uses the value of PPAATTHH to
|
||||
find the directory containing the file supplied as an
|
||||
find the directory containing the file supplied as an
|
||||
argument. This option is enabled by default.
|
||||
xxppgg__eecchhoo
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
sequences by default.
|
||||
ssuussppeenndd [--ff]
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
signal. A login shell cannot be suspended; the --ff option can be
|
||||
used to override this and force the suspension. The return sta-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
plied, or if job control is not enabled.
|
||||
tteesstt _e_x_p_r
|
||||
[[ _e_x_p_r ]]
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression _e_x_p_r. Each operator and operand must be
|
||||
a separate argument. Expressions are composed of the primaries
|
||||
described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. tteesstt does not
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression _e_x_p_r. Each operator and operand must be
|
||||
a separate argument. Expressions are composed of the primaries
|
||||
described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. tteesstt does not
|
||||
accept any options, nor does it accept and ignore an argument of
|
||||
---- as signifying the end of options.
|
||||
|
||||
Expressions may be combined using the following operators,
|
||||
Expressions may be combined using the following operators,
|
||||
listed in decreasing order of precedence. The evaluation
|
||||
depends on the number of arguments; see below.
|
||||
!! _e_x_p_r True if _e_x_p_r is false.
|
||||
(( _e_x_p_r ))
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
the normal precedence of operators.
|
||||
_e_x_p_r_1 -aa _e_x_p_r_2
|
||||
True if both _e_x_p_r_1 and _e_x_p_r_2 are true.
|
||||
@@ -1370,59 +1377,59 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
null.
|
||||
2 arguments
|
||||
If the first argument is !!, the expression is true if and
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
true if the unary test is true. If the first argument is
|
||||
not a valid unary conditional operator, the expression is
|
||||
false.
|
||||
3 arguments
|
||||
If the second argument is one of the binary conditional
|
||||
If the second argument is one of the binary conditional
|
||||
operators listed above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the
|
||||
result of the expression is the result of the binary test
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
the second and third arguments. If the first argument is
|
||||
exactly (( and the third argument is exactly )), the result
|
||||
is the one-argument test of the second argument. Other-
|
||||
is the one-argument test of the second argument. Other-
|
||||
wise, the expression is false.
|
||||
4 arguments
|
||||
If the first argument is !!, the result is the negation of
|
||||
the three-argument expression composed of the remaining
|
||||
the three-argument expression composed of the remaining
|
||||
arguments. Otherwise, the expression is parsed and eval-
|
||||
uated according to precedence using the rules listed
|
||||
uated according to precedence using the rules listed
|
||||
above.
|
||||
5 or more arguments
|
||||
The expression is parsed and evaluated according to
|
||||
The expression is parsed and evaluated according to
|
||||
precedence using the rules listed above.
|
||||
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
for processes run from the shell. The return status is 0.
|
||||
|
||||
ttrraapp [--llpp] [[_a_r_g] _s_i_g_s_p_e_c ...]
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
causes the shell to print a list of signal names and their cor-
|
||||
responding numbers. Each _s_i_g_s_p_e_c is either a signal name
|
||||
defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names are
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
causes the shell to print a list of signal names and their cor-
|
||||
responding numbers. Each _s_i_g_s_p_e_c is either a signal name
|
||||
defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names are
|
||||
case insensitive and the SIG prefix is optional.
|
||||
|
||||
If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_r_g is executed on exit
|
||||
from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_r_g is exe-
|
||||
cuted before every _s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command,
|
||||
_s_e_l_e_c_t command, every arithmetic _f_o_r command, and before the
|
||||
first command executes in a shell function (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above). Refer to the description of the eexxttddeebbuugg option to the
|
||||
If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_r_g is executed on exit
|
||||
from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_r_g is exe-
|
||||
cuted before every _s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command,
|
||||
_s_e_l_e_c_t command, every arithmetic _f_o_r command, and before the
|
||||
first command executes in a shell function (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above). Refer to the description of the eexxttddeebbuugg option to the
|
||||
sshhoopptt builtin for details of its effect on the DDEEBBUUGG trap. If a
|
||||
_s_i_g_s_p_e_c is RREETTUURRNN, the command _a_r_g is executed each time a shell
|
||||
function or a script executed with the .. or ssoouurrccee builtins fin-
|
||||
@@ -1430,53 +1437,53 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
|
||||
If a _s_i_g_s_p_e_c is EERRRR, the command _a_r_g is executed whenever a sim-
|
||||
ple command has a non-zero exit status, subject to the following
|
||||
conditions. The EERRRR trap is not executed if the failed command
|
||||
is part of the command list immediately following a wwhhiillee or
|
||||
uunnttiill keyword, part of the test in an _i_f statement, part of a
|
||||
command executed in a &&&& or |||| list, or if the command's return
|
||||
value is being inverted via !!. These are the same conditions
|
||||
conditions. The EERRRR trap is not executed if the failed command
|
||||
is part of the command list immediately following a wwhhiillee or
|
||||
uunnttiill keyword, part of the test in an _i_f statement, part of a
|
||||
command executed in a &&&& or |||| list, or if the command's return
|
||||
value is being inverted via !!. These are the same conditions
|
||||
obeyed by the eerrrreexxiitt option.
|
||||
|
||||
Signals ignored upon entry to the shell cannot be trapped or
|
||||
reset. Trapped signals that are not being ignored are reset to
|
||||
Signals ignored upon entry to the shell cannot be trapped or
|
||||
reset. Trapped signals that are not being ignored are reset to
|
||||
their original values in a subshell or subshell environment when
|
||||
one is created. The return status is false if any _s_i_g_s_p_e_c is
|
||||
one is created. The return status is false if any _s_i_g_s_p_e_c is
|
||||
invalid; otherwise ttrraapp returns true.
|
||||
|
||||
ttyyppee [--aaffttppPP] _n_a_m_e [_n_a_m_e ...]
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
used as a command name. If the --tt option is used, ttyyppee prints a
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
name of the disk file that would be executed if _n_a_m_e were speci-
|
||||
fied as a command name, or nothing if ``type -t name'' would not
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
even if ``type -t name'' would not return _f_i_l_e. If a command is
|
||||
hashed, --pp and --PP print the hashed value, not necessarily the
|
||||
hashed, --pp and --PP print the hashed value, not necessarily the
|
||||
file that appears first in PPAATTHH. If the --aa option is used, ttyyppee
|
||||
prints all of the places that contain an executable named _n_a_m_e.
|
||||
This includes aliases and functions, if and only if the --pp
|
||||
option is not also used. The table of hashed commands is not
|
||||
consulted when using --aa. The --ff option suppresses shell func-
|
||||
tion lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true if
|
||||
prints all of the places that contain an executable named _n_a_m_e.
|
||||
This includes aliases and functions, if and only if the --pp
|
||||
option is not also used. The table of hashed commands is not
|
||||
consulted when using --aa. The --ff option suppresses shell func-
|
||||
tion lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true if
|
||||
all of the arguments are found, false if any are not found.
|
||||
|
||||
uulliimmiitt [--HHSSTTaabbccddeeffiillmmnnppqqrrssttuuvvxx [_l_i_m_i_t]]
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
The --HH and --SS options specify that the hard or soft limit is set
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
fied, both the soft and hard limits are set. The value of _l_i_m_i_t
|
||||
can be a number in the unit specified for the resource or one of
|
||||
the special values hhaarrdd, ssoofftt, or uunnlliimmiitteedd, which stand for the
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
given. When more than one resource is specified, the limit name
|
||||
and unit are printed before the value. Other options are inter-
|
||||
preted as follows:
|
||||
@@ -1485,11 +1492,11 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--cc The maximum size of core files created
|
||||
--dd The maximum size of a process's data segment
|
||||
--ee The maximum scheduling priority ("nice")
|
||||
--ff The maximum size of files written by the shell and its
|
||||
--ff The maximum size of files written by the shell and its
|
||||
children
|
||||
--ii The maximum number of pending signals
|
||||
--ll The maximum size that may be locked into memory
|
||||
--mm The maximum resident set size (many systems do not honor
|
||||
--mm The maximum resident set size (many systems do not honor
|
||||
this limit)
|
||||
--nn The maximum number of open file descriptors (most systems
|
||||
do not allow this value to be set)
|
||||
@@ -1498,58 +1505,58 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--rr The maximum real-time scheduling priority
|
||||
--ss The maximum stack size
|
||||
--tt The maximum amount of cpu time in seconds
|
||||
--uu The maximum number of processes available to a single
|
||||
--uu The maximum number of processes available to a single
|
||||
user
|
||||
--vv The maximum amount of virtual memory available to the
|
||||
--vv The maximum amount of virtual memory available to the
|
||||
shell
|
||||
--xx The maximum number of file locks
|
||||
--TT The maximum number of threads
|
||||
|
||||
If _l_i_m_i_t is given, it is the new value of the specified resource
|
||||
(the --aa option is display only). If no option is given, then --ff
|
||||
is assumed. Values are in 1024-byte increments, except for --tt,
|
||||
which is in seconds, --pp, which is in units of 512-byte blocks,
|
||||
and --TT, --bb, --nn, and --uu, which are unscaled values. The return
|
||||
is assumed. Values are in 1024-byte increments, except for --tt,
|
||||
which is in seconds, --pp, which is in units of 512-byte blocks,
|
||||
and --TT, --bb, --nn, and --uu, which are unscaled values. The return
|
||||
status is 0 unless an invalid option or argument is supplied, or
|
||||
an error occurs while setting a new limit.
|
||||
|
||||
uummaasskk [--pp] [--SS] [_m_o_d_e]
|
||||
The user file-creation mask is set to _m_o_d_e. If _m_o_d_e begins with
|
||||
a digit, it is interpreted as an octal number; otherwise it is
|
||||
interpreted as a symbolic mode mask similar to that accepted by
|
||||
_c_h_m_o_d(1). If _m_o_d_e is omitted, the current value of the mask is
|
||||
printed. The --SS option causes the mask to be printed in sym-
|
||||
bolic form; the default output is an octal number. If the --pp
|
||||
a digit, it is interpreted as an octal number; otherwise it is
|
||||
interpreted as a symbolic mode mask similar to that accepted by
|
||||
_c_h_m_o_d(1). If _m_o_d_e is omitted, the current value of the mask is
|
||||
printed. The --SS option causes the mask to be printed in sym-
|
||||
bolic form; the default output is an octal number. If the --pp
|
||||
option is supplied, and _m_o_d_e is omitted, the output is in a form
|
||||
that may be reused as input. The return status is 0 if the mode
|
||||
was successfully changed or if no _m_o_d_e argument was supplied,
|
||||
was successfully changed or if no _m_o_d_e argument was supplied,
|
||||
and false otherwise.
|
||||
|
||||
uunnaalliiaass [-aa] [_n_a_m_e ...]
|
||||
Remove each _n_a_m_e from the list of defined aliases. If --aa is
|
||||
supplied, all alias definitions are removed. The return value
|
||||
Remove each _n_a_m_e from the list of defined aliases. If --aa is
|
||||
supplied, all alias definitions are removed. The return value
|
||||
is true unless a supplied _n_a_m_e is not a defined alias.
|
||||
|
||||
uunnsseett [-ffvv] [_n_a_m_e ...]
|
||||
For each _n_a_m_e, remove the corresponding variable or function.
|
||||
For each _n_a_m_e, remove the corresponding variable or function.
|
||||
If no options are supplied, or the --vv option is given, each _n_a_m_e
|
||||
refers to a shell variable. Read-only variables may not be
|
||||
unset. If --ff is specified, each _n_a_m_e refers to a shell func-
|
||||
tion, and the function definition is removed. Each unset vari-
|
||||
able or function is removed from the environment passed to sub-
|
||||
sequent commands. If any of RRAANNDDOOMM, SSEECCOONNDDSS, LLIINNEENNOO, HHIISSTTCCMMDD,
|
||||
refers to a shell variable. Read-only variables may not be
|
||||
unset. If --ff is specified, each _n_a_m_e refers to a shell func-
|
||||
tion, and the function definition is removed. Each unset vari-
|
||||
able or function is removed from the environment passed to sub-
|
||||
sequent commands. If any of RRAANNDDOOMM, SSEECCOONNDDSS, LLIINNEENNOO, HHIISSTTCCMMDD,
|
||||
FFUUNNCCNNAAMMEE, GGRROOUUPPSS, or DDIIRRSSTTAACCKK are unset, they lose their special
|
||||
properties, even if they are subsequently reset. The exit sta-
|
||||
properties, even if they are subsequently reset. The exit sta-
|
||||
tus is true unless a _n_a_m_e is readonly.
|
||||
|
||||
wwaaiitt [_n _._._.]
|
||||
Wait for each specified process and return its termination sta-
|
||||
tus. Each _n may be a process ID or a job specification; if a
|
||||
job spec is given, all processes in that job's pipeline are
|
||||
waited for. If _n is not given, all currently active child pro-
|
||||
cesses are waited for, and the return status is zero. If _n
|
||||
specifies a non-existent process or job, the return status is
|
||||
127. Otherwise, the return status is the exit status of the
|
||||
Wait for each specified process and return its termination sta-
|
||||
tus. Each _n may be a process ID or a job specification; if a
|
||||
job spec is given, all processes in that job's pipeline are
|
||||
waited for. If _n is not given, all currently active child pro-
|
||||
cesses are waited for, and the return status is zero. If _n
|
||||
specifies a non-existent process or job, the return status is
|
||||
127. Otherwise, the return status is the exit status of the
|
||||
last process or job waited for.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
|
||||
+821
-808
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.19.2
|
||||
%%CreationDate: Wed Sep 16 21:35:02 2009
|
||||
%%CreationDate: Mon Oct 12 10:07:24 2009
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.19 2
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Fri Oct 9 12:07:41 EDT 2009
|
||||
@set LASTCHANGE Fri Oct 16 12:23:41 EDT 2009
|
||||
|
||||
@set EDITION 4.1
|
||||
@set VERSION 4.1
|
||||
@set UPDATED 9 October 2009
|
||||
@set UPDATED 16 October 2009
|
||||
@set UPDATED-MONTH October 2009
|
||||
|
||||
+3
-3
@@ -2,9 +2,9 @@
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Wed Sep 16 21:33:56 EDT 2009
|
||||
@set LASTCHANGE Fri Oct 9 12:07:41 EDT 2009
|
||||
|
||||
@set EDITION 4.1
|
||||
@set VERSION 4.1
|
||||
@set UPDATED 16 September 2009
|
||||
@set UPDATED-MONTH September 2009
|
||||
@set UPDATED 9 October 2009
|
||||
@set UPDATED-MONTH October 2009
|
||||
|
||||
+10
-2
@@ -607,7 +607,6 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out,
|
||||
else
|
||||
exec_result = last_command_exit_value;
|
||||
|
||||
|
||||
if (user_subshell && was_error_trap && ignore_return == 0 && invert == 0 && exec_result != EXECUTION_SUCCESS)
|
||||
{
|
||||
last_command_exit_value = exec_result;
|
||||
@@ -1287,6 +1286,7 @@ execute_in_subshell (command, asynchronous, pipe_in, pipe_out, fds_to_close)
|
||||
{
|
||||
int user_subshell, return_code, function_value, should_redir_stdin, invert;
|
||||
int ois, user_coproc;
|
||||
int result;
|
||||
COMMAND *tcom;
|
||||
|
||||
USE_VAR(user_subshell);
|
||||
@@ -1453,13 +1453,21 @@ execute_in_subshell (command, asynchronous, pipe_in, pipe_out, fds_to_close)
|
||||
invert = (tcom->flags & CMD_INVERT_RETURN) != 0;
|
||||
tcom->flags &= ~CMD_INVERT_RETURN;
|
||||
|
||||
result = setjmp (top_level);
|
||||
|
||||
/* If we're inside a function while executing this subshell, we
|
||||
need to handle a possible `return'. */
|
||||
function_value = 0;
|
||||
if (return_catch_flag)
|
||||
function_value = setjmp (return_catch);
|
||||
|
||||
if (function_value)
|
||||
/* If we're going to exit the shell, we don't want to invert the return
|
||||
status. */
|
||||
if (result == EXITPROG)
|
||||
invert = 0, return_code = last_command_exit_value;
|
||||
else if (result)
|
||||
return_code = EXECUTION_FAILURE;
|
||||
else if (function_value)
|
||||
return_code = return_catch_value;
|
||||
else
|
||||
return_code = execute_command_internal (tcom, asynchronous, NO_PIPE, NO_PIPE, fds_to_close);
|
||||
|
||||
+14
-3
@@ -607,7 +607,6 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out,
|
||||
else
|
||||
exec_result = last_command_exit_value;
|
||||
|
||||
|
||||
if (user_subshell && was_error_trap && ignore_return == 0 && invert == 0 && exec_result != EXECUTION_SUCCESS)
|
||||
{
|
||||
last_command_exit_value = exec_result;
|
||||
@@ -1287,6 +1286,7 @@ execute_in_subshell (command, asynchronous, pipe_in, pipe_out, fds_to_close)
|
||||
{
|
||||
int user_subshell, return_code, function_value, should_redir_stdin, invert;
|
||||
int ois, user_coproc;
|
||||
int result;
|
||||
COMMAND *tcom;
|
||||
|
||||
USE_VAR(user_subshell);
|
||||
@@ -1453,13 +1453,24 @@ execute_in_subshell (command, asynchronous, pipe_in, pipe_out, fds_to_close)
|
||||
invert = (tcom->flags & CMD_INVERT_RETURN) != 0;
|
||||
tcom->flags &= ~CMD_INVERT_RETURN;
|
||||
|
||||
result = setjmp (top_level);
|
||||
|
||||
/* If we're inside a function while executing this subshell, we
|
||||
need to handle a possible `return'. */
|
||||
function_value = 0;
|
||||
if (return_catch_flag)
|
||||
function_value = setjmp (return_catch);
|
||||
|
||||
if (function_value)
|
||||
if (result)
|
||||
itrace("execute_in_subshell: longjmp to top_level, result = %d last_command_exit_value = %d", result, last_command_exit_value);
|
||||
|
||||
/* If we're going to exit the shell, we don't want to invert the return
|
||||
status. */
|
||||
if (result == EXITPROG)
|
||||
invert = 0, return_code = last_command_exit_value;
|
||||
else if (result)
|
||||
return_code = EXECUTION_FAILURE;
|
||||
else if (function_value)
|
||||
return_code = return_catch_value;
|
||||
else
|
||||
return_code = execute_command_internal (tcom, asynchronous, NO_PIPE, NO_PIPE, fds_to_close);
|
||||
@@ -3268,7 +3279,7 @@ execute_cond_node (cond)
|
||||
int oe;
|
||||
oe = extended_glob;
|
||||
extended_glob = 1;
|
||||
result = binary_test (cond->op->word, arg1, arg2, TEST_PATMATCH|TEST_ARITHEXP)
|
||||
result = binary_test (cond->op->word, arg1, arg2, TEST_PATMATCH|TEST_ARITHEXP|TEST_LOCALE)
|
||||
? EXECUTION_SUCCESS
|
||||
: EXECUTION_FAILURE;
|
||||
extended_glob = oe;
|
||||
|
||||
+1
-1
@@ -1030,7 +1030,7 @@ glob_filename (pathname, flags)
|
||||
dflags |= GX_ALLDIRS|GX_ADDCURDIR;
|
||||
#if 0
|
||||
/* If we want all directories (dflags & GX_ALLDIRS) and we're not
|
||||
being called recursively as something like `echo [star][star]/*.o'
|
||||
being called recursively as something like `echo **/*.o'
|
||||
((flags & GX_ALLDIRS) == 0), we want to prevent glob_vector from
|
||||
adding a null directory name to the front of the temp_results
|
||||
array. We turn off ADDCURDIR if not called recursively and
|
||||
|
||||
@@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../COPYING
|
||||
@@ -1,54 +0,0 @@
|
||||
/* ansi_stdlib.h -- An ANSI Standard stdlib.h. */
|
||||
/* A minimal stdlib.h containing extern declarations for those functions
|
||||
that bash uses. */
|
||||
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (_STDLIB_H_)
|
||||
#define _STDLIB_H_ 1
|
||||
|
||||
/* String conversion functions. */
|
||||
extern int atoi ();
|
||||
|
||||
extern double atof ();
|
||||
extern double strtod ();
|
||||
|
||||
/* Memory allocation functions. */
|
||||
/* Generic pointer type. */
|
||||
#ifndef PTR_T
|
||||
|
||||
#if defined (__STDC__)
|
||||
# define PTR_T void *
|
||||
#else
|
||||
# define PTR_T char *
|
||||
#endif
|
||||
|
||||
#endif /* PTR_T */
|
||||
|
||||
extern PTR_T malloc ();
|
||||
extern PTR_T realloc ();
|
||||
extern void free ();
|
||||
|
||||
/* Other miscellaneous functions. */
|
||||
extern void abort ();
|
||||
extern void exit ();
|
||||
extern char *getenv ();
|
||||
extern void qsort ();
|
||||
|
||||
#endif /* _STDLIB_H */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/ansi_stdlib.h
|
||||
@@ -1,506 +0,0 @@
|
||||
@c The GNU Free Documentation License.
|
||||
@center Version 1.3, 3 November 2008
|
||||
|
||||
@c This file is intended to be included within another document,
|
||||
@c hence no sectioning command or @node.
|
||||
|
||||
@display
|
||||
Copyright @copyright{} 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
|
||||
@uref{http://fsf.org/}
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
@end display
|
||||
|
||||
@enumerate 0
|
||||
@item
|
||||
PREAMBLE
|
||||
|
||||
The purpose of this License is to make a manual, textbook, or other
|
||||
functional and useful document @dfn{free} in the sense of freedom: to
|
||||
assure everyone the effective freedom to copy and redistribute it,
|
||||
with or without modifying it, either commercially or noncommercially.
|
||||
Secondarily, this License preserves for the author and publisher a way
|
||||
to get credit for their work, while not being considered responsible
|
||||
for modifications made by others.
|
||||
|
||||
This License is a kind of ``copyleft'', which means that derivative
|
||||
works of the document must themselves be free in the same sense. It
|
||||
complements the GNU General Public License, which is a copyleft
|
||||
license designed for free software.
|
||||
|
||||
We have designed this License in order to use it for manuals for free
|
||||
software, because free software needs free documentation: a free
|
||||
program should come with manuals providing the same freedoms that the
|
||||
software does. But this License is not limited to software manuals;
|
||||
it can be used for any textual work, regardless of subject matter or
|
||||
whether it is published as a printed book. We recommend this License
|
||||
principally for works whose purpose is instruction or reference.
|
||||
|
||||
@item
|
||||
APPLICABILITY AND DEFINITIONS
|
||||
|
||||
This License applies to any manual or other work, in any medium, that
|
||||
contains a notice placed by the copyright holder saying it can be
|
||||
distributed under the terms of this License. Such a notice grants a
|
||||
world-wide, royalty-free license, unlimited in duration, to use that
|
||||
work under the conditions stated herein. The ``Document'', below,
|
||||
refers to any such manual or work. Any member of the public is a
|
||||
licensee, and is addressed as ``you''. You accept the license if you
|
||||
copy, modify or distribute the work in a way requiring permission
|
||||
under copyright law.
|
||||
|
||||
A ``Modified Version'' of the Document means any work containing the
|
||||
Document or a portion of it, either copied verbatim, or with
|
||||
modifications and/or translated into another language.
|
||||
|
||||
A ``Secondary Section'' is a named appendix or a front-matter section
|
||||
of the Document that deals exclusively with the relationship of the
|
||||
publishers or authors of the Document to the Document's overall
|
||||
subject (or to related matters) and contains nothing that could fall
|
||||
directly within that overall subject. (Thus, if the Document is in
|
||||
part a textbook of mathematics, a Secondary Section may not explain
|
||||
any mathematics.) The relationship could be a matter of historical
|
||||
connection with the subject or with related matters, or of legal,
|
||||
commercial, philosophical, ethical or political position regarding
|
||||
them.
|
||||
|
||||
The ``Invariant Sections'' are certain Secondary Sections whose titles
|
||||
are designated, as being those of Invariant Sections, in the notice
|
||||
that says that the Document is released under this License. If a
|
||||
section does not fit the above definition of Secondary then it is not
|
||||
allowed to be designated as Invariant. The Document may contain zero
|
||||
Invariant Sections. If the Document does not identify any Invariant
|
||||
Sections then there are none.
|
||||
|
||||
The ``Cover Texts'' are certain short passages of text that are listed,
|
||||
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
|
||||
the Document is released under this License. A Front-Cover Text may
|
||||
be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
||||
|
||||
A ``Transparent'' copy of the Document means a machine-readable copy,
|
||||
represented in a format whose specification is available to the
|
||||
general public, that is suitable for revising the document
|
||||
straightforwardly with generic text editors or (for images composed of
|
||||
pixels) generic paint programs or (for drawings) some widely available
|
||||
drawing editor, and that is suitable for input to text formatters or
|
||||
for automatic translation to a variety of formats suitable for input
|
||||
to text formatters. A copy made in an otherwise Transparent file
|
||||
format whose markup, or absence of markup, has been arranged to thwart
|
||||
or discourage subsequent modification by readers is not Transparent.
|
||||
An image format is not Transparent if used for any substantial amount
|
||||
of text. A copy that is not ``Transparent'' is called ``Opaque''.
|
||||
|
||||
Examples of suitable formats for Transparent copies include plain
|
||||
@sc{ascii} without markup, Texinfo input format, La@TeX{} input
|
||||
format, @acronym{SGML} or @acronym{XML} using a publicly available
|
||||
@acronym{DTD}, and standard-conforming simple @acronym{HTML},
|
||||
PostScript or @acronym{PDF} designed for human modification. Examples
|
||||
of transparent image formats include @acronym{PNG}, @acronym{XCF} and
|
||||
@acronym{JPG}. Opaque formats include proprietary formats that can be
|
||||
read and edited only by proprietary word processors, @acronym{SGML} or
|
||||
@acronym{XML} for which the @acronym{DTD} and/or processing tools are
|
||||
not generally available, and the machine-generated @acronym{HTML},
|
||||
PostScript or @acronym{PDF} produced by some word processors for
|
||||
output purposes only.
|
||||
|
||||
The ``Title Page'' means, for a printed book, the title page itself,
|
||||
plus such following pages as are needed to hold, legibly, the material
|
||||
this License requires to appear in the title page. For works in
|
||||
formats which do not have any title page as such, ``Title Page'' means
|
||||
the text near the most prominent appearance of the work's title,
|
||||
preceding the beginning of the body of the text.
|
||||
|
||||
The ``publisher'' means any person or entity that distributes copies
|
||||
of the Document to the public.
|
||||
|
||||
A section ``Entitled XYZ'' means a named subunit of the Document whose
|
||||
title either is precisely XYZ or contains XYZ in parentheses following
|
||||
text that translates XYZ in another language. (Here XYZ stands for a
|
||||
specific section name mentioned below, such as ``Acknowledgements'',
|
||||
``Dedications'', ``Endorsements'', or ``History''.) To ``Preserve the Title''
|
||||
of such a section when you modify the Document means that it remains a
|
||||
section ``Entitled XYZ'' according to this definition.
|
||||
|
||||
The Document may include Warranty Disclaimers next to the notice which
|
||||
states that this License applies to the Document. These Warranty
|
||||
Disclaimers are considered to be included by reference in this
|
||||
License, but only as regards disclaiming warranties: any other
|
||||
implication that these Warranty Disclaimers may have is void and has
|
||||
no effect on the meaning of this License.
|
||||
|
||||
@item
|
||||
VERBATIM COPYING
|
||||
|
||||
You may copy and distribute the Document in any medium, either
|
||||
commercially or noncommercially, provided that this License, the
|
||||
copyright notices, and the license notice saying this License applies
|
||||
to the Document are reproduced in all copies, and that you add no other
|
||||
conditions whatsoever to those of this License. You may not use
|
||||
technical measures to obstruct or control the reading or further
|
||||
copying of the copies you make or distribute. However, you may accept
|
||||
compensation in exchange for copies. If you distribute a large enough
|
||||
number of copies you must also follow the conditions in section 3.
|
||||
|
||||
You may also lend copies, under the same conditions stated above, and
|
||||
you may publicly display copies.
|
||||
|
||||
@item
|
||||
COPYING IN QUANTITY
|
||||
|
||||
If you publish printed copies (or copies in media that commonly have
|
||||
printed covers) of the Document, numbering more than 100, and the
|
||||
Document's license notice requires Cover Texts, you must enclose the
|
||||
copies in covers that carry, clearly and legibly, all these Cover
|
||||
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
|
||||
the back cover. Both covers must also clearly and legibly identify
|
||||
you as the publisher of these copies. The front cover must present
|
||||
the full title with all words of the title equally prominent and
|
||||
visible. You may add other material on the covers in addition.
|
||||
Copying with changes limited to the covers, as long as they preserve
|
||||
the title of the Document and satisfy these conditions, can be treated
|
||||
as verbatim copying in other respects.
|
||||
|
||||
If the required texts for either cover are too voluminous to fit
|
||||
legibly, you should put the first ones listed (as many as fit
|
||||
reasonably) on the actual cover, and continue the rest onto adjacent
|
||||
pages.
|
||||
|
||||
If you publish or distribute Opaque copies of the Document numbering
|
||||
more than 100, you must either include a machine-readable Transparent
|
||||
copy along with each Opaque copy, or state in or with each Opaque copy
|
||||
a computer-network location from which the general network-using
|
||||
public has access to download using public-standard network protocols
|
||||
a complete Transparent copy of the Document, free of added material.
|
||||
If you use the latter option, you must take reasonably prudent steps,
|
||||
when you begin distribution of Opaque copies in quantity, to ensure
|
||||
that this Transparent copy will remain thus accessible at the stated
|
||||
location until at least one year after the last time you distribute an
|
||||
Opaque copy (directly or through your agents or retailers) of that
|
||||
edition to the public.
|
||||
|
||||
It is requested, but not required, that you contact the authors of the
|
||||
Document well before redistributing any large number of copies, to give
|
||||
them a chance to provide you with an updated version of the Document.
|
||||
|
||||
@item
|
||||
MODIFICATIONS
|
||||
|
||||
You may copy and distribute a Modified Version of the Document under
|
||||
the conditions of sections 2 and 3 above, provided that you release
|
||||
the Modified Version under precisely this License, with the Modified
|
||||
Version filling the role of the Document, thus licensing distribution
|
||||
and modification of the Modified Version to whoever possesses a copy
|
||||
of it. In addition, you must do these things in the Modified Version:
|
||||
|
||||
@enumerate A
|
||||
@item
|
||||
Use in the Title Page (and on the covers, if any) a title distinct
|
||||
from that of the Document, and from those of previous versions
|
||||
(which should, if there were any, be listed in the History section
|
||||
of the Document). You may use the same title as a previous version
|
||||
if the original publisher of that version gives permission.
|
||||
|
||||
@item
|
||||
List on the Title Page, as authors, one or more persons or entities
|
||||
responsible for authorship of the modifications in the Modified
|
||||
Version, together with at least five of the principal authors of the
|
||||
Document (all of its principal authors, if it has fewer than five),
|
||||
unless they release you from this requirement.
|
||||
|
||||
@item
|
||||
State on the Title page the name of the publisher of the
|
||||
Modified Version, as the publisher.
|
||||
|
||||
@item
|
||||
Preserve all the copyright notices of the Document.
|
||||
|
||||
@item
|
||||
Add an appropriate copyright notice for your modifications
|
||||
adjacent to the other copyright notices.
|
||||
|
||||
@item
|
||||
Include, immediately after the copyright notices, a license notice
|
||||
giving the public permission to use the Modified Version under the
|
||||
terms of this License, in the form shown in the Addendum below.
|
||||
|
||||
@item
|
||||
Preserve in that license notice the full lists of Invariant Sections
|
||||
and required Cover Texts given in the Document's license notice.
|
||||
|
||||
@item
|
||||
Include an unaltered copy of this License.
|
||||
|
||||
@item
|
||||
Preserve the section Entitled ``History'', Preserve its Title, and add
|
||||
to it an item stating at least the title, year, new authors, and
|
||||
publisher of the Modified Version as given on the Title Page. If
|
||||
there is no section Entitled ``History'' in the Document, create one
|
||||
stating the title, year, authors, and publisher of the Document as
|
||||
given on its Title Page, then add an item describing the Modified
|
||||
Version as stated in the previous sentence.
|
||||
|
||||
@item
|
||||
Preserve the network location, if any, given in the Document for
|
||||
public access to a Transparent copy of the Document, and likewise
|
||||
the network locations given in the Document for previous versions
|
||||
it was based on. These may be placed in the ``History'' section.
|
||||
You may omit a network location for a work that was published at
|
||||
least four years before the Document itself, or if the original
|
||||
publisher of the version it refers to gives permission.
|
||||
|
||||
@item
|
||||
For any section Entitled ``Acknowledgements'' or ``Dedications'', Preserve
|
||||
the Title of the section, and preserve in the section all the
|
||||
substance and tone of each of the contributor acknowledgements and/or
|
||||
dedications given therein.
|
||||
|
||||
@item
|
||||
Preserve all the Invariant Sections of the Document,
|
||||
unaltered in their text and in their titles. Section numbers
|
||||
or the equivalent are not considered part of the section titles.
|
||||
|
||||
@item
|
||||
Delete any section Entitled ``Endorsements''. Such a section
|
||||
may not be included in the Modified Version.
|
||||
|
||||
@item
|
||||
Do not retitle any existing section to be Entitled ``Endorsements'' or
|
||||
to conflict in title with any Invariant Section.
|
||||
|
||||
@item
|
||||
Preserve any Warranty Disclaimers.
|
||||
@end enumerate
|
||||
|
||||
If the Modified Version includes new front-matter sections or
|
||||
appendices that qualify as Secondary Sections and contain no material
|
||||
copied from the Document, you may at your option designate some or all
|
||||
of these sections as invariant. To do this, add their titles to the
|
||||
list of Invariant Sections in the Modified Version's license notice.
|
||||
These titles must be distinct from any other section titles.
|
||||
|
||||
You may add a section Entitled ``Endorsements'', provided it contains
|
||||
nothing but endorsements of your Modified Version by various
|
||||
parties---for example, statements of peer review or that the text has
|
||||
been approved by an organization as the authoritative definition of a
|
||||
standard.
|
||||
|
||||
You may add a passage of up to five words as a Front-Cover Text, and a
|
||||
passage of up to 25 words as a Back-Cover Text, to the end of the list
|
||||
of Cover Texts in the Modified Version. Only one passage of
|
||||
Front-Cover Text and one of Back-Cover Text may be added by (or
|
||||
through arrangements made by) any one entity. If the Document already
|
||||
includes a cover text for the same cover, previously added by you or
|
||||
by arrangement made by the same entity you are acting on behalf of,
|
||||
you may not add another; but you may replace the old one, on explicit
|
||||
permission from the previous publisher that added the old one.
|
||||
|
||||
The author(s) and publisher(s) of the Document do not by this License
|
||||
give permission to use their names for publicity for or to assert or
|
||||
imply endorsement of any Modified Version.
|
||||
|
||||
@item
|
||||
COMBINING DOCUMENTS
|
||||
|
||||
You may combine the Document with other documents released under this
|
||||
License, under the terms defined in section 4 above for modified
|
||||
versions, provided that you include in the combination all of the
|
||||
Invariant Sections of all of the original documents, unmodified, and
|
||||
list them all as Invariant Sections of your combined work in its
|
||||
license notice, and that you preserve all their Warranty Disclaimers.
|
||||
|
||||
The combined work need only contain one copy of this License, and
|
||||
multiple identical Invariant Sections may be replaced with a single
|
||||
copy. If there are multiple Invariant Sections with the same name but
|
||||
different contents, make the title of each such section unique by
|
||||
adding at the end of it, in parentheses, the name of the original
|
||||
author or publisher of that section if known, or else a unique number.
|
||||
Make the same adjustment to the section titles in the list of
|
||||
Invariant Sections in the license notice of the combined work.
|
||||
|
||||
In the combination, you must combine any sections Entitled ``History''
|
||||
in the various original documents, forming one section Entitled
|
||||
``History''; likewise combine any sections Entitled ``Acknowledgements'',
|
||||
and any sections Entitled ``Dedications''. You must delete all
|
||||
sections Entitled ``Endorsements.''
|
||||
|
||||
@item
|
||||
COLLECTIONS OF DOCUMENTS
|
||||
|
||||
You may make a collection consisting of the Document and other documents
|
||||
released under this License, and replace the individual copies of this
|
||||
License in the various documents with a single copy that is included in
|
||||
the collection, provided that you follow the rules of this License for
|
||||
verbatim copying of each of the documents in all other respects.
|
||||
|
||||
You may extract a single document from such a collection, and distribute
|
||||
it individually under this License, provided you insert a copy of this
|
||||
License into the extracted document, and follow this License in all
|
||||
other respects regarding verbatim copying of that document.
|
||||
|
||||
@item
|
||||
AGGREGATION WITH INDEPENDENT WORKS
|
||||
|
||||
A compilation of the Document or its derivatives with other separate
|
||||
and independent documents or works, in or on a volume of a storage or
|
||||
distribution medium, is called an ``aggregate'' if the copyright
|
||||
resulting from the compilation is not used to limit the legal rights
|
||||
of the compilation's users beyond what the individual works permit.
|
||||
When the Document is included in an aggregate, this License does not
|
||||
apply to the other works in the aggregate which are not themselves
|
||||
derivative works of the Document.
|
||||
|
||||
If the Cover Text requirement of section 3 is applicable to these
|
||||
copies of the Document, then if the Document is less than one half of
|
||||
the entire aggregate, the Document's Cover Texts may be placed on
|
||||
covers that bracket the Document within the aggregate, or the
|
||||
electronic equivalent of covers if the Document is in electronic form.
|
||||
Otherwise they must appear on printed covers that bracket the whole
|
||||
aggregate.
|
||||
|
||||
@item
|
||||
TRANSLATION
|
||||
|
||||
Translation is considered a kind of modification, so you may
|
||||
distribute translations of the Document under the terms of section 4.
|
||||
Replacing Invariant Sections with translations requires special
|
||||
permission from their copyright holders, but you may include
|
||||
translations of some or all Invariant Sections in addition to the
|
||||
original versions of these Invariant Sections. You may include a
|
||||
translation of this License, and all the license notices in the
|
||||
Document, and any Warranty Disclaimers, provided that you also include
|
||||
the original English version of this License and the original versions
|
||||
of those notices and disclaimers. In case of a disagreement between
|
||||
the translation and the original version of this License or a notice
|
||||
or disclaimer, the original version will prevail.
|
||||
|
||||
If a section in the Document is Entitled ``Acknowledgements'',
|
||||
``Dedications'', or ``History'', the requirement (section 4) to Preserve
|
||||
its Title (section 1) will typically require changing the actual
|
||||
title.
|
||||
|
||||
@item
|
||||
TERMINATION
|
||||
|
||||
You may not copy, modify, sublicense, or distribute the Document
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense, or distribute it is void, and
|
||||
will automatically terminate your rights under this License.
|
||||
|
||||
However, if you cease all violation of this License, then your license
|
||||
from a particular copyright holder is reinstated (a) provisionally,
|
||||
unless and until the copyright holder explicitly and finally
|
||||
terminates your license, and (b) permanently, if the copyright holder
|
||||
fails to notify you of the violation by some reasonable means prior to
|
||||
60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, receipt of a copy of some or all of the same material does
|
||||
not give you any rights to use it.
|
||||
|
||||
@item
|
||||
FUTURE REVISIONS OF THIS LICENSE
|
||||
|
||||
The Free Software Foundation may publish new, revised versions
|
||||
of the GNU Free Documentation License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns. See
|
||||
@uref{http://www.gnu.org/copyleft/}.
|
||||
|
||||
Each version of the License is given a distinguishing version number.
|
||||
If the Document specifies that a particular numbered version of this
|
||||
License ``or any later version'' applies to it, you have the option of
|
||||
following the terms and conditions either of that specified version or
|
||||
of any later version that has been published (not as a draft) by the
|
||||
Free Software Foundation. If the Document does not specify a version
|
||||
number of this License, you may choose any version ever published (not
|
||||
as a draft) by the Free Software Foundation. If the Document
|
||||
specifies that a proxy can decide which future versions of this
|
||||
License can be used, that proxy's public statement of acceptance of a
|
||||
version permanently authorizes you to choose that version for the
|
||||
Document.
|
||||
|
||||
@item
|
||||
RELICENSING
|
||||
|
||||
``Massive Multiauthor Collaboration Site'' (or ``MMC Site'') means any
|
||||
World Wide Web server that publishes copyrightable works and also
|
||||
provides prominent facilities for anybody to edit those works. A
|
||||
public wiki that anybody can edit is an example of such a server. A
|
||||
``Massive Multiauthor Collaboration'' (or ``MMC'') contained in the
|
||||
site means any set of copyrightable works thus published on the MMC
|
||||
site.
|
||||
|
||||
``CC-BY-SA'' means the Creative Commons Attribution-Share Alike 3.0
|
||||
license published by Creative Commons Corporation, a not-for-profit
|
||||
corporation with a principal place of business in San Francisco,
|
||||
California, as well as future copyleft versions of that license
|
||||
published by that same organization.
|
||||
|
||||
``Incorporate'' means to publish or republish a Document, in whole or
|
||||
in part, as part of another Document.
|
||||
|
||||
An MMC is ``eligible for relicensing'' if it is licensed under this
|
||||
License, and if all works that were first published under this License
|
||||
somewhere other than this MMC, and subsequently incorporated in whole
|
||||
or in part into the MMC, (1) had no cover texts or invariant sections,
|
||||
and (2) were thus incorporated prior to November 1, 2008.
|
||||
|
||||
The operator of an MMC Site may republish an MMC contained in the site
|
||||
under CC-BY-SA on the same site at any time before August 1, 2009,
|
||||
provided the MMC is eligible for relicensing.
|
||||
|
||||
@end enumerate
|
||||
|
||||
@page
|
||||
@heading ADDENDUM: How to use this License for your documents
|
||||
|
||||
To use this License in a document you have written, include a copy of
|
||||
the License in the document and put the following copyright and
|
||||
license notices just after the title page:
|
||||
|
||||
@smallexample
|
||||
@group
|
||||
Copyright (C) @var{year} @var{your name}.
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.3
|
||||
or any later version published by the Free Software Foundation;
|
||||
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
|
||||
Texts. A copy of the license is included in the section entitled ``GNU
|
||||
Free Documentation License''.
|
||||
@end group
|
||||
@end smallexample
|
||||
|
||||
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
|
||||
replace the ``with@dots{}Texts.'' line with this:
|
||||
|
||||
@smallexample
|
||||
@group
|
||||
with the Invariant Sections being @var{list their titles}, with
|
||||
the Front-Cover Texts being @var{list}, and with the Back-Cover Texts
|
||||
being @var{list}.
|
||||
@end group
|
||||
@end smallexample
|
||||
|
||||
If you have Invariant Sections without Cover Texts, or some other
|
||||
combination of the three, merge those two alternatives to suit the
|
||||
situation.
|
||||
|
||||
If your document contains nontrivial examples of program code, we
|
||||
recommend releasing these examples in parallel under your choice of
|
||||
free software license, such as the GNU General Public License,
|
||||
to permit their use in free software.
|
||||
|
||||
@c Local Variables:
|
||||
@c ispell-local-pdict: "ispell-dict"
|
||||
@c End:
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../doc/fdl.texi
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on March, 18 2009 by texi2html 1.64 -->
|
||||
<!-- Created on October, 12 2009 by texi2html 1.64 -->
|
||||
<!--
|
||||
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
||||
Karl Berry <karl@freefriends.org>
|
||||
@@ -2115,7 +2115,7 @@ to permit their use in free software.
|
||||
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="history.html#SEC_About"> ? </A>]</TD>
|
||||
</TR></TABLE>
|
||||
<H1>About this document</H1>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>March, 18 2009</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -2277,7 +2277,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>March, 18 2009</I>
|
||||
by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
This is history.info, produced by makeinfo version 4.13 from
|
||||
./history.texi.
|
||||
|
||||
This document describes the GNU History library (version 6.0, 28
|
||||
October 2008), a programming tool that provides a consistent user
|
||||
interface for recalling lines of previously typed input.
|
||||
This document describes the GNU History library (version 6.1, 9 October
|
||||
2009), a programming tool that provides a consistent user interface for
|
||||
recalling lines of previously typed input.
|
||||
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
|
||||
@@ -1368,27 +1368,27 @@ Appendix C Function and Variable Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top1269
|
||||
Node: Using History Interactively1914
|
||||
Node: History Interaction2422
|
||||
Node: Event Designators3846
|
||||
Node: Word Designators4781
|
||||
Node: Modifiers6420
|
||||
Node: Programming with GNU History7645
|
||||
Node: Introduction to History8388
|
||||
Node: History Storage10078
|
||||
Node: History Functions11213
|
||||
Node: Initializing History and State Management12202
|
||||
Node: History List Management13014
|
||||
Node: Information About the History List15046
|
||||
Node: Moving Around the History List16543
|
||||
Node: Searching the History List17544
|
||||
Node: Managing the History File19476
|
||||
Node: History Expansion21296
|
||||
Node: History Variables23204
|
||||
Node: History Programming Example26010
|
||||
Node: GNU Free Documentation License28687
|
||||
Node: Concept Index53878
|
||||
Node: Function and Variable Index54583
|
||||
Node: Top1268
|
||||
Node: Using History Interactively1913
|
||||
Node: History Interaction2421
|
||||
Node: Event Designators3845
|
||||
Node: Word Designators4780
|
||||
Node: Modifiers6419
|
||||
Node: Programming with GNU History7644
|
||||
Node: Introduction to History8387
|
||||
Node: History Storage10077
|
||||
Node: History Functions11212
|
||||
Node: Initializing History and State Management12201
|
||||
Node: History List Management13013
|
||||
Node: Information About the History List15045
|
||||
Node: Moving Around the History List16542
|
||||
Node: Searching the History List17543
|
||||
Node: Managing the History File19475
|
||||
Node: History Expansion21295
|
||||
Node: History Variables23203
|
||||
Node: History Programming Example26009
|
||||
Node: GNU Free Documentation License28686
|
||||
Node: Concept Index53877
|
||||
Node: Function and Variable Index54582
|
||||
|
||||
End Tag Table
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 18 MAR 2009 08:22
|
||||
**/Users/chet/src/bash/src/lib/readline/doc/history.texi
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/history.texi (./texinfo.tex
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 12 OCT 2009 10:10
|
||||
**/usr/homes/chet/src/bash/src/lib/readline/doc/history.texi
|
||||
(/usr/homes/chet/src/bash/src/lib/readline/doc/history.texi (./texinfo.tex
|
||||
Loading texinfo [version 2009-01-18.17]:
|
||||
\bindingoffset=\dimen16
|
||||
\normaloffset=\dimen17
|
||||
@@ -179,11 +179,11 @@ and turning on texinfo input format.) (./history.aux)
|
||||
Appendix C [20] (./history.vrs) [21] )
|
||||
Here is how much of TeX's memory you used:
|
||||
1745 strings out of 97980
|
||||
20831 string characters out of 1221004
|
||||
66068 words of memory out of 1500000
|
||||
20843 string characters out of 1221004
|
||||
66066 words of memory out of 1500000
|
||||
2572 multiletter control sequences out of 10000+50000
|
||||
32127 words of font info for 112 fonts, out of 1200000 for 2000
|
||||
51 hyphenation exceptions out of 8191
|
||||
15i,6n,14p,325b,490s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
15i,6n,14p,329b,490s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
|
||||
Output written on history.dvi (24 pages, 85440 bytes).
|
||||
|
||||
+10
-10
@@ -11,7 +11,7 @@
|
||||
%DVIPSWebPage: (www.radicaleye.com)
|
||||
%DVIPSCommandLine: dvips -D 300 -o history.ps history.dvi
|
||||
%DVIPSParameters: dpi=300
|
||||
%DVIPSSource: TeX output 2009.03.18:0822
|
||||
%DVIPSSource: TeX output 2009.10.12:1010
|
||||
%%BeginProcSet: tex.pro 0 0
|
||||
%!
|
||||
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
|
||||
@@ -3205,19 +3205,19 @@ TeXDict begin
|
||||
%%EndSetup
|
||||
%%Page: 1 1
|
||||
TeXDict begin 1 0 bop 75 659 a Fs(GNU)33 b(History)e(Library)p
|
||||
75 709 1800 17 v 960 757 a Fr(Edition)14 b(6.0,)g(for)h
|
||||
Fq(History)f(Library)g Fr(V)l(ersion)h(6.0.)1608 811
|
||||
y(Octob)q(er)h(2008)75 2467 y Fp(Chet)22 b(Ramey)-6 b(,)23
|
||||
75 709 1800 17 v 960 757 a Fr(Edition)14 b(6.1,)g(for)h
|
||||
Fq(History)f(Library)g Fr(V)l(ersion)h(6.1.)1608 811
|
||||
y(Octob)q(er)h(2009)75 2467 y Fp(Chet)22 b(Ramey)-6 b(,)23
|
||||
b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)75
|
||||
2534 y(Brian)g(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 b(Soft)n(w)n(are)f(F)-6
|
||||
b(oundation)p 75 2570 1800 9 v eop end
|
||||
%%Page: 2 2
|
||||
TeXDict begin 2 1 bop 75 1512 a Fr(This)17 b(do)q(cumen)o(t)i(describ)q
|
||||
(es)f(the)g(GNU)g(History)f(library)f(\(v)o(ersion)h(6.0,)g(28)g(Octob)
|
||||
q(er)i(2008\),)e(a)g(pro-)75 1567 y(gramming)10 b(to)q(ol)g(that)g(pro)
|
||||
o(vides)h(a)g(consisten)o(t)f(user)i(in)o(terface)e(for)h(recalling)f
|
||||
(lines)g(of)h(previously)g(t)o(yp)q(ed)75 1621 y(input.)75
|
||||
1689 y(Cop)o(yrigh)o(t)301 1688 y(c)289 1689 y Fo(\015)k
|
||||
TeXDict begin 2 1 bop 75 1512 a Fr(This)11 b(do)q(cumen)o(t)i(describ)q
|
||||
(es)f(the)g(GNU)g(History)e(library)h(\(v)o(ersion)g(6.1,)g(9)g(Octob)q
|
||||
(er)i(2009\),)d(a)i(program-)75 1567 y(ming)18 b(to)q(ol)g(that)h(pro)o
|
||||
(vides)f(a)h(consisten)o(t)f(user)h(in)o(terface)f(for)h(recalling)e
|
||||
(lines)i(of)f(previously)h(t)o(yp)q(ed)75 1621 y(input.)75
|
||||
1689 y(Cop)o(yrigh)o(t)301 1688 y(c)289 1689 y Fo(\015)c
|
||||
Fr(1988{2009)e(F)l(ree)i(Soft)o(w)o(are)f(F)l(oundation,)g(Inc.)75
|
||||
1756 y(P)o(ermission)h(is)g(gran)o(ted)h(to)f(mak)o(e)h(and)g
|
||||
(distribute)g(v)o(erbatim)e(copies)i(of)g(this)g(man)o(ual)f(pro)o
|
||||
|
||||
Binary file not shown.
+700
-617
File diff suppressed because it is too large
Load Diff
+173
-106
@@ -1,8 +1,8 @@
|
||||
This is readline.info, produced by makeinfo version 4.13 from
|
||||
./rlman.texi.
|
||||
|
||||
This manual describes the GNU Readline Library (version 6.0, 28 October
|
||||
2008), a library which aids in the consistency of user interface across
|
||||
This manual describes the GNU Readline Library (version 6.1, 9 October
|
||||
2009), a library which aids in the consistency of user interface across
|
||||
discrete programs which provide a command line interface.
|
||||
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
@@ -441,11 +441,22 @@ Variable Settings
|
||||
editing mode, where the keystrokes are most similar to Emacs.
|
||||
This variable can be set to either `emacs' or `vi'.
|
||||
|
||||
`echo-control-characters'
|
||||
When set to `on', on operating systems that indicate they
|
||||
support it, readline echoes a character corresponding to a
|
||||
signal generated from the keyboard. The default is `on'.
|
||||
|
||||
`enable-keypad'
|
||||
When set to `on', Readline will try to enable the application
|
||||
keypad when it is called. Some systems need this to enable
|
||||
the arrow keys. The default is `off'.
|
||||
|
||||
`enable-meta-key'
|
||||
When set to `on', Readline will try to enable any meta
|
||||
modifier key the terminal claims to support when it is
|
||||
called. On many terminals, the meta key is used to send
|
||||
eight-bit characters. The default is `on'.
|
||||
|
||||
`expand-tilde'
|
||||
If set to `on', tilde expansion is performed when Readline
|
||||
attempts word completion. The default is `off'.
|
||||
@@ -548,6 +559,19 @@ Variable Settings
|
||||
be listed immediately instead of ringing the bell. The
|
||||
default value is `off'.
|
||||
|
||||
`skip-completed-text'
|
||||
If set to `on', this alters the default completion behavior
|
||||
when inserting a single match into the line. It's only
|
||||
active when performing completion in the middle of a word.
|
||||
If enabled, readline does not insert characters from the
|
||||
completion that match characters after point in the word
|
||||
being completed, so portions of the word following the cursor
|
||||
are not duplicated. For instance, if this is enabled,
|
||||
attempting completion when the cursor is after the `e' in
|
||||
`Makefile' will result in `Makefile' rather than
|
||||
`Makefilefile', assuming there is a single possible
|
||||
completion. The default value is `off'.
|
||||
|
||||
`visible-stats'
|
||||
If set to `on', a character denoting a file's type is
|
||||
appended to the filename when listing possible completions.
|
||||
@@ -1162,6 +1186,11 @@ File: readline.info, Node: Commands For Completion, Next: Keyboard Macros, Pr
|
||||
command is intended to be bound to <TAB>, but is unbound by
|
||||
default.
|
||||
|
||||
`menu-complete-backward ()'
|
||||
Identical to `menu-complete', but moves backward through the list
|
||||
of possible completions, as if `menu-complete' had been given a
|
||||
negative argument.
|
||||
|
||||
`delete-char-or-list ()'
|
||||
Deletes the character under the cursor if not at the beginning or
|
||||
end of the line (like `delete-char'). If at the end of the line,
|
||||
@@ -1238,6 +1267,15 @@ File: readline.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up:
|
||||
of that character. A negative count searches for subsequent
|
||||
occurrences.
|
||||
|
||||
`skip-csi-sequence ()'
|
||||
Read enough characters to consume a multi-key sequence such as
|
||||
those defined for keys like Home and End. Such sequences begin
|
||||
with a Control Sequence Indicator (CSI), usually ESC-[. If this
|
||||
sequence is bound to "\e[", keys producing such sequences will
|
||||
have no effect unless explicitly bound to a readline command,
|
||||
instead of inserting stray characters into the editing buffer.
|
||||
This is unbound by default, but usually bound to ESC-[.
|
||||
|
||||
`insert-comment (M-#)'
|
||||
Without a numeric argument, the value of the `comment-begin'
|
||||
variable is inserted at the beginning of the current line. If a
|
||||
@@ -1903,7 +1941,7 @@ which keymap to use.
|
||||
-- Function: Keymap rl_make_bare_keymap (void)
|
||||
Returns a new, empty keymap. The space for the keymap is
|
||||
allocated with `malloc()'; the caller should free it by calling
|
||||
`rl_discard_keymap()' when done.
|
||||
`rl_free_keymap()' when done.
|
||||
|
||||
-- Function: Keymap rl_copy_keymap (Keymap map)
|
||||
Return a new keymap which is a copy of MAP.
|
||||
@@ -1915,7 +1953,12 @@ which keymap to use.
|
||||
arguments.
|
||||
|
||||
-- Function: void rl_discard_keymap (Keymap keymap)
|
||||
Free the storage associated with KEYMAP.
|
||||
Free the storage associated with the data in KEYMAP. The caller
|
||||
should free KEYMAP.
|
||||
|
||||
-- Function: void rl_free_keymap (Keymap keymap)
|
||||
Free all storage associated with KEYMAP. This calls
|
||||
`rl_discard_keymap' to free subordindate keymaps and macros.
|
||||
|
||||
Readline has several internal keymaps. These functions allow you to
|
||||
change which keymap is active.
|
||||
@@ -2930,6 +2973,21 @@ File: readline.info, Node: Completion Variables, Next: A Short Completion Exam
|
||||
from the directory name, because its result will be passed
|
||||
directly to `opendir()'.
|
||||
|
||||
-- Variable: rl_dequote_func_t * rl_filename_rewrite_hook
|
||||
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
|
||||
the filename, such as converting between character sets or
|
||||
converting from a filesystem format to a character input format.
|
||||
The function takes two arguments: FNAME, the filename to be
|
||||
converted, and FNLEN, its length in bytes. It must either return
|
||||
its first argument (if no conversion takes place) or the converted
|
||||
filename in newly-allocated memory. The converted form is used to
|
||||
compare against the word to be completed, and, if it matches, is
|
||||
added to the list of matches. Readline will free the allocated
|
||||
string.
|
||||
|
||||
-- Variable: rl_compdisp_func_t * rl_completion_display_matches_hook
|
||||
If non-zero, then this is the address of a function to call when
|
||||
completing a word would normally display the list of possible
|
||||
@@ -4141,7 +4199,7 @@ Function and Variable Index
|
||||
(line 45)
|
||||
* delete-char (C-d): Commands For Text. (line 6)
|
||||
* delete-char-or-list (): Commands For Completion.
|
||||
(line 30)
|
||||
(line 35)
|
||||
* delete-horizontal-space (): Commands For Killing.
|
||||
(line 37)
|
||||
* digit-argument (M-0, M-1, ... M--): Numeric Arguments. (line 6)
|
||||
@@ -4151,15 +4209,15 @@ Function and Variable Index
|
||||
(line 14)
|
||||
* downcase-word (M-l): Commands For Text. (line 45)
|
||||
* dump-functions (): Miscellaneous Commands.
|
||||
(line 61)
|
||||
(line 70)
|
||||
* dump-macros (): Miscellaneous Commands.
|
||||
(line 73)
|
||||
(line 82)
|
||||
* dump-variables (): Miscellaneous Commands.
|
||||
(line 67)
|
||||
(line 76)
|
||||
* editing-mode: Readline Init File Syntax.
|
||||
(line 85)
|
||||
* enable-keypad: Readline Init File Syntax.
|
||||
(line 91)
|
||||
(line 96)
|
||||
* end-kbd-macro (C-x )): Keyboard Macros. (line 9)
|
||||
* end-of-history (M->): Commands For History.
|
||||
(line 22)
|
||||
@@ -4167,32 +4225,32 @@ Function and Variable Index
|
||||
* exchange-point-and-mark (C-x C-x): Miscellaneous Commands.
|
||||
(line 36)
|
||||
* expand-tilde: Readline Init File Syntax.
|
||||
(line 96)
|
||||
(line 107)
|
||||
* forward-backward-delete-char (): Commands For Text. (line 15)
|
||||
* forward-char (C-f): Commands For Moving. (line 12)
|
||||
* forward-search-history (C-s): Commands For History.
|
||||
(line 30)
|
||||
* forward-word (M-f): Commands For Moving. (line 18)
|
||||
* history-preserve-point: Readline Init File Syntax.
|
||||
(line 100)
|
||||
(line 111)
|
||||
* history-search-backward (): Commands For History.
|
||||
(line 50)
|
||||
* history-search-forward (): Commands For History.
|
||||
(line 45)
|
||||
* history-size: Readline Init File Syntax.
|
||||
(line 106)
|
||||
(line 117)
|
||||
* horizontal-scroll-mode: Readline Init File Syntax.
|
||||
(line 111)
|
||||
(line 122)
|
||||
* input-meta: Readline Init File Syntax.
|
||||
(line 118)
|
||||
(line 129)
|
||||
* insert-comment (M-#): Miscellaneous Commands.
|
||||
(line 51)
|
||||
(line 60)
|
||||
* insert-completions (M-*): Commands For Completion.
|
||||
(line 14)
|
||||
* isearch-terminators: Readline Init File Syntax.
|
||||
(line 125)
|
||||
(line 136)
|
||||
* keymap: Readline Init File Syntax.
|
||||
(line 132)
|
||||
(line 143)
|
||||
* kill-line (C-k): Commands For Killing.
|
||||
(line 6)
|
||||
* kill-region (): Commands For Killing.
|
||||
@@ -4202,15 +4260,17 @@ Function and Variable Index
|
||||
* kill-word (M-d): Commands For Killing.
|
||||
(line 19)
|
||||
* mark-modified-lines: Readline Init File Syntax.
|
||||
(line 145)
|
||||
(line 156)
|
||||
* mark-symlinked-directories: Readline Init File Syntax.
|
||||
(line 150)
|
||||
(line 161)
|
||||
* match-hidden-files: Readline Init File Syntax.
|
||||
(line 155)
|
||||
(line 166)
|
||||
* menu-complete (): Commands For Completion.
|
||||
(line 18)
|
||||
* menu-complete-backward (): Commands For Completion.
|
||||
(line 30)
|
||||
* meta-flag: Readline Init File Syntax.
|
||||
(line 118)
|
||||
(line 129)
|
||||
* next-history (C-n): Commands For History.
|
||||
(line 16)
|
||||
* non-incremental-forward-search-history (M-n): Commands For History.
|
||||
@@ -4218,10 +4278,10 @@ Function and Variable Index
|
||||
* non-incremental-reverse-search-history (M-p): Commands For History.
|
||||
(line 35)
|
||||
* output-meta: Readline Init File Syntax.
|
||||
(line 162)
|
||||
(line 173)
|
||||
* overwrite-mode (): Commands For Text. (line 53)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 167)
|
||||
(line 178)
|
||||
* possible-completions (M-?): Commands For Completion.
|
||||
(line 11)
|
||||
* prefix-meta (<ESC>): Miscellaneous Commands.
|
||||
@@ -4236,7 +4296,7 @@ Function and Variable Index
|
||||
* reverse-search-history (C-r): Commands For History.
|
||||
(line 26)
|
||||
* revert-all-at-newline: Readline Init File Syntax.
|
||||
(line 177)
|
||||
(line 188)
|
||||
* revert-line (M-r): Miscellaneous Commands.
|
||||
(line 25)
|
||||
* rl_add_defun: Function Naming. (line 20)
|
||||
@@ -4248,11 +4308,11 @@ Function and Variable Index
|
||||
* rl_attempted_completion_function: Completion Variables.
|
||||
(line 12)
|
||||
* rl_attempted_completion_over: Completion Variables.
|
||||
(line 210)
|
||||
(line 225)
|
||||
* rl_basic_quote_characters: Completion Variables.
|
||||
(line 99)
|
||||
(line 114)
|
||||
* rl_basic_word_break_characters: Completion Variables.
|
||||
(line 93)
|
||||
(line 108)
|
||||
* rl_begin_undo_group: Allowing Undoing. (line 29)
|
||||
* rl_bind_key: Binding Keys. (line 22)
|
||||
* rl_bind_key_if_unbound: Binding Keys. (line 32)
|
||||
@@ -4285,39 +4345,39 @@ Function and Variable Index
|
||||
* rl_complete_internal: Completion Functions.
|
||||
(line 10)
|
||||
* rl_completer_quote_characters: Completion Variables.
|
||||
(line 116)
|
||||
(line 131)
|
||||
* rl_completer_word_break_characters: Completion Variables.
|
||||
(line 102)
|
||||
(line 117)
|
||||
* rl_completion_append_character: Completion Variables.
|
||||
(line 140)
|
||||
(line 155)
|
||||
* rl_completion_display_matches_hook: Completion Variables.
|
||||
(line 80)
|
||||
(line 95)
|
||||
* rl_completion_entry_function <1>: How Completing Works.
|
||||
(line 55)
|
||||
* rl_completion_entry_function: Completion Variables.
|
||||
(line 7)
|
||||
* rl_completion_found_quote: Completion Variables.
|
||||
(line 168)
|
||||
(line 183)
|
||||
* rl_completion_invoking_key: Completion Variables.
|
||||
(line 233)
|
||||
(line 248)
|
||||
* rl_completion_mark_symlink_dirs: Completion Variables.
|
||||
(line 175)
|
||||
(line 190)
|
||||
* rl_completion_matches: Completion Functions.
|
||||
(line 45)
|
||||
* rl_completion_mode: Completion Functions.
|
||||
(line 37)
|
||||
* rl_completion_query_items: Completion Variables.
|
||||
(line 134)
|
||||
(line 149)
|
||||
* rl_completion_quote_character: Completion Variables.
|
||||
(line 156)
|
||||
(line 171)
|
||||
* rl_completion_suppress_append: Completion Variables.
|
||||
(line 150)
|
||||
(line 165)
|
||||
* rl_completion_suppress_quote: Completion Variables.
|
||||
(line 162)
|
||||
(line 177)
|
||||
* rl_completion_type: Completion Variables.
|
||||
(line 225)
|
||||
(line 240)
|
||||
* rl_completion_word_break_hook: Completion Variables.
|
||||
(line 107)
|
||||
(line 122)
|
||||
* rl_copy_keymap: Keymaps. (line 17)
|
||||
* rl_copy_text: Modifying Text. (line 15)
|
||||
* rl_crlf: Redisplay. (line 30)
|
||||
@@ -4347,19 +4407,22 @@ Function and Variable Index
|
||||
* rl_explicit_arg: Readline Variables. (line 261)
|
||||
* rl_extend_line_buffer: Utility Functions. (line 27)
|
||||
* rl_filename_completion_desired: Completion Variables.
|
||||
(line 190)
|
||||
(line 205)
|
||||
* rl_filename_completion_function: Completion Functions.
|
||||
(line 59)
|
||||
* rl_filename_dequoting_function: Completion Variables.
|
||||
(line 37)
|
||||
* rl_filename_quote_characters: Completion Variables.
|
||||
(line 122)
|
||||
(line 137)
|
||||
* rl_filename_quoting_desired: Completion Variables.
|
||||
(line 200)
|
||||
(line 215)
|
||||
* rl_filename_quoting_function: Completion Variables.
|
||||
(line 24)
|
||||
* rl_filename_rewrite_hook: Completion Variables.
|
||||
(line 80)
|
||||
* rl_forced_update_display: Redisplay. (line 11)
|
||||
* rl_free: Utility Functions. (line 18)
|
||||
* rl_free_keymap: Keymaps. (line 30)
|
||||
* rl_free_line_state: Readline Signal Handling.
|
||||
(line 72)
|
||||
* rl_free_undo_list: Allowing Undoing. (line 45)
|
||||
@@ -4370,9 +4433,9 @@ Function and Variable Index
|
||||
* rl_funmap_names: Associating Function Names and Bindings.
|
||||
(line 40)
|
||||
* rl_generic_bind: Binding Keys. (line 89)
|
||||
* rl_get_keymap: Keymaps. (line 32)
|
||||
* rl_get_keymap_by_name: Keymaps. (line 38)
|
||||
* rl_get_keymap_name: Keymaps. (line 43)
|
||||
* rl_get_keymap: Keymaps. (line 37)
|
||||
* rl_get_keymap_by_name: Keymaps. (line 43)
|
||||
* rl_get_keymap_name: Keymaps. (line 48)
|
||||
* rl_get_screen_size: Readline Signal Handling.
|
||||
(line 108)
|
||||
* rl_get_termcap: Miscellaneous Functions.
|
||||
@@ -4381,11 +4444,11 @@ Function and Variable Index
|
||||
* rl_getc_function: Readline Variables. (line 130)
|
||||
* rl_gnu_readline_p: Readline Variables. (line 83)
|
||||
* rl_ignore_completion_duplicates: Completion Variables.
|
||||
(line 186)
|
||||
(line 201)
|
||||
* rl_ignore_some_completions_function: Completion Variables.
|
||||
(line 56)
|
||||
* rl_inhibit_completion: Completion Variables.
|
||||
(line 239)
|
||||
(line 254)
|
||||
* rl_initialize: Utility Functions. (line 31)
|
||||
* rl_insert_completions: Completion Functions.
|
||||
(line 32)
|
||||
@@ -4450,7 +4513,7 @@ Function and Variable Index
|
||||
* rl_save_state: Utility Functions. (line 7)
|
||||
* rl_set_key: Binding Keys. (line 73)
|
||||
* rl_set_keyboard_input_timeout: Character Input. (line 35)
|
||||
* rl_set_keymap: Keymaps. (line 35)
|
||||
* rl_set_keymap: Keymaps. (line 40)
|
||||
* rl_set_paren_blink_timeout: Miscellaneous Functions.
|
||||
(line 37)
|
||||
* rl_set_prompt: Redisplay. (line 78)
|
||||
@@ -4460,9 +4523,9 @@ Function and Variable Index
|
||||
(line 119)
|
||||
* rl_show_char: Redisplay. (line 33)
|
||||
* rl_sort_completion_matches: Completion Variables.
|
||||
(line 217)
|
||||
(line 232)
|
||||
* rl_special_prefixes: Completion Variables.
|
||||
(line 127)
|
||||
(line 142)
|
||||
* rl_startup_hook: Readline Variables. (line 115)
|
||||
* rl_stuff_char: Character Input. (line 19)
|
||||
* rl_terminal_name: Readline Variables. (line 87)
|
||||
@@ -4484,9 +4547,13 @@ Function and Variable Index
|
||||
* set-mark (C-@): Miscellaneous Commands.
|
||||
(line 32)
|
||||
* show-all-if-ambiguous: Readline Init File Syntax.
|
||||
(line 183)
|
||||
(line 194)
|
||||
* show-all-if-unmodified: Readline Init File Syntax.
|
||||
(line 189)
|
||||
(line 200)
|
||||
* skip-completed-text: Readline Init File Syntax.
|
||||
(line 209)
|
||||
* skip-csi-sequence (): Miscellaneous Commands.
|
||||
(line 51)
|
||||
* start-kbd-macro (C-x (): Keyboard Macros. (line 6)
|
||||
* transpose-chars (C-t): Commands For Text. (line 30)
|
||||
* transpose-words (M-t): Commands For Text. (line 36)
|
||||
@@ -4501,7 +4568,7 @@ Function and Variable Index
|
||||
(line 28)
|
||||
* upcase-word (M-u): Commands For Text. (line 41)
|
||||
* visible-stats: Readline Init File Syntax.
|
||||
(line 198)
|
||||
(line 222)
|
||||
* yank (C-y): Commands For Killing.
|
||||
(line 59)
|
||||
* yank-last-arg (M-. or M-_): Commands For History.
|
||||
@@ -4514,57 +4581,57 @@ Function and Variable Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top1285
|
||||
Node: Command Line Editing1942
|
||||
Node: Introduction and Notation2594
|
||||
Node: Readline Interaction4217
|
||||
Node: Readline Bare Essentials5409
|
||||
Node: Readline Movement Commands7199
|
||||
Node: Readline Killing Commands8165
|
||||
Node: Readline Arguments10086
|
||||
Node: Searching11131
|
||||
Node: Readline Init File13283
|
||||
Node: Readline Init File Syntax14437
|
||||
Node: Conditional Init Constructs27390
|
||||
Node: Sample Init File29924
|
||||
Node: Bindable Readline Commands33042
|
||||
Node: Commands For Moving34100
|
||||
Node: Commands For History34962
|
||||
Node: Commands For Text38087
|
||||
Node: Commands For Killing40814
|
||||
Node: Numeric Arguments42957
|
||||
Node: Commands For Completion44097
|
||||
Node: Keyboard Macros45642
|
||||
Node: Miscellaneous Commands46214
|
||||
Node: Readline vi Mode49576
|
||||
Node: Programming with GNU Readline51400
|
||||
Node: Basic Behavior52386
|
||||
Node: Custom Functions55803
|
||||
Node: Readline Typedefs57287
|
||||
Node: Function Writing58926
|
||||
Node: Readline Variables60233
|
||||
Node: Readline Convenience Functions70899
|
||||
Node: Function Naming71889
|
||||
Node: Keymaps73151
|
||||
Node: Binding Keys74923
|
||||
Node: Associating Function Names and Bindings79470
|
||||
Node: Allowing Undoing81755
|
||||
Node: Redisplay84305
|
||||
Node: Modifying Text88205
|
||||
Node: Character Input89451
|
||||
Node: Terminal Management91349
|
||||
Node: Utility Functions92785
|
||||
Node: Miscellaneous Functions95876
|
||||
Node: Alternate Interface98173
|
||||
Node: A Readline Example100332
|
||||
Node: Readline Signal Handling102235
|
||||
Node: Custom Completers108423
|
||||
Node: How Completing Works109143
|
||||
Node: Completion Functions112457
|
||||
Node: Completion Variables116029
|
||||
Node: A Short Completion Example129134
|
||||
Node: GNU Free Documentation License141913
|
||||
Node: Concept Index167106
|
||||
Node: Function and Variable Index168627
|
||||
Node: Top1284
|
||||
Node: Command Line Editing1941
|
||||
Node: Introduction and Notation2593
|
||||
Node: Readline Interaction4216
|
||||
Node: Readline Bare Essentials5408
|
||||
Node: Readline Movement Commands7198
|
||||
Node: Readline Killing Commands8164
|
||||
Node: Readline Arguments10085
|
||||
Node: Searching11130
|
||||
Node: Readline Init File13282
|
||||
Node: Readline Init File Syntax14436
|
||||
Node: Conditional Init Constructs28642
|
||||
Node: Sample Init File31176
|
||||
Node: Bindable Readline Commands34294
|
||||
Node: Commands For Moving35352
|
||||
Node: Commands For History36214
|
||||
Node: Commands For Text39339
|
||||
Node: Commands For Killing42066
|
||||
Node: Numeric Arguments44209
|
||||
Node: Commands For Completion45349
|
||||
Node: Keyboard Macros47087
|
||||
Node: Miscellaneous Commands47659
|
||||
Node: Readline vi Mode51516
|
||||
Node: Programming with GNU Readline53340
|
||||
Node: Basic Behavior54326
|
||||
Node: Custom Functions57743
|
||||
Node: Readline Typedefs59227
|
||||
Node: Function Writing60866
|
||||
Node: Readline Variables62173
|
||||
Node: Readline Convenience Functions72839
|
||||
Node: Function Naming73829
|
||||
Node: Keymaps75091
|
||||
Node: Binding Keys77084
|
||||
Node: Associating Function Names and Bindings81631
|
||||
Node: Allowing Undoing83916
|
||||
Node: Redisplay86466
|
||||
Node: Modifying Text90366
|
||||
Node: Character Input91612
|
||||
Node: Terminal Management93510
|
||||
Node: Utility Functions94946
|
||||
Node: Miscellaneous Functions98037
|
||||
Node: Alternate Interface100334
|
||||
Node: A Readline Example102493
|
||||
Node: Readline Signal Handling104396
|
||||
Node: Custom Completers110584
|
||||
Node: How Completing Works111304
|
||||
Node: Completion Functions114618
|
||||
Node: Completion Variables118190
|
||||
Node: A Short Completion Example132204
|
||||
Node: GNU Free Documentation License144983
|
||||
Node: Concept Index170176
|
||||
Node: Function and Variable Index171697
|
||||
|
||||
End Tag Table
|
||||
|
||||
+1189
-1102
File diff suppressed because it is too large
Load Diff
@@ -30,9 +30,9 @@
|
||||
@xrdef{Readline Init File Syntax-pg}{4}
|
||||
@xrdef{Conditional Init Constructs-title}{Conditional Init Constructs}
|
||||
@xrdef{Conditional Init Constructs-snt}{Section@tie 1.3.2}
|
||||
@xrdef{Conditional Init Constructs-pg}{9}
|
||||
@xrdef{Sample Init File-title}{Sample Init File}
|
||||
@xrdef{Sample Init File-snt}{Section@tie 1.3.3}
|
||||
@xrdef{Conditional Init Constructs-pg}{10}
|
||||
@xrdef{Sample Init File-pg}{10}
|
||||
@xrdef{Bindable Readline Commands-title}{Bindable Readline Commands}
|
||||
@xrdef{Bindable Readline Commands-snt}{Section@tie 1.4}
|
||||
@@ -57,9 +57,9 @@
|
||||
@xrdef{Keyboard Macros-snt}{Section@tie 1.4.7}
|
||||
@xrdef{Numeric Arguments-pg}{17}
|
||||
@xrdef{Commands For Completion-pg}{17}
|
||||
@xrdef{Keyboard Macros-pg}{17}
|
||||
@xrdef{Miscellaneous Commands-title}{Some Miscellaneous Commands}
|
||||
@xrdef{Miscellaneous Commands-snt}{Section@tie 1.4.8}
|
||||
@xrdef{Keyboard Macros-pg}{18}
|
||||
@xrdef{Miscellaneous Commands-pg}{18}
|
||||
@xrdef{Readline vi Mode-title}{Readline vi Mode}
|
||||
@xrdef{Readline vi Mode-snt}{Section@tie 1.5}
|
||||
|
||||
+16
-11
@@ -6,7 +6,7 @@
|
||||
\entry{convert-meta}{5}{convert-meta}
|
||||
\entry{disable-completion}{5}{disable-completion}
|
||||
\entry{editing-mode}{5}{editing-mode}
|
||||
\entry{enable-keypad}{5}{enable-keypad}
|
||||
\entry{enable-keypad}{6}{enable-keypad}
|
||||
\entry{expand-tilde}{6}{expand-tilde}
|
||||
\entry{history-preserve-point}{6}{history-preserve-point}
|
||||
\entry{history-size}{6}{history-size}
|
||||
@@ -15,7 +15,7 @@
|
||||
\entry{meta-flag}{6}{meta-flag}
|
||||
\entry{isearch-terminators}{6}{isearch-terminators}
|
||||
\entry{keymap}{6}{keymap}
|
||||
\entry{mark-modified-lines}{6}{mark-modified-lines}
|
||||
\entry{mark-modified-lines}{7}{mark-modified-lines}
|
||||
\entry{mark-symlinked-directories}{7}{mark-symlinked-directories}
|
||||
\entry{match-hidden-files}{7}{match-hidden-files}
|
||||
\entry{output-meta}{7}{output-meta}
|
||||
@@ -23,7 +23,8 @@
|
||||
\entry{revert-all-at-newline}{7}{revert-all-at-newline}
|
||||
\entry{show-all-if-ambiguous}{7}{show-all-if-ambiguous}
|
||||
\entry{show-all-if-unmodified}{7}{show-all-if-unmodified}
|
||||
\entry{visible-stats}{7}{visible-stats}
|
||||
\entry{skip-completed-text}{8}{skip-completed-text}
|
||||
\entry{visible-stats}{8}{visible-stats}
|
||||
\entry{beginning-of-line (C-a)}{13}{\code {beginning-of-line (C-a)}}
|
||||
\entry{end-of-line (C-e)}{13}{\code {end-of-line (C-e)}}
|
||||
\entry{forward-char (C-f)}{13}{\code {forward-char (C-f)}}
|
||||
@@ -78,8 +79,9 @@
|
||||
\entry{possible-completions (M-?)}{17}{\code {possible-completions (M-?)}}
|
||||
\entry{insert-completions (M-*)}{17}{\code {insert-completions (M-*)}}
|
||||
\entry{menu-complete ()}{17}{\code {menu-complete ()}}
|
||||
\entry{menu-complete-backward ()}{17}{\code {menu-complete-backward ()}}
|
||||
\entry{delete-char-or-list ()}{17}{\code {delete-char-or-list ()}}
|
||||
\entry{start-kbd-macro (C-x ()}{17}{\code {start-kbd-macro (C-x ()}}
|
||||
\entry{start-kbd-macro (C-x ()}{18}{\code {start-kbd-macro (C-x ()}}
|
||||
\entry{end-kbd-macro (C-x ))}{18}{\code {end-kbd-macro (C-x ))}}
|
||||
\entry{call-last-kbd-macro (C-x e)}{18}{\code {call-last-kbd-macro (C-x e)}}
|
||||
\entry{re-read-init-file (C-x C-r)}{18}{\code {re-read-init-file (C-x C-r)}}
|
||||
@@ -93,7 +95,8 @@
|
||||
\entry{exchange-point-and-mark (C-x C-x)}{18}{\code {exchange-point-and-mark (C-x C-x)}}
|
||||
\entry{character-search (C-])}{18}{\code {character-search (C-])}}
|
||||
\entry{character-search-backward (M-C-])}{18}{\code {character-search-backward (M-C-])}}
|
||||
\entry{insert-comment (M-#)}{18}{\code {insert-comment (M-#)}}
|
||||
\entry{skip-csi-sequence ()}{19}{\code {skip-csi-sequence ()}}
|
||||
\entry{insert-comment (M-#)}{19}{\code {insert-comment (M-#)}}
|
||||
\entry{dump-functions ()}{19}{\code {dump-functions ()}}
|
||||
\entry{dump-variables ()}{19}{\code {dump-variables ()}}
|
||||
\entry{dump-macros ()}{19}{\code {dump-macros ()}}
|
||||
@@ -140,6 +143,7 @@
|
||||
\entry{rl_copy_keymap}{28}{\code {rl_copy_keymap}}
|
||||
\entry{rl_make_keymap}{28}{\code {rl_make_keymap}}
|
||||
\entry{rl_discard_keymap}{28}{\code {rl_discard_keymap}}
|
||||
\entry{rl_free_keymap}{28}{\code {rl_free_keymap}}
|
||||
\entry{rl_get_keymap}{28}{\code {rl_get_keymap}}
|
||||
\entry{rl_set_keymap}{28}{\code {rl_set_keymap}}
|
||||
\entry{rl_get_keymap_by_name}{28}{\code {rl_get_keymap_by_name}}
|
||||
@@ -257,9 +261,10 @@
|
||||
\entry{rl_char_is_quoted_p}{44}{\code {rl_char_is_quoted_p}}
|
||||
\entry{rl_ignore_some_completions_function}{44}{\code {rl_ignore_some_completions_function}}
|
||||
\entry{rl_directory_completion_hook}{44}{\code {rl_directory_completion_hook}}
|
||||
\entry{rl_filename_rewrite_hook}{44}{\code {rl_filename_rewrite_hook}}
|
||||
\entry{rl_completion_display_matches_hook}{44}{\code {rl_completion_display_matches_hook}}
|
||||
\entry{rl_basic_word_break_characters}{44}{\code {rl_basic_word_break_characters}}
|
||||
\entry{rl_basic_quote_characters}{44}{\code {rl_basic_quote_characters}}
|
||||
\entry{rl_basic_word_break_characters}{45}{\code {rl_basic_word_break_characters}}
|
||||
\entry{rl_basic_quote_characters}{45}{\code {rl_basic_quote_characters}}
|
||||
\entry{rl_completer_word_break_characters}{45}{\code {rl_completer_word_break_characters}}
|
||||
\entry{rl_completion_word_break_hook}{45}{\code {rl_completion_word_break_hook}}
|
||||
\entry{rl_completer_quote_characters}{45}{\code {rl_completer_quote_characters}}
|
||||
@@ -267,16 +272,16 @@
|
||||
\entry{rl_special_prefixes}{45}{\code {rl_special_prefixes}}
|
||||
\entry{rl_completion_query_items}{45}{\code {rl_completion_query_items}}
|
||||
\entry{rl_completion_append_character}{45}{\code {rl_completion_append_character}}
|
||||
\entry{rl_completion_suppress_append}{45}{\code {rl_completion_suppress_append}}
|
||||
\entry{rl_completion_quote_character}{45}{\code {rl_completion_quote_character}}
|
||||
\entry{rl_completion_suppress_append}{46}{\code {rl_completion_suppress_append}}
|
||||
\entry{rl_completion_quote_character}{46}{\code {rl_completion_quote_character}}
|
||||
\entry{rl_completion_suppress_quote}{46}{\code {rl_completion_suppress_quote}}
|
||||
\entry{rl_completion_found_quote}{46}{\code {rl_completion_found_quote}}
|
||||
\entry{rl_completion_mark_symlink_dirs}{46}{\code {rl_completion_mark_symlink_dirs}}
|
||||
\entry{rl_ignore_completion_duplicates}{46}{\code {rl_ignore_completion_duplicates}}
|
||||
\entry{rl_filename_completion_desired}{46}{\code {rl_filename_completion_desired}}
|
||||
\entry{rl_filename_quoting_desired}{46}{\code {rl_filename_quoting_desired}}
|
||||
\entry{rl_attempted_completion_over}{46}{\code {rl_attempted_completion_over}}
|
||||
\entry{rl_sort_completion_matches}{46}{\code {rl_sort_completion_matches}}
|
||||
\entry{rl_attempted_completion_over}{47}{\code {rl_attempted_completion_over}}
|
||||
\entry{rl_sort_completion_matches}{47}{\code {rl_sort_completion_matches}}
|
||||
\entry{rl_completion_type}{47}{\code {rl_completion_type}}
|
||||
\entry{rl_completion_invoking_key}{47}{\code {rl_completion_invoking_key}}
|
||||
\entry{rl_inhibit_completion}{47}{\code {rl_inhibit_completion}}
|
||||
|
||||
+16
-11
@@ -46,7 +46,7 @@
|
||||
\initial {E}
|
||||
\entry {editing-mode}{5}
|
||||
\entry {\code {emacs-editing-mode (C-e)}}{19}
|
||||
\entry {enable-keypad}{5}
|
||||
\entry {enable-keypad}{6}
|
||||
\entry {\code {end-kbd-macro (C-x ))}}{18}
|
||||
\entry {\code {end-of-history (M->)}}{14}
|
||||
\entry {\code {end-of-line (C-e)}}{13}
|
||||
@@ -65,7 +65,7 @@
|
||||
\entry {horizontal-scroll-mode}{6}
|
||||
\initial {I}
|
||||
\entry {input-meta}{6}
|
||||
\entry {\code {insert-comment (M-#)}}{18}
|
||||
\entry {\code {insert-comment (M-#)}}{19}
|
||||
\entry {\code {insert-completions (M-*)}}{17}
|
||||
\entry {isearch-terminators}{6}
|
||||
\initial {K}
|
||||
@@ -75,10 +75,11 @@
|
||||
\entry {\code {kill-whole-line ()}}{16}
|
||||
\entry {\code {kill-word (M-d)}}{16}
|
||||
\initial {M}
|
||||
\entry {mark-modified-lines}{6}
|
||||
\entry {mark-modified-lines}{7}
|
||||
\entry {mark-symlinked-directories}{7}
|
||||
\entry {match-hidden-files}{7}
|
||||
\entry {\code {menu-complete ()}}{17}
|
||||
\entry {\code {menu-complete-backward ()}}{17}
|
||||
\entry {meta-flag}{6}
|
||||
\initial {N}
|
||||
\entry {\code {next-history (C-n)}}{14}
|
||||
@@ -107,9 +108,9 @@
|
||||
\entry {\code {rl_alphabetic}}{35}
|
||||
\entry {\code {rl_already_prompted}}{24}
|
||||
\entry {\code {rl_attempted_completion_function}}{43}
|
||||
\entry {\code {rl_attempted_completion_over}}{46}
|
||||
\entry {\code {rl_basic_quote_characters}}{44}
|
||||
\entry {\code {rl_basic_word_break_characters}}{44}
|
||||
\entry {\code {rl_attempted_completion_over}}{47}
|
||||
\entry {\code {rl_basic_quote_characters}}{45}
|
||||
\entry {\code {rl_basic_word_break_characters}}{45}
|
||||
\entry {\code {rl_begin_undo_group}}{31}
|
||||
\entry {\code {rl_bind_key}}{29}
|
||||
\entry {\code {rl_bind_key_if_unbound}}{29}
|
||||
@@ -143,8 +144,8 @@
|
||||
\entry {\code {rl_completion_matches}}{42}
|
||||
\entry {\code {rl_completion_mode}}{42}
|
||||
\entry {\code {rl_completion_query_items}}{45}
|
||||
\entry {\code {rl_completion_quote_character}}{45}
|
||||
\entry {\code {rl_completion_suppress_append}}{45}
|
||||
\entry {\code {rl_completion_quote_character}}{46}
|
||||
\entry {\code {rl_completion_suppress_append}}{46}
|
||||
\entry {\code {rl_completion_suppress_quote}}{46}
|
||||
\entry {\code {rl_completion_type}}{47}
|
||||
\entry {\code {rl_completion_word_break_hook}}{45}
|
||||
@@ -180,8 +181,10 @@
|
||||
\entry {\code {rl_filename_quote_characters}}{45}
|
||||
\entry {\code {rl_filename_quoting_desired}}{46}
|
||||
\entry {\code {rl_filename_quoting_function}}{43}
|
||||
\entry {\code {rl_filename_rewrite_hook}}{44}
|
||||
\entry {\code {rl_forced_update_display}}{32}
|
||||
\entry {\code {rl_free}}{35}
|
||||
\entry {\code {rl_free_keymap}}{28}
|
||||
\entry {\code {rl_free_line_state}}{40}
|
||||
\entry {\code {rl_free_undo_list}}{32}
|
||||
\entry {\code {rl_function_dumper}}{31}
|
||||
@@ -258,7 +261,7 @@
|
||||
\entry {\code {rl_set_screen_size}}{40}
|
||||
\entry {\code {rl_set_signals}}{41}
|
||||
\entry {\code {rl_show_char}}{32}
|
||||
\entry {\code {rl_sort_completion_matches}}{46}
|
||||
\entry {\code {rl_sort_completion_matches}}{47}
|
||||
\entry {\code {rl_special_prefixes}}{45}
|
||||
\entry {\code {rl_startup_hook}}{25}
|
||||
\entry {\code {rl_stuff_char}}{34}
|
||||
@@ -278,7 +281,9 @@
|
||||
\entry {\code {set-mark (C-@)}}{18}
|
||||
\entry {show-all-if-ambiguous}{7}
|
||||
\entry {show-all-if-unmodified}{7}
|
||||
\entry {\code {start-kbd-macro (C-x ()}}{17}
|
||||
\entry {skip-completed-text}{8}
|
||||
\entry {\code {skip-csi-sequence ()}}{19}
|
||||
\entry {\code {start-kbd-macro (C-x ()}}{18}
|
||||
\initial {T}
|
||||
\entry {\code {tab-insert (M-\key {TAB})}}{15}
|
||||
\entry {\code {tilde-expand (M-~)}}{18}
|
||||
@@ -293,7 +298,7 @@
|
||||
\entry {\code {upcase-word (M-u)}}{15}
|
||||
\initial {V}
|
||||
\entry {\code {vi-editing-mode (M-C-j)}}{19}
|
||||
\entry {visible-stats}{7}
|
||||
\entry {visible-stats}{8}
|
||||
\initial {Y}
|
||||
\entry {\code {yank (C-y)}}{16}
|
||||
\entry {\code {yank-last-arg (M-. or M-_)}}{14}
|
||||
|
||||
+10
-10
@@ -1,6 +1,6 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 18 MAR 2009 08:22
|
||||
**/Users/chet/src/bash/src/lib/readline/doc/rlman.texi
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rlman.texi (./texinfo.tex
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 12 OCT 2009 10:10
|
||||
**/usr/homes/chet/src/bash/src/lib/readline/doc/rlman.texi
|
||||
(/usr/homes/chet/src/bash/src/lib/readline/doc/rlman.texi (./texinfo.tex
|
||||
Loading texinfo [version 2009-01-18.17]:
|
||||
\bindingoffset=\dimen16
|
||||
\normaloffset=\dimen17
|
||||
@@ -176,7 +176,7 @@ and turning on texinfo input format.) (./rlman.aux)
|
||||
|
||||
] [2]
|
||||
[3] [4] [5]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 524--540
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 535--551
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -189,7 +189,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[6] [7] [8] [9] [10]
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 846--846
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 871--871
|
||||
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
|
||||
gnored[] |
|
||||
|
||||
@@ -204,7 +204,7 @@ gnored[] |
|
||||
[11] [12] [13] [14] [15] [16] [17] [18]) (./rltech.texi Chapter 2 [19] [20]
|
||||
[21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35]
|
||||
[36] [37] [38] [39] [40] [41] [42] [43] [44] [45]
|
||||
Underfull \hbox (badness 7379) in paragraph at lines 1870--1875
|
||||
Underfull \hbox (badness 7379) in paragraph at lines 1905--1910
|
||||
[]@textrm If an application-specific com-ple-tion func-tion as-signed to @text
|
||||
tt rl_attempted_
|
||||
|
||||
@@ -221,11 +221,11 @@ tt rl_attempted_
|
||||
(Function and Variable Index) [64] (./rlman.fns [65] [66] [67]) [68] )
|
||||
Here is how much of TeX's memory you used:
|
||||
1839 strings out of 97980
|
||||
23013 string characters out of 1221004
|
||||
83614 words of memory out of 1500000
|
||||
23025 string characters out of 1221004
|
||||
88497 words of memory out of 1500000
|
||||
2666 multiletter control sequences out of 10000+50000
|
||||
32127 words of font info for 112 fonts, out of 1200000 for 2000
|
||||
51 hyphenation exceptions out of 8191
|
||||
16i,6n,14p,323b,534s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
16i,6n,14p,327b,534s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
|
||||
Output written on rlman.dvi (72 pages, 292044 bytes).
|
||||
Output written on rlman.dvi (72 pages, 296928 bytes).
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
@numsubsecentry{Searching for Commands in the History}{1.2.5}{Searching}{3}
|
||||
@numsecentry{Readline Init File}{1.3}{Readline Init File}{4}
|
||||
@numsubsecentry{Readline Init File Syntax}{1.3.1}{Readline Init File Syntax}{4}
|
||||
@numsubsecentry{Conditional Init Constructs}{1.3.2}{Conditional Init Constructs}{9}
|
||||
@numsubsecentry{Conditional Init Constructs}{1.3.2}{Conditional Init Constructs}{10}
|
||||
@numsubsecentry{Sample Init File}{1.3.3}{Sample Init File}{10}
|
||||
@numsecentry{Bindable Readline Commands}{1.4}{Bindable Readline Commands}{13}
|
||||
@numsubsecentry{Commands For Moving}{1.4.1}{Commands For Moving}{13}
|
||||
@@ -17,7 +17,7 @@
|
||||
@numsubsecentry{Killing And Yanking}{1.4.4}{Commands For Killing}{16}
|
||||
@numsubsecentry{Specifying Numeric Arguments}{1.4.5}{Numeric Arguments}{17}
|
||||
@numsubsecentry{Letting Readline Type For You}{1.4.6}{Commands For Completion}{17}
|
||||
@numsubsecentry{Keyboard Macros}{1.4.7}{Keyboard Macros}{17}
|
||||
@numsubsecentry{Keyboard Macros}{1.4.7}{Keyboard Macros}{18}
|
||||
@numsubsecentry{Some Miscellaneous Commands}{1.4.8}{Miscellaneous Commands}{18}
|
||||
@numsecentry{Readline vi Mode}{1.5}{Readline vi Mode}{19}
|
||||
@numchapentry{Programming with GNU Readline}{2}{Programming with GNU Readline}{20}
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
@xrdef{Readline Init File Syntax-pg}{4}
|
||||
@xrdef{Conditional Init Constructs-title}{Conditional Init Constructs}
|
||||
@xrdef{Conditional Init Constructs-snt}{Section@tie 1.3.2}
|
||||
@xrdef{Conditional Init Constructs-pg}{9}
|
||||
@xrdef{Sample Init File-title}{Sample Init File}
|
||||
@xrdef{Sample Init File-snt}{Section@tie 1.3.3}
|
||||
@xrdef{Conditional Init Constructs-pg}{10}
|
||||
@xrdef{Sample Init File-pg}{10}
|
||||
@xrdef{Bindable Readline Commands-title}{Bindable Readline Commands}
|
||||
@xrdef{Bindable Readline Commands-snt}{Section@tie 1.4}
|
||||
@@ -57,9 +57,9 @@
|
||||
@xrdef{Keyboard Macros-snt}{Section@tie 1.4.7}
|
||||
@xrdef{Numeric Arguments-pg}{17}
|
||||
@xrdef{Commands For Completion-pg}{17}
|
||||
@xrdef{Keyboard Macros-pg}{17}
|
||||
@xrdef{Miscellaneous Commands-title}{Some Miscellaneous Commands}
|
||||
@xrdef{Miscellaneous Commands-snt}{Section@tie 1.4.8}
|
||||
@xrdef{Keyboard Macros-pg}{18}
|
||||
@xrdef{Miscellaneous Commands-pg}{18}
|
||||
@xrdef{Readline vi Mode-title}{Readline vi Mode}
|
||||
@xrdef{Readline vi Mode-snt}{Section@tie 1.5}
|
||||
|
||||
Binary file not shown.
@@ -52,8 +52,9 @@
|
||||
\entry{possible-completions (M-?)}{17}{\code {possible-completions (M-?)}}
|
||||
\entry{insert-completions (M-*)}{17}{\code {insert-completions (M-*)}}
|
||||
\entry{menu-complete ()}{17}{\code {menu-complete ()}}
|
||||
\entry{menu-complete-backward ()}{17}{\code {menu-complete-backward ()}}
|
||||
\entry{delete-char-or-list ()}{17}{\code {delete-char-or-list ()}}
|
||||
\entry{start-kbd-macro (C-x ()}{17}{\code {start-kbd-macro (C-x ()}}
|
||||
\entry{start-kbd-macro (C-x ()}{18}{\code {start-kbd-macro (C-x ()}}
|
||||
\entry{end-kbd-macro (C-x ))}{18}{\code {end-kbd-macro (C-x ))}}
|
||||
\entry{call-last-kbd-macro (C-x e)}{18}{\code {call-last-kbd-macro (C-x e)}}
|
||||
\entry{re-read-init-file (C-x C-r)}{18}{\code {re-read-init-file (C-x C-r)}}
|
||||
@@ -67,7 +68,8 @@
|
||||
\entry{exchange-point-and-mark (C-x C-x)}{18}{\code {exchange-point-and-mark (C-x C-x)}}
|
||||
\entry{character-search (C-])}{18}{\code {character-search (C-])}}
|
||||
\entry{character-search-backward (M-C-])}{18}{\code {character-search-backward (M-C-])}}
|
||||
\entry{insert-comment (M-#)}{18}{\code {insert-comment (M-#)}}
|
||||
\entry{skip-csi-sequence ()}{19}{\code {skip-csi-sequence ()}}
|
||||
\entry{insert-comment (M-#)}{19}{\code {insert-comment (M-#)}}
|
||||
\entry{dump-functions ()}{19}{\code {dump-functions ()}}
|
||||
\entry{dump-variables ()}{19}{\code {dump-variables ()}}
|
||||
\entry{dump-macros ()}{19}{\code {dump-macros ()}}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
\entry {\code {history-search-backward ()}}{14}
|
||||
\entry {\code {history-search-forward ()}}{14}
|
||||
\initial {I}
|
||||
\entry {\code {insert-comment (M-#)}}{18}
|
||||
\entry {\code {insert-comment (M-#)}}{19}
|
||||
\entry {\code {insert-completions (M-*)}}{17}
|
||||
\initial {K}
|
||||
\entry {\code {kill-line (C-k)}}{16}
|
||||
@@ -53,6 +53,7 @@
|
||||
\entry {\code {kill-word (M-d)}}{16}
|
||||
\initial {M}
|
||||
\entry {\code {menu-complete ()}}{17}
|
||||
\entry {\code {menu-complete-backward ()}}{17}
|
||||
\initial {N}
|
||||
\entry {\code {next-history (C-n)}}{14}
|
||||
\entry {\code {non-incremental-forward-search-history (M-n)}}{14}
|
||||
@@ -73,7 +74,8 @@
|
||||
\initial {S}
|
||||
\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{15}
|
||||
\entry {\code {set-mark (C-@)}}{18}
|
||||
\entry {\code {start-kbd-macro (C-x ()}}{17}
|
||||
\entry {\code {skip-csi-sequence ()}}{19}
|
||||
\entry {\code {start-kbd-macro (C-x ()}}{18}
|
||||
\initial {T}
|
||||
\entry {\code {tab-insert (M-\key {TAB})}}{15}
|
||||
\entry {\code {tilde-expand (M-~)}}{18}
|
||||
|
||||
+202
-154
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on March, 18 2009 by texi2html 1.64 -->
|
||||
<!-- Created on October, 12 2009 by texi2html 1.64 -->
|
||||
<!--
|
||||
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
||||
Karl Berry <karl@freefriends.org>
|
||||
@@ -648,6 +648,12 @@ mode, where the keystrokes are most similar to Emacs. This variable can be
|
||||
set to either <SAMP>`emacs'</SAMP> or <SAMP>`vi'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>echo-control-characters</CODE>
|
||||
<DD>When set to <SAMP>`on'</SAMP>, on operating systems that indicate they support it,
|
||||
readline echoes a character corresponding to a signal generated from the
|
||||
keyboard. The default is <SAMP>`on'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>enable-keypad</CODE>
|
||||
<DD><A NAME="IDX13"></A>
|
||||
When set to <SAMP>`on'</SAMP>, Readline will try to enable the application
|
||||
@@ -655,6 +661,13 @@ keypad when it is called. Some systems need this to enable the
|
||||
arrow keys. The default is <SAMP>`off'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>enable-meta-key</CODE>
|
||||
<DD>When set to <SAMP>`on'</SAMP>, Readline will try to enable any meta modifier
|
||||
key the terminal claims to support when it is called. On many terminals,
|
||||
the meta key is used to send eight-bit characters.
|
||||
The default is <SAMP>`on'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>expand-tilde</CODE>
|
||||
<DD><A NAME="IDX14"></A>
|
||||
If set to <SAMP>`on'</SAMP>, tilde expansion is performed when Readline
|
||||
@@ -798,8 +811,23 @@ of ringing the bell.
|
||||
The default value is <SAMP>`off'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>visible-stats</CODE>
|
||||
<DT><CODE>skip-completed-text</CODE>
|
||||
<DD><A NAME="IDX30"></A>
|
||||
If set to <SAMP>`on'</SAMP>, this alters the default completion behavior when
|
||||
inserting a single match into the line. It's only active when
|
||||
performing completion in the middle of a word. If enabled, readline
|
||||
does not insert characters from the completion that match characters
|
||||
after point in the word being completed, so portions of the word
|
||||
following the cursor are not duplicated.
|
||||
For instance, if this is enabled, attempting completion when the cursor
|
||||
is after the <SAMP>`e'</SAMP> in <SAMP>`Makefile'</SAMP> will result in <SAMP>`Makefile'</SAMP>
|
||||
rather than <SAMP>`Makefilefile'</SAMP>, assuming there is a single possible
|
||||
completion.
|
||||
The default value is <SAMP>`off'</SAMP>.
|
||||
<P>
|
||||
|
||||
<DT><CODE>visible-stats</CODE>
|
||||
<DD><A NAME="IDX31"></A>
|
||||
If set to <SAMP>`on'</SAMP>, a character denoting a file's type
|
||||
is appended to the filename when listing possible
|
||||
completions. The default is <SAMP>`off'</SAMP>.
|
||||
@@ -1215,54 +1243,54 @@ The text between the point and mark is referred to as the <EM>region</EM>.
|
||||
<H3> 1.4.1 Commands For Moving </H3>
|
||||
<!--docid::SEC14::-->
|
||||
<DL COMPACT>
|
||||
<A NAME="IDX31"></A>
|
||||
<A NAME="IDX32"></A>
|
||||
<DT><CODE>beginning-of-line (C-a)</CODE>
|
||||
<DD><A NAME="IDX32"></A>
|
||||
<DD><A NAME="IDX33"></A>
|
||||
Move to the start of the current line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX33"></A>
|
||||
<A NAME="IDX34"></A>
|
||||
<DT><CODE>end-of-line (C-e)</CODE>
|
||||
<DD><A NAME="IDX34"></A>
|
||||
<DD><A NAME="IDX35"></A>
|
||||
Move to the end of the line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX35"></A>
|
||||
<A NAME="IDX36"></A>
|
||||
<DT><CODE>forward-char (C-f)</CODE>
|
||||
<DD><A NAME="IDX36"></A>
|
||||
<DD><A NAME="IDX37"></A>
|
||||
Move forward a character.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX37"></A>
|
||||
<A NAME="IDX38"></A>
|
||||
<DT><CODE>backward-char (C-b)</CODE>
|
||||
<DD><A NAME="IDX38"></A>
|
||||
<DD><A NAME="IDX39"></A>
|
||||
Move back a character.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX39"></A>
|
||||
<A NAME="IDX40"></A>
|
||||
<DT><CODE>forward-word (M-f)</CODE>
|
||||
<DD><A NAME="IDX40"></A>
|
||||
<DD><A NAME="IDX41"></A>
|
||||
Move forward to the end of the next word.
|
||||
Words are composed of letters and digits.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX41"></A>
|
||||
<A NAME="IDX42"></A>
|
||||
<DT><CODE>backward-word (M-b)</CODE>
|
||||
<DD><A NAME="IDX42"></A>
|
||||
<DD><A NAME="IDX43"></A>
|
||||
Move back to the start of the current or previous word.
|
||||
Words are composed of letters and digits.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX43"></A>
|
||||
<A NAME="IDX44"></A>
|
||||
<DT><CODE>clear-screen (C-l)</CODE>
|
||||
<DD><A NAME="IDX44"></A>
|
||||
<DD><A NAME="IDX45"></A>
|
||||
Clear the screen and redraw the current line,
|
||||
leaving the current line at the top of the screen.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX45"></A>
|
||||
<A NAME="IDX46"></A>
|
||||
<DT><CODE>redraw-current-line ()</CODE>
|
||||
<DD><A NAME="IDX46"></A>
|
||||
<DD><A NAME="IDX47"></A>
|
||||
Refresh the current line. By default, this is unbound.
|
||||
<P>
|
||||
|
||||
@@ -1288,9 +1316,9 @@ Refresh the current line. By default, this is unbound.
|
||||
<P>
|
||||
|
||||
<DL COMPACT>
|
||||
<A NAME="IDX47"></A>
|
||||
<A NAME="IDX48"></A>
|
||||
<DT><CODE>accept-line (Newline or Return)</CODE>
|
||||
<DD><A NAME="IDX48"></A>
|
||||
<DD><A NAME="IDX49"></A>
|
||||
Accept the line regardless of where the cursor is.
|
||||
If this line is
|
||||
non-empty, it may be added to the history list for future recall with
|
||||
@@ -1299,81 +1327,81 @@ If this line is a modified history line, the history line is restored
|
||||
to its original state.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX49"></A>
|
||||
<A NAME="IDX50"></A>
|
||||
<DT><CODE>previous-history (C-p)</CODE>
|
||||
<DD><A NAME="IDX50"></A>
|
||||
<DD><A NAME="IDX51"></A>
|
||||
Move `back' through the history list, fetching the previous command.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX51"></A>
|
||||
<A NAME="IDX52"></A>
|
||||
<DT><CODE>next-history (C-n)</CODE>
|
||||
<DD><A NAME="IDX52"></A>
|
||||
<DD><A NAME="IDX53"></A>
|
||||
Move `forward' through the history list, fetching the next command.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX53"></A>
|
||||
<A NAME="IDX54"></A>
|
||||
<DT><CODE>beginning-of-history (M-<)</CODE>
|
||||
<DD><A NAME="IDX54"></A>
|
||||
<DD><A NAME="IDX55"></A>
|
||||
Move to the first line in the history.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX55"></A>
|
||||
<A NAME="IDX56"></A>
|
||||
<DT><CODE>end-of-history (M->)</CODE>
|
||||
<DD><A NAME="IDX56"></A>
|
||||
<DD><A NAME="IDX57"></A>
|
||||
Move to the end of the input history, i.e., the line currently
|
||||
being entered.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX57"></A>
|
||||
<A NAME="IDX58"></A>
|
||||
<DT><CODE>reverse-search-history (C-r)</CODE>
|
||||
<DD><A NAME="IDX58"></A>
|
||||
<DD><A NAME="IDX59"></A>
|
||||
Search backward starting at the current line and moving `up' through
|
||||
the history as necessary. This is an incremental search.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX59"></A>
|
||||
<A NAME="IDX60"></A>
|
||||
<DT><CODE>forward-search-history (C-s)</CODE>
|
||||
<DD><A NAME="IDX60"></A>
|
||||
<DD><A NAME="IDX61"></A>
|
||||
Search forward starting at the current line and moving `down' through
|
||||
the the history as necessary. This is an incremental search.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX61"></A>
|
||||
<A NAME="IDX62"></A>
|
||||
<DT><CODE>non-incremental-reverse-search-history (M-p)</CODE>
|
||||
<DD><A NAME="IDX62"></A>
|
||||
<DD><A NAME="IDX63"></A>
|
||||
Search backward starting at the current line and moving `up'
|
||||
through the history as necessary using a non-incremental search
|
||||
for a string supplied by the user.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX63"></A>
|
||||
<A NAME="IDX64"></A>
|
||||
<DT><CODE>non-incremental-forward-search-history (M-n)</CODE>
|
||||
<DD><A NAME="IDX64"></A>
|
||||
<DD><A NAME="IDX65"></A>
|
||||
Search forward starting at the current line and moving `down'
|
||||
through the the history as necessary using a non-incremental search
|
||||
for a string supplied by the user.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX65"></A>
|
||||
<A NAME="IDX66"></A>
|
||||
<DT><CODE>history-search-forward ()</CODE>
|
||||
<DD><A NAME="IDX66"></A>
|
||||
<DD><A NAME="IDX67"></A>
|
||||
Search forward through the history for the string of characters
|
||||
between the start of the current line and the point.
|
||||
This is a non-incremental search.
|
||||
By default, this command is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX67"></A>
|
||||
<A NAME="IDX68"></A>
|
||||
<DT><CODE>history-search-backward ()</CODE>
|
||||
<DD><A NAME="IDX68"></A>
|
||||
<DD><A NAME="IDX69"></A>
|
||||
Search backward through the history for the string of characters
|
||||
between the start of the current line and the point. This
|
||||
is a non-incremental search. By default, this command is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX69"></A>
|
||||
<A NAME="IDX70"></A>
|
||||
<DT><CODE>yank-nth-arg (M-C-y)</CODE>
|
||||
<DD><A NAME="IDX70"></A>
|
||||
<DD><A NAME="IDX71"></A>
|
||||
Insert the first argument to the previous command (usually
|
||||
the second word on the previous line) at point.
|
||||
With an argument <VAR>n</VAR>,
|
||||
@@ -1384,9 +1412,9 @@ Once the argument <VAR>n</VAR> is computed, the argument is extracted
|
||||
as if the <SAMP>`!<VAR>n</VAR>'</SAMP> history expansion had been specified.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX71"></A>
|
||||
<A NAME="IDX72"></A>
|
||||
<DT><CODE>yank-last-arg (M-. or M-_)</CODE>
|
||||
<DD><A NAME="IDX72"></A>
|
||||
<DD><A NAME="IDX73"></A>
|
||||
Insert last argument to the previous command (the last word of the
|
||||
previous history entry). With an
|
||||
argument, behave exactly like <CODE>yank-nth-arg</CODE>.
|
||||
@@ -1418,52 +1446,52 @@ as if the <SAMP>`!$'</SAMP> history expansion had been specified.
|
||||
<P>
|
||||
|
||||
<DL COMPACT>
|
||||
<A NAME="IDX73"></A>
|
||||
<A NAME="IDX74"></A>
|
||||
<DT><CODE>delete-char (C-d)</CODE>
|
||||
<DD><A NAME="IDX74"></A>
|
||||
<DD><A NAME="IDX75"></A>
|
||||
Delete the character at point. If point is at the
|
||||
beginning of the line, there are no characters in the line, and
|
||||
the last character typed was not bound to <CODE>delete-char</CODE>, then
|
||||
return EOF.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX75"></A>
|
||||
<A NAME="IDX76"></A>
|
||||
<DT><CODE>backward-delete-char (Rubout)</CODE>
|
||||
<DD><A NAME="IDX76"></A>
|
||||
<DD><A NAME="IDX77"></A>
|
||||
Delete the character behind the cursor. A numeric argument means
|
||||
to kill the characters instead of deleting them.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX77"></A>
|
||||
<A NAME="IDX78"></A>
|
||||
<DT><CODE>forward-backward-delete-char ()</CODE>
|
||||
<DD><A NAME="IDX78"></A>
|
||||
<DD><A NAME="IDX79"></A>
|
||||
Delete the character under the cursor, unless the cursor is at the
|
||||
end of the line, in which case the character behind the cursor is
|
||||
deleted. By default, this is not bound to a key.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX79"></A>
|
||||
<A NAME="IDX80"></A>
|
||||
<DT><CODE>quoted-insert (C-q or C-v)</CODE>
|
||||
<DD><A NAME="IDX80"></A>
|
||||
<DD><A NAME="IDX81"></A>
|
||||
Add the next character typed to the line verbatim. This is
|
||||
how to insert key sequences like <KBD>C-q</KBD>, for example.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX81"></A>
|
||||
<A NAME="IDX82"></A>
|
||||
<DT><CODE>tab-insert (M-<KBD>TAB</KBD>)</CODE>
|
||||
<DD><A NAME="IDX82"></A>
|
||||
<DD><A NAME="IDX83"></A>
|
||||
Insert a tab character.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX83"></A>
|
||||
<A NAME="IDX84"></A>
|
||||
<DT><CODE>self-insert (a, b, A, 1, !, <small>...</small>)</CODE>
|
||||
<DD><A NAME="IDX84"></A>
|
||||
<DD><A NAME="IDX85"></A>
|
||||
Insert yourself.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX85"></A>
|
||||
<A NAME="IDX86"></A>
|
||||
<DT><CODE>transpose-chars (C-t)</CODE>
|
||||
<DD><A NAME="IDX86"></A>
|
||||
<DD><A NAME="IDX87"></A>
|
||||
Drag the character before the cursor forward over
|
||||
the character at the cursor, moving the
|
||||
cursor forward as well. If the insertion point
|
||||
@@ -1472,39 +1500,39 @@ transposes the last two characters of the line.
|
||||
Negative arguments have no effect.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX87"></A>
|
||||
<A NAME="IDX88"></A>
|
||||
<DT><CODE>transpose-words (M-t)</CODE>
|
||||
<DD><A NAME="IDX88"></A>
|
||||
<DD><A NAME="IDX89"></A>
|
||||
Drag the word before point past the word after point,
|
||||
moving point past that word as well.
|
||||
If the insertion point is at the end of the line, this transposes
|
||||
the last two words on the line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX89"></A>
|
||||
<A NAME="IDX90"></A>
|
||||
<DT><CODE>upcase-word (M-u)</CODE>
|
||||
<DD><A NAME="IDX90"></A>
|
||||
<DD><A NAME="IDX91"></A>
|
||||
Uppercase the current (or following) word. With a negative argument,
|
||||
uppercase the previous word, but do not move the cursor.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX91"></A>
|
||||
<A NAME="IDX92"></A>
|
||||
<DT><CODE>downcase-word (M-l)</CODE>
|
||||
<DD><A NAME="IDX92"></A>
|
||||
<DD><A NAME="IDX93"></A>
|
||||
Lowercase the current (or following) word. With a negative argument,
|
||||
lowercase the previous word, but do not move the cursor.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX93"></A>
|
||||
<A NAME="IDX94"></A>
|
||||
<DT><CODE>capitalize-word (M-c)</CODE>
|
||||
<DD><A NAME="IDX94"></A>
|
||||
<DD><A NAME="IDX95"></A>
|
||||
Capitalize the current (or following) word. With a negative argument,
|
||||
capitalize the previous word, but do not move the cursor.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX95"></A>
|
||||
<A NAME="IDX96"></A>
|
||||
<DT><CODE>overwrite-mode ()</CODE>
|
||||
<DD><A NAME="IDX96"></A>
|
||||
<DD><A NAME="IDX97"></A>
|
||||
Toggle overwrite mode. With an explicit positive numeric argument,
|
||||
switches to overwrite mode. With an explicit non-positive numeric
|
||||
argument, switches to insert mode. This command affects only
|
||||
@@ -1544,106 +1572,106 @@ By default, this command is unbound.
|
||||
|
||||
<DL COMPACT>
|
||||
|
||||
<A NAME="IDX97"></A>
|
||||
<A NAME="IDX98"></A>
|
||||
<DT><CODE>kill-line (C-k)</CODE>
|
||||
<DD><A NAME="IDX98"></A>
|
||||
<DD><A NAME="IDX99"></A>
|
||||
Kill the text from point to the end of the line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX99"></A>
|
||||
<A NAME="IDX100"></A>
|
||||
<DT><CODE>backward-kill-line (C-x Rubout)</CODE>
|
||||
<DD><A NAME="IDX100"></A>
|
||||
<DD><A NAME="IDX101"></A>
|
||||
Kill backward to the beginning of the line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX101"></A>
|
||||
<A NAME="IDX102"></A>
|
||||
<DT><CODE>unix-line-discard (C-u)</CODE>
|
||||
<DD><A NAME="IDX102"></A>
|
||||
<DD><A NAME="IDX103"></A>
|
||||
Kill backward from the cursor to the beginning of the current line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX103"></A>
|
||||
<A NAME="IDX104"></A>
|
||||
<DT><CODE>kill-whole-line ()</CODE>
|
||||
<DD><A NAME="IDX104"></A>
|
||||
<DD><A NAME="IDX105"></A>
|
||||
Kill all characters on the current line, no matter where point is.
|
||||
By default, this is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX105"></A>
|
||||
<A NAME="IDX106"></A>
|
||||
<DT><CODE>kill-word (M-d)</CODE>
|
||||
<DD><A NAME="IDX106"></A>
|
||||
<DD><A NAME="IDX107"></A>
|
||||
Kill from point to the end of the current word, or if between
|
||||
words, to the end of the next word.
|
||||
Word boundaries are the same as <CODE>forward-word</CODE>.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX107"></A>
|
||||
<A NAME="IDX108"></A>
|
||||
<DT><CODE>backward-kill-word (M-<KBD>DEL</KBD>)</CODE>
|
||||
<DD><A NAME="IDX108"></A>
|
||||
<DD><A NAME="IDX109"></A>
|
||||
Kill the word behind point.
|
||||
Word boundaries are the same as <CODE>backward-word</CODE>.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX109"></A>
|
||||
<A NAME="IDX110"></A>
|
||||
<DT><CODE>unix-word-rubout (C-w)</CODE>
|
||||
<DD><A NAME="IDX110"></A>
|
||||
<DD><A NAME="IDX111"></A>
|
||||
Kill the word behind point, using white space as a word boundary.
|
||||
The killed text is saved on the kill-ring.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX111"></A>
|
||||
<A NAME="IDX112"></A>
|
||||
<DT><CODE>unix-filename-rubout ()</CODE>
|
||||
<DD><A NAME="IDX112"></A>
|
||||
<DD><A NAME="IDX113"></A>
|
||||
Kill the word behind point, using white space and the slash character
|
||||
as the word boundaries.
|
||||
The killed text is saved on the kill-ring.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX113"></A>
|
||||
<A NAME="IDX114"></A>
|
||||
<DT><CODE>delete-horizontal-space ()</CODE>
|
||||
<DD><A NAME="IDX114"></A>
|
||||
<DD><A NAME="IDX115"></A>
|
||||
Delete all spaces and tabs around point. By default, this is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX115"></A>
|
||||
<A NAME="IDX116"></A>
|
||||
<DT><CODE>kill-region ()</CODE>
|
||||
<DD><A NAME="IDX116"></A>
|
||||
<DD><A NAME="IDX117"></A>
|
||||
Kill the text in the current region.
|
||||
By default, this command is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX117"></A>
|
||||
<A NAME="IDX118"></A>
|
||||
<DT><CODE>copy-region-as-kill ()</CODE>
|
||||
<DD><A NAME="IDX118"></A>
|
||||
<DD><A NAME="IDX119"></A>
|
||||
Copy the text in the region to the kill buffer, so it can be yanked
|
||||
right away. By default, this command is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX119"></A>
|
||||
<A NAME="IDX120"></A>
|
||||
<DT><CODE>copy-backward-word ()</CODE>
|
||||
<DD><A NAME="IDX120"></A>
|
||||
<DD><A NAME="IDX121"></A>
|
||||
Copy the word before point to the kill buffer.
|
||||
The word boundaries are the same as <CODE>backward-word</CODE>.
|
||||
By default, this command is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX121"></A>
|
||||
<A NAME="IDX122"></A>
|
||||
<DT><CODE>copy-forward-word ()</CODE>
|
||||
<DD><A NAME="IDX122"></A>
|
||||
<DD><A NAME="IDX123"></A>
|
||||
Copy the word following point to the kill buffer.
|
||||
The word boundaries are the same as <CODE>forward-word</CODE>.
|
||||
By default, this command is unbound.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX123"></A>
|
||||
<A NAME="IDX124"></A>
|
||||
<DT><CODE>yank (C-y)</CODE>
|
||||
<DD><A NAME="IDX124"></A>
|
||||
<DD><A NAME="IDX125"></A>
|
||||
Yank the top of the kill ring into the buffer at point.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX125"></A>
|
||||
<A NAME="IDX126"></A>
|
||||
<DT><CODE>yank-pop (M-y)</CODE>
|
||||
<DD><A NAME="IDX126"></A>
|
||||
<DD><A NAME="IDX127"></A>
|
||||
Rotate the kill-ring, and yank the new top. You can only do this if
|
||||
the prior command is <CODE>yank</CODE> or <CODE>yank-pop</CODE>.
|
||||
</DL>
|
||||
@@ -1667,16 +1695,16 @@ the prior command is <CODE>yank</CODE> or <CODE>yank-pop</CODE>.
|
||||
<!--docid::SEC18::-->
|
||||
<DL COMPACT>
|
||||
|
||||
<A NAME="IDX127"></A>
|
||||
<A NAME="IDX128"></A>
|
||||
<DT><CODE>digit-argument (<KBD>M-0</KBD>, <KBD>M-1</KBD>, <small>...</small> <KBD>M--</KBD>)</CODE>
|
||||
<DD><A NAME="IDX128"></A>
|
||||
<DD><A NAME="IDX129"></A>
|
||||
Add this digit to the argument already accumulating, or start a new
|
||||
argument. <KBD>M--</KBD> starts a negative argument.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX129"></A>
|
||||
<A NAME="IDX130"></A>
|
||||
<DT><CODE>universal-argument ()</CODE>
|
||||
<DD><A NAME="IDX130"></A>
|
||||
<DD><A NAME="IDX131"></A>
|
||||
This is another way to specify an argument.
|
||||
If this command is followed by one or more digits, optionally with a
|
||||
leading minus sign, those digits define the argument.
|
||||
@@ -1711,30 +1739,30 @@ By default, this is not bound to a key.
|
||||
<P>
|
||||
|
||||
<DL COMPACT>
|
||||
<A NAME="IDX131"></A>
|
||||
<A NAME="IDX132"></A>
|
||||
<DT><CODE>complete (<KBD>TAB</KBD>)</CODE>
|
||||
<DD><A NAME="IDX132"></A>
|
||||
<DD><A NAME="IDX133"></A>
|
||||
Attempt to perform completion on the text before point.
|
||||
The actual completion performed is application-specific.
|
||||
The default is filename completion.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX133"></A>
|
||||
<A NAME="IDX134"></A>
|
||||
<DT><CODE>possible-completions (M-?)</CODE>
|
||||
<DD><A NAME="IDX134"></A>
|
||||
<DD><A NAME="IDX135"></A>
|
||||
List the possible completions of the text before point.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX135"></A>
|
||||
<A NAME="IDX136"></A>
|
||||
<DT><CODE>insert-completions (M-*)</CODE>
|
||||
<DD><A NAME="IDX136"></A>
|
||||
<DD><A NAME="IDX137"></A>
|
||||
Insert all completions of the text before point that would have
|
||||
been generated by <CODE>possible-completions</CODE>.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX137"></A>
|
||||
<A NAME="IDX138"></A>
|
||||
<DT><CODE>menu-complete ()</CODE>
|
||||
<DD><A NAME="IDX138"></A>
|
||||
<DD><A NAME="IDX139"></A>
|
||||
Similar to <CODE>complete</CODE>, but replaces the word to be completed
|
||||
with a single match from the list of possible completions.
|
||||
Repeated execution of <CODE>menu-complete</CODE> steps through the list
|
||||
@@ -1749,9 +1777,17 @@ This command is intended to be bound to <KBD>TAB</KBD>, but is unbound
|
||||
by default.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX139"></A>
|
||||
<A NAME="IDX140"></A>
|
||||
<DT><CODE>menu-complete-backward ()</CODE>
|
||||
<DD><A NAME="IDX141"></A>
|
||||
Identical to <CODE>menu-complete</CODE>, but moves backward through the list
|
||||
of possible completions, as if <CODE>menu-complete</CODE> had been given a
|
||||
negative argument.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX142"></A>
|
||||
<DT><CODE>delete-char-or-list ()</CODE>
|
||||
<DD><A NAME="IDX140"></A>
|
||||
<DD><A NAME="IDX143"></A>
|
||||
Deletes the character under the cursor if not at the beginning or
|
||||
end of the line (like <CODE>delete-char</CODE>).
|
||||
If at the end of the line, behaves identically to
|
||||
@@ -1780,22 +1816,22 @@ This command is unbound by default.
|
||||
<!--docid::SEC20::-->
|
||||
<DL COMPACT>
|
||||
|
||||
<A NAME="IDX141"></A>
|
||||
<A NAME="IDX144"></A>
|
||||
<DT><CODE>start-kbd-macro (C-x ()</CODE>
|
||||
<DD><A NAME="IDX142"></A>
|
||||
<DD><A NAME="IDX145"></A>
|
||||
Begin saving the characters typed into the current keyboard macro.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX143"></A>
|
||||
<A NAME="IDX146"></A>
|
||||
<DT><CODE>end-kbd-macro (C-x ))</CODE>
|
||||
<DD><A NAME="IDX144"></A>
|
||||
<DD><A NAME="IDX147"></A>
|
||||
Stop saving the characters typed into the current keyboard macro
|
||||
and save the definition.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX145"></A>
|
||||
<A NAME="IDX148"></A>
|
||||
<DT><CODE>call-last-kbd-macro (C-x e)</CODE>
|
||||
<DD><A NAME="IDX146"></A>
|
||||
<DD><A NAME="IDX149"></A>
|
||||
Re-execute the last keyboard macro defined, by making the characters
|
||||
in the macro appear as if typed at the keyboard.
|
||||
<P>
|
||||
@@ -1821,87 +1857,99 @@ in the macro appear as if typed at the keyboard.
|
||||
<!--docid::SEC21::-->
|
||||
<DL COMPACT>
|
||||
|
||||
<A NAME="IDX147"></A>
|
||||
<A NAME="IDX150"></A>
|
||||
<DT><CODE>re-read-init-file (C-x C-r)</CODE>
|
||||
<DD><A NAME="IDX148"></A>
|
||||
<DD><A NAME="IDX151"></A>
|
||||
Read in the contents of the <VAR>inputrc</VAR> file, and incorporate
|
||||
any bindings or variable assignments found there.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX149"></A>
|
||||
<A NAME="IDX152"></A>
|
||||
<DT><CODE>abort (C-g)</CODE>
|
||||
<DD><A NAME="IDX150"></A>
|
||||
<DD><A NAME="IDX153"></A>
|
||||
Abort the current editing command and
|
||||
ring the terminal's bell (subject to the setting of
|
||||
<CODE>bell-style</CODE>).
|
||||
<P>
|
||||
|
||||
<A NAME="IDX151"></A>
|
||||
<A NAME="IDX154"></A>
|
||||
<DT><CODE>do-uppercase-version (M-a, M-b, M-<VAR>x</VAR>, <small>...</small>)</CODE>
|
||||
<DD><A NAME="IDX152"></A>
|
||||
<DD><A NAME="IDX155"></A>
|
||||
If the metafied character <VAR>x</VAR> is lowercase, run the command
|
||||
that is bound to the corresponding uppercase character.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX153"></A>
|
||||
<A NAME="IDX156"></A>
|
||||
<DT><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE>
|
||||
<DD><A NAME="IDX154"></A>
|
||||
<DD><A NAME="IDX157"></A>
|
||||
Metafy the next character typed. This is for keyboards
|
||||
without a meta key. Typing <SAMP>`<KBD>ESC</KBD> f'</SAMP> is equivalent to typing
|
||||
<KBD>M-f</KBD>.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX155"></A>
|
||||
<A NAME="IDX158"></A>
|
||||
<DT><CODE>undo (C-_ or C-x C-u)</CODE>
|
||||
<DD><A NAME="IDX156"></A>
|
||||
<DD><A NAME="IDX159"></A>
|
||||
Incremental undo, separately remembered for each line.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX157"></A>
|
||||
<A NAME="IDX160"></A>
|
||||
<DT><CODE>revert-line (M-r)</CODE>
|
||||
<DD><A NAME="IDX158"></A>
|
||||
<DD><A NAME="IDX161"></A>
|
||||
Undo all changes made to this line. This is like executing the <CODE>undo</CODE>
|
||||
command enough times to get back to the beginning.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX159"></A>
|
||||
<A NAME="IDX162"></A>
|
||||
<DT><CODE>tilde-expand (M-~)</CODE>
|
||||
<DD><A NAME="IDX160"></A>
|
||||
<DD><A NAME="IDX163"></A>
|
||||
Perform tilde expansion on the current word.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX161"></A>
|
||||
<A NAME="IDX164"></A>
|
||||
<DT><CODE>set-mark (C-@)</CODE>
|
||||
<DD><A NAME="IDX162"></A>
|
||||
<DD><A NAME="IDX165"></A>
|
||||
Set the mark to the point. If a
|
||||
numeric argument is supplied, the mark is set to that position.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX163"></A>
|
||||
<A NAME="IDX166"></A>
|
||||
<DT><CODE>exchange-point-and-mark (C-x C-x)</CODE>
|
||||
<DD><A NAME="IDX164"></A>
|
||||
<DD><A NAME="IDX167"></A>
|
||||
Swap the point with the mark. The current cursor position is set to
|
||||
the saved position, and the old cursor position is saved as the mark.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX165"></A>
|
||||
<A NAME="IDX168"></A>
|
||||
<DT><CODE>character-search (C-])</CODE>
|
||||
<DD><A NAME="IDX166"></A>
|
||||
<DD><A NAME="IDX169"></A>
|
||||
A character is read and point is moved to the next occurrence of that
|
||||
character. A negative count searches for previous occurrences.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX167"></A>
|
||||
<A NAME="IDX170"></A>
|
||||
<DT><CODE>character-search-backward (M-C-])</CODE>
|
||||
<DD><A NAME="IDX168"></A>
|
||||
<DD><A NAME="IDX171"></A>
|
||||
A character is read and point is moved to the previous occurrence
|
||||
of that character. A negative count searches for subsequent
|
||||
occurrences.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX169"></A>
|
||||
<A NAME="IDX172"></A>
|
||||
<DT><CODE>skip-csi-sequence ()</CODE>
|
||||
<DD><A NAME="IDX173"></A>
|
||||
Read enough characters to consume a multi-key sequence such as those
|
||||
defined for keys like Home and End. Such sequences begin with a
|
||||
Control Sequence Indicator (CSI), usually ESC-[. If this sequence is
|
||||
bound to "\e[", keys producing such sequences will have no effect
|
||||
unless explicitly bound to a readline command, instead of inserting
|
||||
stray characters into the editing buffer. This is unbound by default,
|
||||
but usually bound to ESC-[.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX174"></A>
|
||||
<DT><CODE>insert-comment (M-#)</CODE>
|
||||
<DD><A NAME="IDX170"></A>
|
||||
<DD><A NAME="IDX175"></A>
|
||||
Without a numeric argument, the value of the <CODE>comment-begin</CODE>
|
||||
variable is inserted at the beginning of the current line.
|
||||
If a numeric argument is supplied, this command acts as a toggle: if
|
||||
@@ -1912,43 +1960,43 @@ the line.
|
||||
In either case, the line is accepted as if a newline had been typed.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX171"></A>
|
||||
<A NAME="IDX176"></A>
|
||||
<DT><CODE>dump-functions ()</CODE>
|
||||
<DD><A NAME="IDX172"></A>
|
||||
<DD><A NAME="IDX177"></A>
|
||||
Print all of the functions and their key bindings to the
|
||||
Readline output stream. If a numeric argument is supplied,
|
||||
the output is formatted in such a way that it can be made part
|
||||
of an <VAR>inputrc</VAR> file. This command is unbound by default.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX173"></A>
|
||||
<A NAME="IDX178"></A>
|
||||
<DT><CODE>dump-variables ()</CODE>
|
||||
<DD><A NAME="IDX174"></A>
|
||||
<DD><A NAME="IDX179"></A>
|
||||
Print all of the settable variables and their values to the
|
||||
Readline output stream. If a numeric argument is supplied,
|
||||
the output is formatted in such a way that it can be made part
|
||||
of an <VAR>inputrc</VAR> file. This command is unbound by default.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX175"></A>
|
||||
<A NAME="IDX180"></A>
|
||||
<DT><CODE>dump-macros ()</CODE>
|
||||
<DD><A NAME="IDX176"></A>
|
||||
<DD><A NAME="IDX181"></A>
|
||||
Print all of the Readline key sequences bound to macros and the
|
||||
strings they output. If a numeric argument is supplied,
|
||||
the output is formatted in such a way that it can be made part
|
||||
of an <VAR>inputrc</VAR> file. This command is unbound by default.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX177"></A>
|
||||
<A NAME="IDX182"></A>
|
||||
<DT><CODE>emacs-editing-mode (C-e)</CODE>
|
||||
<DD><A NAME="IDX178"></A>
|
||||
<DD><A NAME="IDX183"></A>
|
||||
When in <CODE>vi</CODE> command mode, this causes a switch to <CODE>emacs</CODE>
|
||||
editing mode.
|
||||
<P>
|
||||
|
||||
<A NAME="IDX179"></A>
|
||||
<A NAME="IDX184"></A>
|
||||
<DT><CODE>vi-editing-mode (M-C-j)</CODE>
|
||||
<DD><A NAME="IDX180"></A>
|
||||
<DD><A NAME="IDX185"></A>
|
||||
When in <CODE>emacs</CODE> editing mode, this causes a switch to <CODE>vi</CODE>
|
||||
editing mode.
|
||||
<P>
|
||||
@@ -2675,7 +2723,7 @@ to permit their use in free software.
|
||||
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="rluserman.html#SEC_About"> ? </A>]</TD>
|
||||
</TR></TABLE>
|
||||
<H1>About this document</H1>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>March, 18 2009</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -2837,7 +2885,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>March, 18 2009</I>
|
||||
by <I>Chet Ramey</I> on <I>October, 12 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ This is rluserman.info, produced by makeinfo version 4.13 from
|
||||
./rluserman.texi.
|
||||
|
||||
This manual describes the end user interface of the GNU Readline Library
|
||||
(version 6.0, 28 October 2008), a library which aids in the consistency
|
||||
(version 6.1, 9 October 2009), a library which aids in the consistency
|
||||
of user interface across discrete programs which provide a command line
|
||||
interface.
|
||||
|
||||
@@ -438,11 +438,22 @@ Variable Settings
|
||||
editing mode, where the keystrokes are most similar to Emacs.
|
||||
This variable can be set to either `emacs' or `vi'.
|
||||
|
||||
`echo-control-characters'
|
||||
When set to `on', on operating systems that indicate they
|
||||
support it, readline echoes a character corresponding to a
|
||||
signal generated from the keyboard. The default is `on'.
|
||||
|
||||
`enable-keypad'
|
||||
When set to `on', Readline will try to enable the application
|
||||
keypad when it is called. Some systems need this to enable
|
||||
the arrow keys. The default is `off'.
|
||||
|
||||
`enable-meta-key'
|
||||
When set to `on', Readline will try to enable any meta
|
||||
modifier key the terminal claims to support when it is
|
||||
called. On many terminals, the meta key is used to send
|
||||
eight-bit characters. The default is `on'.
|
||||
|
||||
`expand-tilde'
|
||||
If set to `on', tilde expansion is performed when Readline
|
||||
attempts word completion. The default is `off'.
|
||||
@@ -545,6 +556,19 @@ Variable Settings
|
||||
be listed immediately instead of ringing the bell. The
|
||||
default value is `off'.
|
||||
|
||||
`skip-completed-text'
|
||||
If set to `on', this alters the default completion behavior
|
||||
when inserting a single match into the line. It's only
|
||||
active when performing completion in the middle of a word.
|
||||
If enabled, readline does not insert characters from the
|
||||
completion that match characters after point in the word
|
||||
being completed, so portions of the word following the cursor
|
||||
are not duplicated. For instance, if this is enabled,
|
||||
attempting completion when the cursor is after the `e' in
|
||||
`Makefile' will result in `Makefile' rather than
|
||||
`Makefilefile', assuming there is a single possible
|
||||
completion. The default value is `off'.
|
||||
|
||||
`visible-stats'
|
||||
If set to `on', a character denoting a file's type is
|
||||
appended to the filename when listing possible completions.
|
||||
@@ -1159,6 +1183,11 @@ File: rluserman.info, Node: Commands For Completion, Next: Keyboard Macros, P
|
||||
command is intended to be bound to <TAB>, but is unbound by
|
||||
default.
|
||||
|
||||
`menu-complete-backward ()'
|
||||
Identical to `menu-complete', but moves backward through the list
|
||||
of possible completions, as if `menu-complete' had been given a
|
||||
negative argument.
|
||||
|
||||
`delete-char-or-list ()'
|
||||
Deletes the character under the cursor if not at the beginning or
|
||||
end of the line (like `delete-char'). If at the end of the line,
|
||||
@@ -1235,6 +1264,15 @@ File: rluserman.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up
|
||||
of that character. A negative count searches for subsequent
|
||||
occurrences.
|
||||
|
||||
`skip-csi-sequence ()'
|
||||
Read enough characters to consume a multi-key sequence such as
|
||||
those defined for keys like Home and End. Such sequences begin
|
||||
with a Control Sequence Indicator (CSI), usually ESC-[. If this
|
||||
sequence is bound to "\e[", keys producing such sequences will
|
||||
have no effect unless explicitly bound to a readline command,
|
||||
instead of inserting stray characters into the editing buffer.
|
||||
This is unbound by default, but usually bound to ESC-[.
|
||||
|
||||
`insert-comment (M-#)'
|
||||
Without a numeric argument, the value of the `comment-begin'
|
||||
variable is inserted at the beginning of the current line. If a
|
||||
@@ -1783,29 +1821,29 @@ permit their use in free software.
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top1328
|
||||
Node: Command Line Editing1782
|
||||
Node: Introduction and Notation2436
|
||||
Node: Readline Interaction4060
|
||||
Node: Readline Bare Essentials5253
|
||||
Node: Readline Movement Commands7044
|
||||
Node: Readline Killing Commands8011
|
||||
Node: Readline Arguments9933
|
||||
Node: Searching10979
|
||||
Node: Readline Init File13132
|
||||
Node: Readline Init File Syntax14287
|
||||
Node: Conditional Init Constructs27241
|
||||
Node: Sample Init File29776
|
||||
Node: Bindable Readline Commands32895
|
||||
Node: Commands For Moving33954
|
||||
Node: Commands For History34817
|
||||
Node: Commands For Text37943
|
||||
Node: Commands For Killing40671
|
||||
Node: Numeric Arguments42815
|
||||
Node: Commands For Completion43956
|
||||
Node: Keyboard Macros45502
|
||||
Node: Miscellaneous Commands46075
|
||||
Node: Readline vi Mode49438
|
||||
Node: GNU Free Documentation License50359
|
||||
Node: Top1327
|
||||
Node: Command Line Editing1781
|
||||
Node: Introduction and Notation2435
|
||||
Node: Readline Interaction4059
|
||||
Node: Readline Bare Essentials5252
|
||||
Node: Readline Movement Commands7043
|
||||
Node: Readline Killing Commands8010
|
||||
Node: Readline Arguments9932
|
||||
Node: Searching10978
|
||||
Node: Readline Init File13131
|
||||
Node: Readline Init File Syntax14286
|
||||
Node: Conditional Init Constructs28493
|
||||
Node: Sample Init File31028
|
||||
Node: Bindable Readline Commands34147
|
||||
Node: Commands For Moving35206
|
||||
Node: Commands For History36069
|
||||
Node: Commands For Text39195
|
||||
Node: Commands For Killing41923
|
||||
Node: Numeric Arguments44067
|
||||
Node: Commands For Completion45208
|
||||
Node: Keyboard Macros46947
|
||||
Node: Miscellaneous Commands47520
|
||||
Node: Readline vi Mode51378
|
||||
Node: GNU Free Documentation License52299
|
||||
|
||||
End Tag Table
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 18 MAR 2009 08:22
|
||||
**/Users/chet/src/bash/src/lib/readline/doc/rluserman.texi
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rluserman.texi (./texinfo.tex
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 12 OCT 2009 10:10
|
||||
**/usr/homes/chet/src/bash/src/lib/readline/doc/rluserman.texi
|
||||
(/usr/homes/chet/src/bash/src/lib/readline/doc/rluserman.texi (./texinfo.tex
|
||||
Loading texinfo [version 2009-01-18.17]:
|
||||
\bindingoffset=\dimen16
|
||||
\normaloffset=\dimen17
|
||||
@@ -176,7 +176,7 @@ and turning on texinfo input format.) (./rluserman.aux)
|
||||
\openout9 = `rluserman.bt'.
|
||||
|
||||
] [2] [3] [4] [5]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 524--540
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 535--551
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -189,7 +189,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[6] [7] [8] [9] [10]
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 846--846
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 871--871
|
||||
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
|
||||
gnored[] |
|
||||
|
||||
@@ -205,11 +205,11 @@ gnored[] |
|
||||
[21] [22] [23] [24] [25] [26]) [27] )
|
||||
Here is how much of TeX's memory you used:
|
||||
1743 strings out of 97980
|
||||
20809 string characters out of 1221004
|
||||
75544 words of memory out of 1500000
|
||||
20821 string characters out of 1221004
|
||||
80427 words of memory out of 1500000
|
||||
2579 multiletter control sequences out of 10000+50000
|
||||
32127 words of font info for 112 fonts, out of 1200000 for 2000
|
||||
51 hyphenation exceptions out of 8191
|
||||
16i,6n,14p,327b,534s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
16i,6n,14p,331b,534s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
|
||||
Output written on rluserman.dvi (30 pages, 98540 bytes).
|
||||
Output written on rluserman.dvi (30 pages, 100828 bytes).
|
||||
|
||||
+459
-413
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
||||
@numsubsecentry{Searching for Commands in the History}{1.2.5}{Searching}{3}
|
||||
@numsecentry{Readline Init File}{1.3}{Readline Init File}{4}
|
||||
@numsubsecentry{Readline Init File Syntax}{1.3.1}{Readline Init File Syntax}{4}
|
||||
@numsubsecentry{Conditional Init Constructs}{1.3.2}{Conditional Init Constructs}{9}
|
||||
@numsubsecentry{Conditional Init Constructs}{1.3.2}{Conditional Init Constructs}{10}
|
||||
@numsubsecentry{Sample Init File}{1.3.3}{Sample Init File}{10}
|
||||
@numsecentry{Bindable Readline Commands}{1.4}{Bindable Readline Commands}{13}
|
||||
@numsubsecentry{Commands For Moving}{1.4.1}{Commands For Moving}{13}
|
||||
@@ -17,7 +17,7 @@
|
||||
@numsubsecentry{Killing And Yanking}{1.4.4}{Commands For Killing}{16}
|
||||
@numsubsecentry{Specifying Numeric Arguments}{1.4.5}{Numeric Arguments}{17}
|
||||
@numsubsecentry{Letting Readline Type For You}{1.4.6}{Commands For Completion}{17}
|
||||
@numsubsecentry{Keyboard Macros}{1.4.7}{Keyboard Macros}{17}
|
||||
@numsubsecentry{Keyboard Macros}{1.4.7}{Keyboard Macros}{18}
|
||||
@numsubsecentry{Some Miscellaneous Commands}{1.4.8}{Miscellaneous Commands}{18}
|
||||
@numsecentry{Readline vi Mode}{1.5}{Readline vi Mode}{19}
|
||||
@appentry{GNU Free Documentation License}{A}{GNU Free Documentation License}{20}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
\entry{convert-meta}{5}{\code {convert-meta}}
|
||||
\entry{disable-completion}{5}{\code {disable-completion}}
|
||||
\entry{editing-mode}{5}{\code {editing-mode}}
|
||||
\entry{enable-keypad}{5}{\code {enable-keypad}}
|
||||
\entry{enable-keypad}{6}{\code {enable-keypad}}
|
||||
\entry{expand-tilde}{6}{\code {expand-tilde}}
|
||||
\entry{history-preserve-point}{6}{\code {history-preserve-point}}
|
||||
\entry{history-size}{6}{\code {history-size}}
|
||||
@@ -15,7 +15,7 @@
|
||||
\entry{meta-flag}{6}{\code {meta-flag}}
|
||||
\entry{isearch-terminators}{6}{\code {isearch-terminators}}
|
||||
\entry{keymap}{6}{\code {keymap}}
|
||||
\entry{mark-modified-lines}{6}{\code {mark-modified-lines}}
|
||||
\entry{mark-modified-lines}{7}{\code {mark-modified-lines}}
|
||||
\entry{mark-symlinked-directories}{7}{\code {mark-symlinked-directories}}
|
||||
\entry{match-hidden-files}{7}{\code {match-hidden-files}}
|
||||
\entry{output-meta}{7}{\code {output-meta}}
|
||||
@@ -23,4 +23,5 @@
|
||||
\entry{revert-all-at-newline}{7}{\code {revert-all-at-newline}}
|
||||
\entry{show-all-if-ambiguous}{7}{\code {show-all-if-ambiguous}}
|
||||
\entry{show-all-if-unmodified}{7}{\code {show-all-if-unmodified}}
|
||||
\entry{visible-stats}{7}{\code {visible-stats}}
|
||||
\entry{skip-completed-text}{8}{\code {skip-completed-text}}
|
||||
\entry{visible-stats}{8}{\code {visible-stats}}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
\entry {\code {disable-completion}}{5}
|
||||
\initial {E}
|
||||
\entry {\code {editing-mode}}{5}
|
||||
\entry {\code {enable-keypad}}{5}
|
||||
\entry {\code {enable-keypad}}{6}
|
||||
\entry {\code {expand-tilde}}{6}
|
||||
\initial {H}
|
||||
\entry {\code {history-preserve-point}}{6}
|
||||
@@ -22,7 +22,7 @@
|
||||
\initial {K}
|
||||
\entry {\code {keymap}}{6}
|
||||
\initial {M}
|
||||
\entry {\code {mark-modified-lines}}{6}
|
||||
\entry {\code {mark-modified-lines}}{7}
|
||||
\entry {\code {mark-symlinked-directories}}{7}
|
||||
\entry {\code {match-hidden-files}}{7}
|
||||
\entry {\code {meta-flag}}{6}
|
||||
@@ -35,5 +35,6 @@
|
||||
\initial {S}
|
||||
\entry {\code {show-all-if-ambiguous}}{7}
|
||||
\entry {\code {show-all-if-unmodified}}{7}
|
||||
\entry {\code {skip-completed-text}}{8}
|
||||
\initial {V}
|
||||
\entry {\code {visible-stats}}{7}
|
||||
\entry {\code {visible-stats}}{8}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/* posixdir.h -- Posix directory reading includes and defines. */
|
||||
|
||||
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* This file should be included instead of <dirent.h> or <sys/dir.h>. */
|
||||
|
||||
#if !defined (_POSIXDIR_H_)
|
||||
#define _POSIXDIR_H_
|
||||
|
||||
#if defined (HAVE_DIRENT_H)
|
||||
# include <dirent.h>
|
||||
# if defined (HAVE_STRUCT_DIRENT_D_NAMLEN)
|
||||
# define D_NAMLEN(d) ((d)->d_namlen)
|
||||
# else
|
||||
# define D_NAMLEN(d) (strlen ((d)->d_name))
|
||||
# endif /* !HAVE_STRUCT_DIRENT_D_NAMLEN */
|
||||
#else
|
||||
# if defined (HAVE_SYS_NDIR_H)
|
||||
# include <sys/ndir.h>
|
||||
# endif
|
||||
# if defined (HAVE_SYS_DIR_H)
|
||||
# include <sys/dir.h>
|
||||
# endif
|
||||
# if defined (HAVE_NDIR_H)
|
||||
# include <ndir.h>
|
||||
# endif
|
||||
# if !defined (dirent)
|
||||
# define dirent direct
|
||||
# endif /* !dirent */
|
||||
# define D_NAMLEN(d) ((d)->d_namlen)
|
||||
#endif /* !HAVE_DIRENT_H */
|
||||
|
||||
#if defined (HAVE_STRUCT_DIRENT_D_INO) && !defined (HAVE_STRUCT_DIRENT_D_FILENO)
|
||||
# define d_fileno d_ino
|
||||
#endif
|
||||
|
||||
#if defined (_POSIX_SOURCE) && (!defined (HAVE_STRUCT_DIRENT_D_INO) || defined (BROKEN_DIRENT_D_INO))
|
||||
/* Posix does not require that the d_ino field be present, and some
|
||||
systems do not provide it. */
|
||||
# define REAL_DIR_ENTRY(dp) 1
|
||||
#else
|
||||
# define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
|
||||
#endif /* _POSIX_SOURCE */
|
||||
|
||||
#endif /* !_POSIXDIR_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixdir.h
|
||||
@@ -1,40 +0,0 @@
|
||||
/* posixjmp.h -- wrapper for setjmp.h with changes for POSIX systems. */
|
||||
|
||||
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _POSIXJMP_H_
|
||||
#define _POSIXJMP_H_
|
||||
|
||||
#include <setjmp.h>
|
||||
|
||||
/* This *must* be included *after* config.h */
|
||||
|
||||
#if defined (HAVE_POSIX_SIGSETJMP)
|
||||
# define procenv_t sigjmp_buf
|
||||
# if !defined (__OPENNT)
|
||||
# undef setjmp
|
||||
# define setjmp(x) sigsetjmp((x), 1)
|
||||
# undef longjmp
|
||||
# define longjmp(x, n) siglongjmp((x), (n))
|
||||
# endif /* !__OPENNT */
|
||||
#else
|
||||
# define procenv_t jmp_buf
|
||||
#endif
|
||||
|
||||
#endif /* _POSIXJMP_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixjmp.h
|
||||
@@ -1,47 +0,0 @@
|
||||
/* posixselect.h -- wrapper for select(2) includes and definitions */
|
||||
|
||||
/* Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _POSIXSELECT_H_
|
||||
#define _POSIXSELECT_H_
|
||||
|
||||
#if defined (FD_SET) && !defined (HAVE_SELECT)
|
||||
# define HAVE_SELECT 1
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_SELECT)
|
||||
# if !defined (HAVE_SYS_SELECT_H) || !defined (M_UNIX)
|
||||
# include <sys/time.h>
|
||||
# endif
|
||||
#endif /* HAVE_SELECT */
|
||||
#if defined (HAVE_SYS_SELECT_H)
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#ifndef USEC_PER_SEC
|
||||
# define USEC_PER_SEC 1000000
|
||||
#endif
|
||||
|
||||
#define USEC_TO_TIMEVAL(us, tv) \
|
||||
do { \
|
||||
(tv).tv_sec = (us) / USEC_PER_SEC; \
|
||||
(tv).tv_usec = (us) % USEC_PER_SEC; \
|
||||
} while (0)
|
||||
|
||||
#endif /* _POSIXSELECT_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixselect.h
|
||||
@@ -1,142 +0,0 @@
|
||||
/* posixstat.h -- Posix stat(2) definitions for systems that
|
||||
don't have them. */
|
||||
|
||||
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
Bash is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Bash is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* This file should be included instead of <sys/stat.h>.
|
||||
It relies on the local sys/stat.h to work though. */
|
||||
#if !defined (_POSIXSTAT_H_)
|
||||
#define _POSIXSTAT_H_
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined (STAT_MACROS_BROKEN)
|
||||
# undef S_ISBLK
|
||||
# undef S_ISCHR
|
||||
# undef S_ISDIR
|
||||
# undef S_ISFIFO
|
||||
# undef S_ISREG
|
||||
# undef S_ISLNK
|
||||
#endif /* STAT_MACROS_BROKEN */
|
||||
|
||||
/* These are guaranteed to work only on isc386 */
|
||||
#if !defined (S_IFDIR) && !defined (S_ISDIR)
|
||||
# define S_IFDIR 0040000
|
||||
#endif /* !S_IFDIR && !S_ISDIR */
|
||||
#if !defined (S_IFMT)
|
||||
# define S_IFMT 0170000
|
||||
#endif /* !S_IFMT */
|
||||
|
||||
/* Posix 1003.1 5.6.1.1 <sys/stat.h> file types */
|
||||
|
||||
/* Some Posix-wannabe systems define _S_IF* macros instead of S_IF*, but
|
||||
do not provide the S_IS* macros that Posix requires. */
|
||||
|
||||
#if defined (_S_IFMT) && !defined (S_IFMT)
|
||||
#define S_IFMT _S_IFMT
|
||||
#endif
|
||||
#if defined (_S_IFIFO) && !defined (S_IFIFO)
|
||||
#define S_IFIFO _S_IFIFO
|
||||
#endif
|
||||
#if defined (_S_IFCHR) && !defined (S_IFCHR)
|
||||
#define S_IFCHR _S_IFCHR
|
||||
#endif
|
||||
#if defined (_S_IFDIR) && !defined (S_IFDIR)
|
||||
#define S_IFDIR _S_IFDIR
|
||||
#endif
|
||||
#if defined (_S_IFBLK) && !defined (S_IFBLK)
|
||||
#define S_IFBLK _S_IFBLK
|
||||
#endif
|
||||
#if defined (_S_IFREG) && !defined (S_IFREG)
|
||||
#define S_IFREG _S_IFREG
|
||||
#endif
|
||||
#if defined (_S_IFLNK) && !defined (S_IFLNK)
|
||||
#define S_IFLNK _S_IFLNK
|
||||
#endif
|
||||
#if defined (_S_IFSOCK) && !defined (S_IFSOCK)
|
||||
#define S_IFSOCK _S_IFSOCK
|
||||
#endif
|
||||
|
||||
/* Test for each symbol individually and define the ones necessary (some
|
||||
systems claiming Posix compatibility define some but not all). */
|
||||
|
||||
#if defined (S_IFBLK) && !defined (S_ISBLK)
|
||||
#define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK) /* block device */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFCHR) && !defined (S_ISCHR)
|
||||
#define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) /* character device */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFDIR) && !defined (S_ISDIR)
|
||||
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) /* directory */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFREG) && !defined (S_ISREG)
|
||||
#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG) /* file */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFIFO) && !defined (S_ISFIFO)
|
||||
#define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO) /* fifo - named pipe */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFLNK) && !defined (S_ISLNK)
|
||||
#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK) /* symbolic link */
|
||||
#endif
|
||||
|
||||
#if defined (S_IFSOCK) && !defined (S_ISSOCK)
|
||||
#define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK) /* socket */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* POSIX 1003.1 5.6.1.2 <sys/stat.h> File Modes
|
||||
*/
|
||||
|
||||
#if !defined (S_IRWXU)
|
||||
# if !defined (S_IREAD)
|
||||
# define S_IREAD 00400
|
||||
# define S_IWRITE 00200
|
||||
# define S_IEXEC 00100
|
||||
# endif /* S_IREAD */
|
||||
|
||||
# if !defined (S_IRUSR)
|
||||
# define S_IRUSR S_IREAD /* read, owner */
|
||||
# define S_IWUSR S_IWRITE /* write, owner */
|
||||
# define S_IXUSR S_IEXEC /* execute, owner */
|
||||
|
||||
# define S_IRGRP (S_IREAD >> 3) /* read, group */
|
||||
# define S_IWGRP (S_IWRITE >> 3) /* write, group */
|
||||
# define S_IXGRP (S_IEXEC >> 3) /* execute, group */
|
||||
|
||||
# define S_IROTH (S_IREAD >> 6) /* read, other */
|
||||
# define S_IWOTH (S_IWRITE >> 6) /* write, other */
|
||||
# define S_IXOTH (S_IEXEC >> 6) /* execute, other */
|
||||
# endif /* !S_IRUSR */
|
||||
|
||||
# define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
|
||||
# define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
|
||||
# define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
|
||||
#endif /* !S_IRWXU */
|
||||
|
||||
/* These are non-standard, but are used in builtins.c$symbolic_umask() */
|
||||
#define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH)
|
||||
#define S_IWUGO (S_IWUSR | S_IWGRP | S_IWOTH)
|
||||
#define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
|
||||
|
||||
#endif /* _POSIXSTAT_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../include/posixstat.h
|
||||
@@ -1,502 +0,0 @@
|
||||
/* tilde.c -- Tilde expansion code (~/foo := $HOME/foo). */
|
||||
|
||||
/* Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU Readline Library (Readline), a library
|
||||
for reading lines of text with interactive input and history editing.
|
||||
|
||||
Readline is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Readline is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Readline. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if defined (HAVE_CONFIG_H)
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_UNISTD_H)
|
||||
# ifdef _MINIX
|
||||
# include <sys/types.h>
|
||||
# endif
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_STRING_H)
|
||||
# include <string.h>
|
||||
#else /* !HAVE_STRING_H */
|
||||
# include <strings.h>
|
||||
#endif /* !HAVE_STRING_H */
|
||||
|
||||
#if defined (HAVE_STDLIB_H)
|
||||
# include <stdlib.h>
|
||||
#else
|
||||
# include "ansi_stdlib.h"
|
||||
#endif /* HAVE_STDLIB_H */
|
||||
|
||||
#include <sys/types.h>
|
||||
#if defined (HAVE_PWD_H)
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
#include "tilde.h"
|
||||
|
||||
#if defined (TEST) || defined (STATIC_MALLOC)
|
||||
static void *xmalloc (), *xrealloc ();
|
||||
#else
|
||||
# include "xmalloc.h"
|
||||
#endif /* TEST || STATIC_MALLOC */
|
||||
|
||||
#if !defined (HAVE_GETPW_DECLS)
|
||||
# if defined (HAVE_GETPWUID)
|
||||
extern struct passwd *getpwuid PARAMS((uid_t));
|
||||
# endif
|
||||
# if defined (HAVE_GETPWNAM)
|
||||
extern struct passwd *getpwnam PARAMS((const char *));
|
||||
# endif
|
||||
#endif /* !HAVE_GETPW_DECLS */
|
||||
|
||||
#if !defined (savestring)
|
||||
#define savestring(x) strcpy ((char *)xmalloc (1 + strlen (x)), (x))
|
||||
#endif /* !savestring */
|
||||
|
||||
#if !defined (NULL)
|
||||
# if defined (__STDC__)
|
||||
# define NULL ((void *) 0)
|
||||
# else
|
||||
# define NULL 0x0
|
||||
# endif /* !__STDC__ */
|
||||
#endif /* !NULL */
|
||||
|
||||
/* If being compiled as part of bash, these will be satisfied from
|
||||
variables.o. If being compiled as part of readline, they will
|
||||
be satisfied from shell.o. */
|
||||
extern char *sh_get_home_dir PARAMS((void));
|
||||
extern char *sh_get_env_value PARAMS((const char *));
|
||||
|
||||
/* The default value of tilde_additional_prefixes. This is set to
|
||||
whitespace preceding a tilde so that simple programs which do not
|
||||
perform any word separation get desired behaviour. */
|
||||
static const char *default_prefixes[] =
|
||||
{ " ~", "\t~", (const char *)NULL };
|
||||
|
||||
/* The default value of tilde_additional_suffixes. This is set to
|
||||
whitespace or newline so that simple programs which do not
|
||||
perform any word separation get desired behaviour. */
|
||||
static const char *default_suffixes[] =
|
||||
{ " ", "\n", (const char *)NULL };
|
||||
|
||||
/* If non-null, this contains the address of a function that the application
|
||||
wants called before trying the standard tilde expansions. The function
|
||||
is called with the text sans tilde, and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if the expansion fails. */
|
||||
tilde_hook_func_t *tilde_expansion_preexpansion_hook = (tilde_hook_func_t *)NULL;
|
||||
|
||||
/* If non-null, this contains the address of a function to call if the
|
||||
standard meaning for expanding a tilde fails. The function is called
|
||||
with the text (sans tilde, as in "foo"), and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if there is no expansion. */
|
||||
tilde_hook_func_t *tilde_expansion_failure_hook = (tilde_hook_func_t *)NULL;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which
|
||||
are duplicates for a tilde prefix. Bash uses this to expand
|
||||
`=~' and `:~'. */
|
||||
char **tilde_additional_prefixes = (char **)default_prefixes;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which match
|
||||
the end of a username, instead of just "/". Bash sets this to
|
||||
`:' and `=~'. */
|
||||
char **tilde_additional_suffixes = (char **)default_suffixes;
|
||||
|
||||
static int tilde_find_prefix PARAMS((const char *, int *));
|
||||
static int tilde_find_suffix PARAMS((const char *));
|
||||
static char *isolate_tilde_prefix PARAMS((const char *, int *));
|
||||
static char *glue_prefix_and_suffix PARAMS((char *, const char *, int));
|
||||
|
||||
/* Find the start of a tilde expansion in STRING, and return the index of
|
||||
the tilde which starts the expansion. Place the length of the text
|
||||
which identified this tilde starter in LEN, excluding the tilde itself. */
|
||||
static int
|
||||
tilde_find_prefix (string, len)
|
||||
const char *string;
|
||||
int *len;
|
||||
{
|
||||
register int i, j, string_len;
|
||||
register char **prefixes;
|
||||
|
||||
prefixes = tilde_additional_prefixes;
|
||||
|
||||
string_len = strlen (string);
|
||||
*len = 0;
|
||||
|
||||
if (*string == '\0' || *string == '~')
|
||||
return (0);
|
||||
|
||||
if (prefixes)
|
||||
{
|
||||
for (i = 0; i < string_len; i++)
|
||||
{
|
||||
for (j = 0; prefixes[j]; j++)
|
||||
{
|
||||
if (strncmp (string + i, prefixes[j], strlen (prefixes[j])) == 0)
|
||||
{
|
||||
*len = strlen (prefixes[j]) - 1;
|
||||
return (i + *len);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return (string_len);
|
||||
}
|
||||
|
||||
/* Find the end of a tilde expansion in STRING, and return the index of
|
||||
the character which ends the tilde definition. */
|
||||
static int
|
||||
tilde_find_suffix (string)
|
||||
const char *string;
|
||||
{
|
||||
register int i, j, string_len;
|
||||
register char **suffixes;
|
||||
|
||||
suffixes = tilde_additional_suffixes;
|
||||
string_len = strlen (string);
|
||||
|
||||
for (i = 0; i < string_len; i++)
|
||||
{
|
||||
#if defined (__MSDOS__)
|
||||
if (string[i] == '/' || string[i] == '\\' /* || !string[i] */)
|
||||
#else
|
||||
if (string[i] == '/' /* || !string[i] */)
|
||||
#endif
|
||||
break;
|
||||
|
||||
for (j = 0; suffixes && suffixes[j]; j++)
|
||||
{
|
||||
if (strncmp (string + i, suffixes[j], strlen (suffixes[j])) == 0)
|
||||
return (i);
|
||||
}
|
||||
}
|
||||
return (i);
|
||||
}
|
||||
|
||||
/* Return a new string which is the result of tilde expanding STRING. */
|
||||
char *
|
||||
tilde_expand (string)
|
||||
const char *string;
|
||||
{
|
||||
char *result;
|
||||
int result_size, result_index;
|
||||
|
||||
result_index = result_size = 0;
|
||||
if (result = strchr (string, '~'))
|
||||
result = (char *)xmalloc (result_size = (strlen (string) + 16));
|
||||
else
|
||||
result = (char *)xmalloc (result_size = (strlen (string) + 1));
|
||||
|
||||
/* Scan through STRING expanding tildes as we come to them. */
|
||||
while (1)
|
||||
{
|
||||
register int start, end;
|
||||
char *tilde_word, *expansion;
|
||||
int len;
|
||||
|
||||
/* Make START point to the tilde which starts the expansion. */
|
||||
start = tilde_find_prefix (string, &len);
|
||||
|
||||
/* Copy the skipped text into the result. */
|
||||
if ((result_index + start + 1) > result_size)
|
||||
result = (char *)xrealloc (result, 1 + (result_size += (start + 20)));
|
||||
|
||||
strncpy (result + result_index, string, start);
|
||||
result_index += start;
|
||||
|
||||
/* Advance STRING to the starting tilde. */
|
||||
string += start;
|
||||
|
||||
/* Make END be the index of one after the last character of the
|
||||
username. */
|
||||
end = tilde_find_suffix (string);
|
||||
|
||||
/* If both START and END are zero, we are all done. */
|
||||
if (!start && !end)
|
||||
break;
|
||||
|
||||
/* Expand the entire tilde word, and copy it into RESULT. */
|
||||
tilde_word = (char *)xmalloc (1 + end);
|
||||
strncpy (tilde_word, string, end);
|
||||
tilde_word[end] = '\0';
|
||||
string += end;
|
||||
|
||||
expansion = tilde_expand_word (tilde_word);
|
||||
xfree (tilde_word);
|
||||
|
||||
len = strlen (expansion);
|
||||
#ifdef __CYGWIN__
|
||||
/* Fix for Cygwin to prevent ~user/xxx from expanding to //xxx when
|
||||
$HOME for `user' is /. On cygwin, // denotes a network drive. */
|
||||
if (len > 1 || *expansion != '/' || *string != '/')
|
||||
#endif
|
||||
{
|
||||
if ((result_index + len + 1) > result_size)
|
||||
result = (char *)xrealloc (result, 1 + (result_size += (len + 20)));
|
||||
|
||||
strcpy (result + result_index, expansion);
|
||||
result_index += len;
|
||||
}
|
||||
xfree (expansion);
|
||||
}
|
||||
|
||||
result[result_index] = '\0';
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
||||
/* Take FNAME and return the tilde prefix we want expanded. If LENP is
|
||||
non-null, the index of the end of the prefix into FNAME is returned in
|
||||
the location it points to. */
|
||||
static char *
|
||||
isolate_tilde_prefix (fname, lenp)
|
||||
const char *fname;
|
||||
int *lenp;
|
||||
{
|
||||
char *ret;
|
||||
int i;
|
||||
|
||||
ret = (char *)xmalloc (strlen (fname));
|
||||
#if defined (__MSDOS__)
|
||||
for (i = 1; fname[i] && fname[i] != '/' && fname[i] != '\\'; i++)
|
||||
#else
|
||||
for (i = 1; fname[i] && fname[i] != '/'; i++)
|
||||
#endif
|
||||
ret[i - 1] = fname[i];
|
||||
ret[i - 1] = '\0';
|
||||
if (lenp)
|
||||
*lenp = i;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Public function to scan a string (FNAME) beginning with a tilde and find
|
||||
the portion of the string that should be passed to the tilde expansion
|
||||
function. Right now, it just calls tilde_find_suffix and allocates new
|
||||
memory, but it can be expanded to do different things later. */
|
||||
char *
|
||||
tilde_find_word (fname, flags, lenp)
|
||||
const char *fname;
|
||||
int flags, *lenp;
|
||||
{
|
||||
int x;
|
||||
char *r;
|
||||
|
||||
x = tilde_find_suffix (fname);
|
||||
if (x == 0)
|
||||
{
|
||||
r = savestring (fname);
|
||||
if (lenp)
|
||||
*lenp = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = (char *)xmalloc (1 + x);
|
||||
strncpy (r, fname, x);
|
||||
r[x] = '\0';
|
||||
if (lenp)
|
||||
*lenp = x;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Return a string that is PREFIX concatenated with SUFFIX starting at
|
||||
SUFFIND. */
|
||||
static char *
|
||||
glue_prefix_and_suffix (prefix, suffix, suffind)
|
||||
char *prefix;
|
||||
const char *suffix;
|
||||
int suffind;
|
||||
{
|
||||
char *ret;
|
||||
int plen, slen;
|
||||
|
||||
plen = (prefix && *prefix) ? strlen (prefix) : 0;
|
||||
slen = strlen (suffix + suffind);
|
||||
ret = (char *)xmalloc (plen + slen + 1);
|
||||
if (plen)
|
||||
strcpy (ret, prefix);
|
||||
strcpy (ret + plen, suffix + suffind);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Do the work of tilde expansion on FILENAME. FILENAME starts with a
|
||||
tilde. If there is no expansion, call tilde_expansion_failure_hook.
|
||||
This always returns a newly-allocated string, never static storage. */
|
||||
char *
|
||||
tilde_expand_word (filename)
|
||||
const char *filename;
|
||||
{
|
||||
char *dirname, *expansion, *username;
|
||||
int user_len;
|
||||
struct passwd *user_entry;
|
||||
|
||||
if (filename == 0)
|
||||
return ((char *)NULL);
|
||||
|
||||
if (*filename != '~')
|
||||
return (savestring (filename));
|
||||
|
||||
/* A leading `~/' or a bare `~' is *always* translated to the value of
|
||||
$HOME or the home directory of the current user, regardless of any
|
||||
preexpansion hook. */
|
||||
if (filename[1] == '\0' || filename[1] == '/')
|
||||
{
|
||||
/* Prefix $HOME to the rest of the string. */
|
||||
expansion = sh_get_env_value ("HOME");
|
||||
|
||||
/* If there is no HOME variable, look up the directory in
|
||||
the password database. */
|
||||
if (expansion == 0)
|
||||
expansion = sh_get_home_dir ();
|
||||
|
||||
return (glue_prefix_and_suffix (expansion, filename, 1));
|
||||
}
|
||||
|
||||
username = isolate_tilde_prefix (filename, &user_len);
|
||||
|
||||
if (tilde_expansion_preexpansion_hook)
|
||||
{
|
||||
expansion = (*tilde_expansion_preexpansion_hook) (username);
|
||||
if (expansion)
|
||||
{
|
||||
dirname = glue_prefix_and_suffix (expansion, filename, user_len);
|
||||
xfree (username);
|
||||
free (expansion);
|
||||
return (dirname);
|
||||
}
|
||||
}
|
||||
|
||||
/* No preexpansion hook, or the preexpansion hook failed. Look in the
|
||||
password database. */
|
||||
dirname = (char *)NULL;
|
||||
#if defined (HAVE_GETPWNAM)
|
||||
user_entry = getpwnam (username);
|
||||
#else
|
||||
user_entry = 0;
|
||||
#endif
|
||||
if (user_entry == 0)
|
||||
{
|
||||
/* If the calling program has a special syntax for expanding tildes,
|
||||
and we couldn't find a standard expansion, then let them try. */
|
||||
if (tilde_expansion_failure_hook)
|
||||
{
|
||||
expansion = (*tilde_expansion_failure_hook) (username);
|
||||
if (expansion)
|
||||
{
|
||||
dirname = glue_prefix_and_suffix (expansion, filename, user_len);
|
||||
free (expansion);
|
||||
}
|
||||
}
|
||||
/* If we don't have a failure hook, or if the failure hook did not
|
||||
expand the tilde, return a copy of what we were passed. */
|
||||
if (dirname == 0)
|
||||
dirname = savestring (filename);
|
||||
}
|
||||
#if defined (HAVE_GETPWENT)
|
||||
else
|
||||
dirname = glue_prefix_and_suffix (user_entry->pw_dir, filename, user_len);
|
||||
#endif
|
||||
|
||||
xfree (username);
|
||||
#if defined (HAVE_GETPWENT)
|
||||
endpwent ();
|
||||
#endif
|
||||
return (dirname);
|
||||
}
|
||||
|
||||
|
||||
#if defined (TEST)
|
||||
#undef NULL
|
||||
#include <stdio.h>
|
||||
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
char *result, line[512];
|
||||
int done = 0;
|
||||
|
||||
while (!done)
|
||||
{
|
||||
printf ("~expand: ");
|
||||
fflush (stdout);
|
||||
|
||||
if (!gets (line))
|
||||
strcpy (line, "done");
|
||||
|
||||
if ((strcmp (line, "done") == 0) ||
|
||||
(strcmp (line, "quit") == 0) ||
|
||||
(strcmp (line, "exit") == 0))
|
||||
{
|
||||
done = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
result = tilde_expand (line);
|
||||
printf (" --> %s\n", result);
|
||||
free (result);
|
||||
}
|
||||
exit (0);
|
||||
}
|
||||
|
||||
static void memory_error_and_abort ();
|
||||
|
||||
static void *
|
||||
xmalloc (bytes)
|
||||
size_t bytes;
|
||||
{
|
||||
void *temp = (char *)malloc (bytes);
|
||||
|
||||
if (!temp)
|
||||
memory_error_and_abort ();
|
||||
return (temp);
|
||||
}
|
||||
|
||||
static void *
|
||||
xrealloc (pointer, bytes)
|
||||
void *pointer;
|
||||
int bytes;
|
||||
{
|
||||
void *temp;
|
||||
|
||||
if (!pointer)
|
||||
temp = malloc (bytes);
|
||||
else
|
||||
temp = realloc (pointer, bytes);
|
||||
|
||||
if (!temp)
|
||||
memory_error_and_abort ();
|
||||
|
||||
return (temp);
|
||||
}
|
||||
|
||||
static void
|
||||
memory_error_and_abort ()
|
||||
{
|
||||
fprintf (stderr, "readline: out of virtual memory\n");
|
||||
abort ();
|
||||
}
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -g -DTEST -o tilde tilde.c"
|
||||
* end:
|
||||
*/
|
||||
#endif /* TEST */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../tilde/tilde.c
|
||||
@@ -1,80 +0,0 @@
|
||||
/* tilde.h: Externally available variables and function in libtilde.a. */
|
||||
|
||||
/* Copyright (C) 1992-2009 Free Software Foundation, Inc.
|
||||
|
||||
This file contains the Readline Library (Readline), a set of
|
||||
routines for providing Emacs style line input to programs that ask
|
||||
for it.
|
||||
|
||||
Readline is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Readline is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Readline. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined (_TILDE_H_)
|
||||
# define _TILDE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* A function can be defined using prototypes and compile on both ANSI C
|
||||
and traditional C compilers with something like this:
|
||||
extern char *func PARAMS((char *, char *, int)); */
|
||||
|
||||
#if !defined (PARAMS)
|
||||
# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
|
||||
# define PARAMS(protos) protos
|
||||
# else
|
||||
# define PARAMS(protos) ()
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef char *tilde_hook_func_t PARAMS((char *));
|
||||
|
||||
/* If non-null, this contains the address of a function that the application
|
||||
wants called before trying the standard tilde expansions. The function
|
||||
is called with the text sans tilde, and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if the expansion fails. */
|
||||
extern tilde_hook_func_t *tilde_expansion_preexpansion_hook;
|
||||
|
||||
/* If non-null, this contains the address of a function to call if the
|
||||
standard meaning for expanding a tilde fails. The function is called
|
||||
with the text (sans tilde, as in "foo"), and returns a malloc()'ed string
|
||||
which is the expansion, or a NULL pointer if there is no expansion. */
|
||||
extern tilde_hook_func_t *tilde_expansion_failure_hook;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which
|
||||
are duplicates for a tilde prefix. Bash uses this to expand
|
||||
`=~' and `:~'. */
|
||||
extern char **tilde_additional_prefixes;
|
||||
|
||||
/* When non-null, this is a NULL terminated array of strings which match
|
||||
the end of a username, instead of just "/". Bash sets this to
|
||||
`:' and `=~'. */
|
||||
extern char **tilde_additional_suffixes;
|
||||
|
||||
/* Return a new string which is the result of tilde expanding STRING. */
|
||||
extern char *tilde_expand PARAMS((const char *));
|
||||
|
||||
/* Do the work of tilde expansion on FILENAME. FILENAME starts with a
|
||||
tilde. If there is no expansion, call tilde_expansion_failure_hook. */
|
||||
extern char *tilde_expand_word PARAMS((const char *));
|
||||
|
||||
/* Find the portion of the string beginning with ~ that should be expanded. */
|
||||
extern char *tilde_find_word PARAMS((const char *, int, int *));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _TILDE_H_ */
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../tilde/tilde.h
|
||||
@@ -185,6 +185,7 @@ char *
|
||||
fnx_tofs (string)
|
||||
char *string;
|
||||
{
|
||||
bar
|
||||
return string;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,7 @@ extern int current_command_number;
|
||||
extern int sourcelevel, parse_and_execute_level;
|
||||
extern int posixly_correct;
|
||||
extern int last_command_exit_value;
|
||||
extern pid_t last_command_subst_pid;
|
||||
extern char *shell_name, *current_host_name;
|
||||
extern char *dist_version;
|
||||
extern int patch_level;
|
||||
@@ -2774,7 +2775,7 @@ reset_parser ()
|
||||
/* Reset to global value of extended glob */
|
||||
if (parser_state & PST_EXTPAT)
|
||||
{
|
||||
itrace("reset_parser: parser_state includes PST_EXTPAT");
|
||||
/*itrace("reset_parser: parser_state includes PST_EXTPAT");*/
|
||||
extended_glob = global_extglob;
|
||||
}
|
||||
|
||||
@@ -3092,7 +3093,7 @@ parse_matched_pair (qc, open, close, lenp, flags)
|
||||
char *ret, *nestret, *ttrans;
|
||||
int retind, retsize, rflags;
|
||||
|
||||
/*itrace("parse_matched_pair: open = %c close = %c flags = %d", open, close, flags); */
|
||||
/*itrace("parse_matched_pair[%d]: open = %c close = %c flags = %d", line_number, open, close, flags);*/
|
||||
count = 1;
|
||||
tflags = 0;
|
||||
|
||||
@@ -3301,6 +3302,7 @@ parse_dollar_word:
|
||||
ret[retind] = '\0';
|
||||
if (lenp)
|
||||
*lenp = retind;
|
||||
/*itrace("parse_matched_pair[%d]: returning %s", line_number, ret);*/
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -4917,7 +4919,7 @@ decode_prompt_string (string)
|
||||
WORD_LIST *list;
|
||||
char *result, *t;
|
||||
struct dstack save_dstack;
|
||||
int last_exit_value;
|
||||
int last_exit_value, last_comsub_pid;
|
||||
#if defined (PROMPT_STRING_DECODE)
|
||||
int result_size, result_index;
|
||||
int c, n, i;
|
||||
@@ -5265,11 +5267,13 @@ not_escape:
|
||||
if (promptvars || posixly_correct)
|
||||
{
|
||||
last_exit_value = last_command_exit_value;
|
||||
last_comsub_pid = last_command_subst_pid;
|
||||
list = expand_prompt_string (result, Q_DOUBLE_QUOTES, 0);
|
||||
free (result);
|
||||
result = string_list (list);
|
||||
dispose_words (list);
|
||||
last_command_exit_value = last_exit_value;
|
||||
last_command_subst_pid = last_comsub_pid;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -5412,7 +5416,7 @@ report_syntax_error (message)
|
||||
parser_error (line_number, "%s", message);
|
||||
if (interactive && EOF_Reached)
|
||||
EOF_Reached = 0;
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
last_command_exit_value = parse_and_execute_level ? EX_BADSYNTAX : EX_BADUSAGE;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5427,7 +5431,7 @@ report_syntax_error (message)
|
||||
if (interactive == 0)
|
||||
print_offending_line ();
|
||||
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
last_command_exit_value = parse_and_execute_level ? EX_BADSYNTAX : EX_BADUSAGE;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5458,7 +5462,7 @@ report_syntax_error (message)
|
||||
EOF_Reached = 0;
|
||||
}
|
||||
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
last_command_exit_value = parse_and_execute_level ? EX_BADSYNTAX : EX_BADUSAGE;
|
||||
}
|
||||
|
||||
/* ??? Needed function. ??? We have to be able to discard the constructs
|
||||
|
||||
@@ -118,6 +118,7 @@ extern int current_command_number;
|
||||
extern int sourcelevel, parse_and_execute_level;
|
||||
extern int posixly_correct;
|
||||
extern int last_command_exit_value;
|
||||
extern pid_t last_command_subst_pid;
|
||||
extern char *shell_name, *current_host_name;
|
||||
extern char *dist_version;
|
||||
extern int patch_level;
|
||||
@@ -2774,7 +2775,7 @@ reset_parser ()
|
||||
/* Reset to global value of extended glob */
|
||||
if (parser_state & PST_EXTPAT)
|
||||
{
|
||||
itrace("reset_parser: parser_state includes PST_EXTPAT");
|
||||
/*itrace("reset_parser: parser_state includes PST_EXTPAT");*/
|
||||
extended_glob = global_extglob;
|
||||
}
|
||||
|
||||
@@ -3092,7 +3093,7 @@ parse_matched_pair (qc, open, close, lenp, flags)
|
||||
char *ret, *nestret, *ttrans;
|
||||
int retind, retsize, rflags;
|
||||
|
||||
/*itrace("parse_matched_pair: open = %c close = %c flags = %d", open, close, flags); */
|
||||
/*itrace("parse_matched_pair[%d]: open = %c close = %c flags = %d", line_number, open, close, flags);*/
|
||||
count = 1;
|
||||
tflags = 0;
|
||||
|
||||
@@ -3145,6 +3146,7 @@ parse_matched_pair (qc, open, close, lenp, flags)
|
||||
if (tflags & LEX_PASSNEXT) /* last char was backslash */
|
||||
{
|
||||
tflags &= ~LEX_PASSNEXT;
|
||||
|
||||
if (qc != '\'' && ch == '\n') /* double-quoted \<newline> disappears. */
|
||||
{
|
||||
if (retind > 0)
|
||||
@@ -3301,6 +3303,7 @@ parse_dollar_word:
|
||||
ret[retind] = '\0';
|
||||
if (lenp)
|
||||
*lenp = retind;
|
||||
/*itrace("parse_matched_pair[%d]: returning %s", line_number, ret);*/
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -4095,17 +4098,12 @@ cond_term ()
|
||||
|
||||
/* rhs */
|
||||
if (parser_state & PST_EXTPAT)
|
||||
{
|
||||
extended_glob = 1;
|
||||
itrace("cond_node: temporarily set extended_glob to 1");
|
||||
}
|
||||
tok = read_token (READ);
|
||||
if (parser_state & PST_EXTPAT)
|
||||
{
|
||||
itrace("cond_node: reset extended_glob to %d", global_extglob);
|
||||
extended_glob = global_extglob;
|
||||
}
|
||||
parser_state &= ~(PST_REGEXP|PST_EXTPAT);
|
||||
|
||||
if (tok == WORD)
|
||||
{
|
||||
tright = make_cond_node (COND_TERM, yylval.word, (COND_COM *)NULL, (COND_COM *)NULL);
|
||||
@@ -4922,7 +4920,7 @@ decode_prompt_string (string)
|
||||
WORD_LIST *list;
|
||||
char *result, *t;
|
||||
struct dstack save_dstack;
|
||||
int last_exit_value;
|
||||
int last_exit_value, last_comsub_pid;
|
||||
#if defined (PROMPT_STRING_DECODE)
|
||||
int result_size, result_index;
|
||||
int c, n, i;
|
||||
@@ -5270,11 +5268,13 @@ not_escape:
|
||||
if (promptvars || posixly_correct)
|
||||
{
|
||||
last_exit_value = last_command_exit_value;
|
||||
last_comsub_pid = last_command_subst_pid;
|
||||
list = expand_prompt_string (result, Q_DOUBLE_QUOTES, 0);
|
||||
free (result);
|
||||
result = string_list (list);
|
||||
dispose_words (list);
|
||||
last_command_exit_value = last_exit_value;
|
||||
last_command_subst_pid = last_comsub_pid;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -5417,7 +5417,7 @@ report_syntax_error (message)
|
||||
parser_error (line_number, "%s", message);
|
||||
if (interactive && EOF_Reached)
|
||||
EOF_Reached = 0;
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
last_command_exit_value = parse_and_execute_level ? EX_BADSYNTAX : EX_BADUSAGE;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5432,7 +5432,7 @@ report_syntax_error (message)
|
||||
if (interactive == 0)
|
||||
print_offending_line ();
|
||||
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
last_command_exit_value = parse_and_execute_level ? EX_BADSYNTAX : EX_BADUSAGE;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5463,7 +5463,7 @@ report_syntax_error (message)
|
||||
EOF_Reached = 0;
|
||||
}
|
||||
|
||||
last_command_exit_value = EX_BADUSAGE;
|
||||
last_command_exit_value = parse_and_execute_level ? EX_BADSYNTAX : EX_BADUSAGE;
|
||||
}
|
||||
|
||||
/* ??? Needed function. ??? We have to be able to discard the constructs
|
||||
|
||||
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bash 4.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-10-09 15:06-0400\n"
|
||||
"POT-Creation-Date: 2009-10-12 10:08-0400\n"
|
||||
"PO-Revision-Date: 2009-09-24 23:08+0100\n"
|
||||
"Last-Translator: Séamus Ó Ciardhuáin <seoc@iolfree.ie>\n"
|
||||
"Language-Team: Irish <gaeilge-gnulinux@lists.sourceforge.net>\n"
|
||||
@@ -125,6 +125,21 @@ msgstr ""
|
||||
" \n"
|
||||
" Gan SLONN, aischuirtear "
|
||||
|
||||
#: builtins/caller.def:135
|
||||
msgid ""
|
||||
". With EXPR, returns\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#: builtins/caller.def:136
|
||||
msgid ""
|
||||
"; this extra information can be used to\n"
|
||||
" provide a stack trace.\n"
|
||||
" \n"
|
||||
" The value of EXPR indicates how many call frames to go back before the\n"
|
||||
" current one; the top frame is frame 0."
|
||||
msgstr ""
|
||||
|
||||
#: builtins/cd.def:215
|
||||
msgid "HOME not set"
|
||||
msgstr "Níl HOME socruithe"
|
||||
@@ -828,8 +843,8 @@ msgstr "%s: athróg neamhcheangailte"
|
||||
|
||||
#: eval.c:181
|
||||
#, c-format
|
||||
msgid "\atimed out waiting for input: auto-logout\n"
|
||||
msgstr "\aimithe thar am ag feitheamh le hionchur: logáil amach uathoibríoch\n"
|
||||
msgid "timed out waiting for input: auto-logout\n"
|
||||
msgstr "imithe thar am ag feitheamh le hionchur: logáil amach uathoibríoch\n"
|
||||
|
||||
#: execute_cmd.c:491
|
||||
#, c-format
|
||||
@@ -1772,16 +1787,16 @@ msgstr "%s: ag súil le hoibreoir dénártha."
|
||||
msgid "missing `]'"
|
||||
msgstr "\"]\" ar iarraidh"
|
||||
|
||||
#: trap.c:202
|
||||
#: trap.c:203
|
||||
msgid "invalid signal number"
|
||||
msgstr "Uimhir chomhartha neamhbhailí"
|
||||
|
||||
#: trap.c:326
|
||||
#: trap.c:327
|
||||
#, c-format
|
||||
msgid "run_pending_traps: bad value in trap_list[%d]: %p"
|
||||
msgstr "run_pending_traps: drochluach sa liosta_gaistí[%d]: %p"
|
||||
|
||||
#: trap.c:330
|
||||
#: trap.c:331
|
||||
#, c-format
|
||||
msgid ""
|
||||
"run_pending_traps: signal handler is SIG_DFL, resending %d (%s) to myself"
|
||||
@@ -1789,7 +1804,7 @@ msgstr ""
|
||||
"run_pending_traps: is SIG_DFL an láimhseálaí comharthaí; %d (%s) á "
|
||||
"athsheoladh chugam féin."
|
||||
|
||||
#: trap.c:379
|
||||
#: trap.c:380
|
||||
#, c-format
|
||||
msgid "trap_handler: bad signal %d"
|
||||
msgstr "trap_handler: droch-chomhartha %d"
|
||||
|
||||
+81
-37
@@ -51,6 +51,7 @@ extern int printf __P((const char *, ...)); /* Yuck. Double yuck. */
|
||||
#endif
|
||||
|
||||
extern int indirection_level;
|
||||
extern int last_command_exit_value;
|
||||
|
||||
static int indentation;
|
||||
static int indentation_amount = 4;
|
||||
@@ -988,7 +989,7 @@ print_redirection_list (redirects)
|
||||
else
|
||||
hdtail = heredocs = newredir;
|
||||
}
|
||||
else if (redirects->instruction == r_duplicating_output_word && redirects->redirector == 1)
|
||||
else if (redirects->instruction == r_duplicating_output_word && redirects->redirector.dest == 1)
|
||||
{
|
||||
/* Temporarily translate it as the execution code does. */
|
||||
redirects->instruction = r_err_and_out;
|
||||
@@ -1024,8 +1025,10 @@ print_heredoc_header (redirect)
|
||||
kill_leading = redirect->instruction == r_deblank_reading_until;
|
||||
|
||||
/* Here doc header */
|
||||
if (redirect->redirector != 0)
|
||||
cprintf ("%d", redirect->redirector);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redirect->redirector.filename->word);
|
||||
else if (redirect->redirector.dest != 0)
|
||||
cprintf ("%d", redirect->redirector.dest);
|
||||
|
||||
/* If the here document delimiter is quoted, single-quote it. */
|
||||
if (redirect->redirectee.filename->flags & W_QUOTED)
|
||||
@@ -1051,37 +1054,61 @@ print_redirection (redirect)
|
||||
REDIRECT *redirect;
|
||||
{
|
||||
int kill_leading, redirector, redir_fd;
|
||||
WORD_DESC *redirectee;
|
||||
WORD_DESC *redirectee, *redir_word;
|
||||
|
||||
kill_leading = 0;
|
||||
redirectee = redirect->redirectee.filename;
|
||||
redirector = redirect->redirector;
|
||||
redir_fd = redirect->redirectee.dest;
|
||||
|
||||
redir_word = redirect->redirector.filename;
|
||||
redirector = redirect->redirector.dest;
|
||||
|
||||
switch (redirect->instruction)
|
||||
{
|
||||
case r_output_direction:
|
||||
if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf ("> %s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_input_direction:
|
||||
if (redirector != 0)
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redir_word->word);
|
||||
else if (redirector != 0)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf ("< %s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_output_direction:
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redir_word->word);
|
||||
else if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf ("> %s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_inputa_direction: /* Redirection created by the shell. */
|
||||
cprintf ("&");
|
||||
break;
|
||||
|
||||
case r_output_force:
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redir_word->word);
|
||||
else if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf (">|%s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_appending_to:
|
||||
if (redirector != 1)
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redir_word->word);
|
||||
else if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf (">> %s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_input_output:
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redir_word->word);
|
||||
else if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf ("<> %s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_deblank_reading_until:
|
||||
case r_reading_until:
|
||||
print_heredoc_header (redirect);
|
||||
@@ -1090,7 +1117,9 @@ print_redirection (redirect)
|
||||
break;
|
||||
|
||||
case r_reading_string:
|
||||
if (redirector != 0)
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}", redir_word->word);
|
||||
else if (redirector != 0)
|
||||
cprintf ("%d", redirector);
|
||||
if (ansic_shouldquote (redirect->redirectee.filename->word))
|
||||
{
|
||||
@@ -1104,39 +1133,66 @@ print_redirection (redirect)
|
||||
break;
|
||||
|
||||
case r_duplicating_input:
|
||||
cprintf ("%d<&%d", redirector, redir_fd);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}<&%d", redir_word->word, redir_fd);
|
||||
else
|
||||
cprintf ("%d<&%d", redirector, redir_fd);
|
||||
break;
|
||||
|
||||
case r_duplicating_output:
|
||||
cprintf ("%d>&%d", redirector, redir_fd);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}>&%d", redir_word->word, redir_fd);
|
||||
else
|
||||
cprintf ("%d>&%d", redirector, redir_fd);
|
||||
break;
|
||||
|
||||
case r_duplicating_input_word:
|
||||
cprintf ("%d<&%s", redirector, redirectee->word);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}<&%s", redir_word->word, redirectee->word);
|
||||
else
|
||||
cprintf ("%d<&%s", redirector, redirectee->word);
|
||||
break;
|
||||
|
||||
case r_duplicating_output_word:
|
||||
cprintf ("%d>&%s", redirector, redirectee->word);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}>&%s", redir_word->word, redirectee->word);
|
||||
else
|
||||
cprintf ("%d>&%s", redirector, redirectee->word);
|
||||
break;
|
||||
|
||||
case r_move_input:
|
||||
cprintf ("%d<&%d-", redirector, redir_fd);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}<&%d-", redir_word->word, redir_fd);
|
||||
else
|
||||
cprintf ("%d<&%d-", redirector, redir_fd);
|
||||
break;
|
||||
|
||||
case r_move_output:
|
||||
cprintf ("%d>&%d-", redirector, redir_fd);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}>&%d-", redir_word->word, redir_fd);
|
||||
else
|
||||
cprintf ("%d>&%d-", redirector, redir_fd);
|
||||
break;
|
||||
|
||||
case r_move_input_word:
|
||||
cprintf ("%d<&%s-", redirector, redirectee->word);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}<&%s-", redir_word->word, redirectee->word);
|
||||
else
|
||||
cprintf ("%d<&%s-", redirector, redirectee->word);
|
||||
break;
|
||||
|
||||
case r_move_output_word:
|
||||
cprintf ("%d>&%s-", redirector, redirectee->word);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}>&%s-", redir_word->word, redirectee->word);
|
||||
else
|
||||
cprintf ("%d>&%s-", redirector, redirectee->word);
|
||||
break;
|
||||
|
||||
case r_close_this:
|
||||
cprintf ("%d>&-", redirector);
|
||||
if (redirect->rflags & REDIR_VARASSIGN)
|
||||
cprintf ("{%s}>&-", redir_word->word);
|
||||
else
|
||||
cprintf ("%d>&-", redirector);
|
||||
break;
|
||||
|
||||
case r_err_and_out:
|
||||
@@ -1146,18 +1202,6 @@ print_redirection (redirect)
|
||||
case r_append_err_and_out:
|
||||
cprintf ("&>>%s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_input_output:
|
||||
if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf ("<> %s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_output_force:
|
||||
if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
cprintf (">|%s", redirectee->word);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1339,7 +1383,7 @@ semicolon ()
|
||||
{
|
||||
if (command_string_index > 0 &&
|
||||
(the_printed_command[command_string_index - 1] == '&' ||
|
||||
the_printed_command[command_string_index - 1] == '\n'))
|
||||
the_printed_command[command_string_index - 1] == '\n'))
|
||||
return;
|
||||
cprintf (";");
|
||||
}
|
||||
@@ -1404,7 +1448,7 @@ cprintf (control, va_alist)
|
||||
argp = intbuf;
|
||||
}
|
||||
else
|
||||
argp = inttostr (digit_arg, intbuf, sizeof (intbuf));
|
||||
argp = inttostr (digit_arg, intbuf, sizeof (intbuf));
|
||||
arg_len = strlen (argp);
|
||||
break;
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ extern int errno;
|
||||
/* Flags for the `pflags' argument to param_expand() */
|
||||
#define PF_NOCOMSUB 0x01 /* Do not perform command substitution */
|
||||
#define PF_IGNUNBOUND 0x02 /* ignore unbound vars even if -u set */
|
||||
#define PF_NOSPLIT2 0x04 /* same as W_NOSPLIT2 */
|
||||
|
||||
/* These defs make it easier to use the editor. */
|
||||
#define LBRACE '{'
|
||||
@@ -293,7 +294,7 @@ static char *parameter_brace_patsub __P((char *, char *, char *, int));
|
||||
static char *pos_params_casemod __P((char *, char *, int, int));
|
||||
static char *parameter_brace_casemod __P((char *, char *, int, char *, int));
|
||||
|
||||
static WORD_DESC *parameter_brace_expand __P((char *, int *, int, int *, int *));
|
||||
static WORD_DESC *parameter_brace_expand __P((char *, int *, int, int, int *, int *));
|
||||
static WORD_DESC *param_expand __P((char *, int *, int, int *, int *, int *, int *, int));
|
||||
|
||||
static WORD_LIST *expand_word_internal __P((WORD_DESC *, int, int, int *, int *));
|
||||
@@ -3076,6 +3077,7 @@ cond_expand_word (w, special)
|
||||
if (w->word == 0 || w->word[0] == '\0')
|
||||
return ((char *)NULL);
|
||||
|
||||
w->flags |= W_NOSPLIT2;
|
||||
l = call_expand_word_internal (w, 0, 0, (int *)0, (int *)0);
|
||||
if (l)
|
||||
{
|
||||
@@ -4503,6 +4505,7 @@ expand_word_leave_quoted (word, quoted)
|
||||
if (ifs_firstc == 0)
|
||||
#endif
|
||||
word->flags |= W_NOSPLIT;
|
||||
word->flags |= W_NOSPLIT2;
|
||||
result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
|
||||
expand_no_split_dollar_star = 0;
|
||||
|
||||
@@ -6604,9 +6607,9 @@ chk_arithsub (s, len)
|
||||
|
||||
/* ${[#][!]name[[:][^[^]][,[,]]#[#]%[%]-=?+[word][:e1[:e2]]]} */
|
||||
static WORD_DESC *
|
||||
parameter_brace_expand (string, indexp, quoted, quoted_dollar_atp, contains_dollar_at)
|
||||
parameter_brace_expand (string, indexp, quoted, pflags, quoted_dollar_atp, contains_dollar_at)
|
||||
char *string;
|
||||
int *indexp, quoted, *quoted_dollar_atp, *contains_dollar_at;
|
||||
int *indexp, quoted, *quoted_dollar_atp, *contains_dollar_at, pflags;
|
||||
{
|
||||
int check_nullness, var_is_set, var_is_null, var_is_special;
|
||||
int want_substring, want_indir, want_patsub, want_casemod;
|
||||
@@ -6846,7 +6849,7 @@ parameter_brace_expand (string, indexp, quoted, quoted_dollar_atp, contains_doll
|
||||
if (want_indir)
|
||||
tdesc = parameter_brace_expand_indir (name + 1, var_is_special, quoted, quoted_dollar_atp, contains_dollar_at);
|
||||
else
|
||||
tdesc = parameter_brace_expand_word (name, var_is_special, quoted, PF_IGNUNBOUND);
|
||||
tdesc = parameter_brace_expand_word (name, var_is_special, quoted, PF_IGNUNBOUND|(pflags&PF_NOSPLIT2));
|
||||
|
||||
if (tdesc)
|
||||
{
|
||||
@@ -7280,6 +7283,11 @@ param_expand (string, sindex, quoted, expanded_something,
|
||||
if (contains_dollar_at)
|
||||
*contains_dollar_at = 1;
|
||||
|
||||
#if 0
|
||||
if (pflags & PF_NOSPLIT2)
|
||||
temp = string_list_internal (quoted ? quote_list (list) : list, " ");
|
||||
else
|
||||
#endif
|
||||
/* We want to separate the positional parameters with the first
|
||||
character of $IFS in case $IFS is something other than a space.
|
||||
We also want to make sure that splitting is done no matter what --
|
||||
@@ -7291,7 +7299,7 @@ param_expand (string, sindex, quoted, expanded_something,
|
||||
break;
|
||||
|
||||
case LBRACE:
|
||||
tdesc = parameter_brace_expand (string, &zindex, quoted,
|
||||
tdesc = parameter_brace_expand (string, &zindex, quoted, pflags,
|
||||
quoted_dollar_at_p,
|
||||
contains_dollar_at);
|
||||
|
||||
@@ -7569,6 +7577,7 @@ expand_word_internal (word, quoted, isexp, contains_dollar_at, expanded_somethin
|
||||
int had_quoted_null;
|
||||
int has_dollar_at;
|
||||
int tflag;
|
||||
int pflags; /* flags passed to param_expand */
|
||||
|
||||
int assignoff; /* If assignment, offset of `=' */
|
||||
|
||||
@@ -7678,7 +7687,7 @@ add_string:
|
||||
even in POSIX mode. */
|
||||
if (word->flags & (W_ASSIGNRHS|W_NOTILDE))
|
||||
{
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7698,7 +7707,7 @@ add_string:
|
||||
string[sindex+1] == '~')
|
||||
word->flags |= W_ITILDE;
|
||||
#endif
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7706,7 +7715,7 @@ add_string:
|
||||
case ':':
|
||||
if (word->flags & W_NOTILDE)
|
||||
{
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7716,7 +7725,7 @@ add_string:
|
||||
string[sindex+1] == '~')
|
||||
word->flags |= W_ITILDE;
|
||||
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7730,7 +7739,7 @@ add_string:
|
||||
(quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)))
|
||||
{
|
||||
word->flags &= ~W_ITILDE;
|
||||
if (isexp == 0 && isifs (c) && (quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)) == 0)
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c) && (quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)) == 0)
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7772,10 +7781,12 @@ add_string:
|
||||
*expanded_something = 1;
|
||||
|
||||
has_dollar_at = 0;
|
||||
pflags = (word->flags & W_NOCOMSUB) ? PF_NOCOMSUB : 0;
|
||||
if (word->flags & W_NOSPLIT2)
|
||||
pflags |= PF_NOSPLIT2;
|
||||
tword = param_expand (string, &sindex, quoted, expanded_something,
|
||||
&has_dollar_at, "ed_dollar_at,
|
||||
&had_quoted_null,
|
||||
(word->flags & W_NOCOMSUB) ? PF_NOCOMSUB : 0);
|
||||
&had_quoted_null, pflags);
|
||||
|
||||
if (tword == &expand_wdesc_error || tword == &expand_wdesc_fatal)
|
||||
{
|
||||
@@ -7970,6 +7981,11 @@ add_twochars:
|
||||
{
|
||||
if (list->next)
|
||||
{
|
||||
#if 0
|
||||
if (quoted_dollar_at && word->flags & W_NOSPLIT2)
|
||||
temp = string_list_internal (quote_list (list), " ");
|
||||
else
|
||||
#endif
|
||||
/* Testing quoted_dollar_at makes sure that "$@" is
|
||||
split correctly when $IFS does not contain a space. */
|
||||
temp = quoted_dollar_at
|
||||
|
||||
+9041
File diff suppressed because it is too large
Load Diff
@@ -86,6 +86,7 @@ extern int errno;
|
||||
/* Flags for the `pflags' argument to param_expand() */
|
||||
#define PF_NOCOMSUB 0x01 /* Do not perform command substitution */
|
||||
#define PF_IGNUNBOUND 0x02 /* ignore unbound vars even if -u set */
|
||||
#define PF_NOSPLIT2 0x04 /* same as W_NOSPLIT2 */
|
||||
|
||||
/* These defs make it easier to use the editor. */
|
||||
#define LBRACE '{'
|
||||
@@ -293,7 +294,7 @@ static char *parameter_brace_patsub __P((char *, char *, char *, int));
|
||||
static char *pos_params_casemod __P((char *, char *, int, int));
|
||||
static char *parameter_brace_casemod __P((char *, char *, int, char *, int));
|
||||
|
||||
static WORD_DESC *parameter_brace_expand __P((char *, int *, int, int *, int *));
|
||||
static WORD_DESC *parameter_brace_expand __P((char *, int *, int, int, int *, int *));
|
||||
static WORD_DESC *param_expand __P((char *, int *, int, int *, int *, int *, int *, int));
|
||||
|
||||
static WORD_LIST *expand_word_internal __P((WORD_DESC *, int, int, int *, int *));
|
||||
@@ -1630,7 +1631,7 @@ skip_to_delim (string, start, delims, flags)
|
||||
char *delims;
|
||||
int flags;
|
||||
{
|
||||
int i, pass_next, backq, si, c, invert, skipquote;
|
||||
int i, pass_next, backq, si, c, invert, skipquote, skipcmd;
|
||||
size_t slen;
|
||||
char *temp;
|
||||
DECLARE_MBSTATE;
|
||||
@@ -1639,6 +1640,7 @@ skip_to_delim (string, start, delims, flags)
|
||||
if (flags & SD_NOJMP)
|
||||
no_longjmp_on_fatal_error = 1;
|
||||
invert = (flags & SD_INVERT);
|
||||
skipcmd = (flags & SD_NOSKIPCMD) == 0;
|
||||
|
||||
i = start;
|
||||
pass_next = backq = 0;
|
||||
@@ -1684,7 +1686,7 @@ skip_to_delim (string, start, delims, flags)
|
||||
: skip_double_quoted (string, slen, ++i);
|
||||
/* no increment, the skip functions increment past the closing quote. */
|
||||
}
|
||||
else if (c == '$' && (string[i+1] == LPAREN || string[i+1] == LBRACE))
|
||||
else if (c == '$' && ((skipcmd && string[i+1] == LPAREN) || string[i+1] == LBRACE))
|
||||
{
|
||||
si = i + 2;
|
||||
if (string[si] == '\0')
|
||||
@@ -1701,7 +1703,7 @@ skip_to_delim (string, start, delims, flags)
|
||||
continue;
|
||||
}
|
||||
#if defined (PROCESS_SUBSTITUTION)
|
||||
else if ((c == '<' || c == '>') && string[i+1] == LPAREN)
|
||||
else if (skipcmd && (c == '<' || c == '>') && string[i+1] == LPAREN)
|
||||
{
|
||||
si = i + 2;
|
||||
if (string[si] == '\0')
|
||||
@@ -3075,6 +3077,7 @@ cond_expand_word (w, special)
|
||||
if (w->word == 0 || w->word[0] == '\0')
|
||||
return ((char *)NULL);
|
||||
|
||||
w->flags |= W_NOSPLIT2;
|
||||
l = call_expand_word_internal (w, 0, 0, (int *)0, (int *)0);
|
||||
if (l)
|
||||
{
|
||||
@@ -4502,6 +4505,7 @@ expand_word_leave_quoted (word, quoted)
|
||||
if (ifs_firstc == 0)
|
||||
#endif
|
||||
word->flags |= W_NOSPLIT;
|
||||
word->flags |= W_NOSPLIT2;
|
||||
result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
|
||||
expand_no_split_dollar_star = 0;
|
||||
|
||||
@@ -6603,9 +6607,9 @@ chk_arithsub (s, len)
|
||||
|
||||
/* ${[#][!]name[[:][^[^]][,[,]]#[#]%[%]-=?+[word][:e1[:e2]]]} */
|
||||
static WORD_DESC *
|
||||
parameter_brace_expand (string, indexp, quoted, quoted_dollar_atp, contains_dollar_at)
|
||||
parameter_brace_expand (string, indexp, quoted, pflags, quoted_dollar_atp, contains_dollar_at)
|
||||
char *string;
|
||||
int *indexp, quoted, *quoted_dollar_atp, *contains_dollar_at;
|
||||
int *indexp, quoted, *quoted_dollar_atp, *contains_dollar_at, pflags;
|
||||
{
|
||||
int check_nullness, var_is_set, var_is_null, var_is_special;
|
||||
int want_substring, want_indir, want_patsub, want_casemod;
|
||||
@@ -6845,7 +6849,7 @@ parameter_brace_expand (string, indexp, quoted, quoted_dollar_atp, contains_doll
|
||||
if (want_indir)
|
||||
tdesc = parameter_brace_expand_indir (name + 1, var_is_special, quoted, quoted_dollar_atp, contains_dollar_at);
|
||||
else
|
||||
tdesc = parameter_brace_expand_word (name, var_is_special, quoted, PF_IGNUNBOUND);
|
||||
tdesc = parameter_brace_expand_word (name, var_is_special, quoted, PF_IGNUNBOUND|(pflags&PF_NOSPLIT2));
|
||||
|
||||
if (tdesc)
|
||||
{
|
||||
@@ -7279,6 +7283,11 @@ param_expand (string, sindex, quoted, expanded_something,
|
||||
if (contains_dollar_at)
|
||||
*contains_dollar_at = 1;
|
||||
|
||||
#if 1
|
||||
if (pflags & PF_NOSPLIT2)
|
||||
temp = string_list_internal (quoted ? quote_list (list) : list, " ");
|
||||
else
|
||||
#endif
|
||||
/* We want to separate the positional parameters with the first
|
||||
character of $IFS in case $IFS is something other than a space.
|
||||
We also want to make sure that splitting is done no matter what --
|
||||
@@ -7290,7 +7299,7 @@ param_expand (string, sindex, quoted, expanded_something,
|
||||
break;
|
||||
|
||||
case LBRACE:
|
||||
tdesc = parameter_brace_expand (string, &zindex, quoted,
|
||||
tdesc = parameter_brace_expand (string, &zindex, quoted, pflags,
|
||||
quoted_dollar_at_p,
|
||||
contains_dollar_at);
|
||||
|
||||
@@ -7568,6 +7577,7 @@ expand_word_internal (word, quoted, isexp, contains_dollar_at, expanded_somethin
|
||||
int had_quoted_null;
|
||||
int has_dollar_at;
|
||||
int tflag;
|
||||
int pflags; /* flags passed to param_expand */
|
||||
|
||||
int assignoff; /* If assignment, offset of `=' */
|
||||
|
||||
@@ -7677,7 +7687,7 @@ add_string:
|
||||
even in POSIX mode. */
|
||||
if (word->flags & (W_ASSIGNRHS|W_NOTILDE))
|
||||
{
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7697,7 +7707,7 @@ add_string:
|
||||
string[sindex+1] == '~')
|
||||
word->flags |= W_ITILDE;
|
||||
#endif
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7705,7 +7715,7 @@ add_string:
|
||||
case ':':
|
||||
if (word->flags & W_NOTILDE)
|
||||
{
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7715,7 +7725,7 @@ add_string:
|
||||
string[sindex+1] == '~')
|
||||
word->flags |= W_ITILDE;
|
||||
|
||||
if (isexp == 0 && isifs (c))
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c))
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7729,7 +7739,7 @@ add_string:
|
||||
(quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)))
|
||||
{
|
||||
word->flags &= ~W_ITILDE;
|
||||
if (isexp == 0 && isifs (c) && (quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)) == 0)
|
||||
if (isexp == 0 && (word->flags & (W_NOSPLIT|W_NOSPLIT2)) == 0 && isifs (c) && (quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT)) == 0)
|
||||
goto add_ifs_character;
|
||||
else
|
||||
goto add_character;
|
||||
@@ -7771,10 +7781,12 @@ add_string:
|
||||
*expanded_something = 1;
|
||||
|
||||
has_dollar_at = 0;
|
||||
pflags = (word->flags & W_NOCOMSUB) ? PF_NOCOMSUB : 0;
|
||||
if (word->flags & W_NOSPLIT2)
|
||||
pflags |= PF_NOSPLIT2;
|
||||
tword = param_expand (string, &sindex, quoted, expanded_something,
|
||||
&has_dollar_at, "ed_dollar_at,
|
||||
&had_quoted_null,
|
||||
(word->flags & W_NOCOMSUB) ? PF_NOCOMSUB : 0);
|
||||
&had_quoted_null, pflags);
|
||||
|
||||
if (tword == &expand_wdesc_error || tword == &expand_wdesc_fatal)
|
||||
{
|
||||
@@ -7969,6 +7981,11 @@ add_twochars:
|
||||
{
|
||||
if (list->next)
|
||||
{
|
||||
#if 1
|
||||
if (quoted_dollar_at && word->flags & W_NOSPLIT2)
|
||||
temp = string_list_internal (quote_list (list), " ");
|
||||
else
|
||||
#endif
|
||||
/* Testing quoted_dollar_at makes sure that "$@" is
|
||||
split correctly when $IFS does not contain a space. */
|
||||
temp = quoted_dollar_at
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user