mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Spelling fixes from Chris Rebert
darcs-hash:20070801173524-ac50b-760d9ddf0e68aa24cd570b542824a7f2b3248ff5.gz
This commit is contained in:
parent
91de143003
commit
df55e89bbb
17 changed files with 41 additions and 41 deletions
|
@ -122,7 +122,7 @@ static void builtin_complete_add( array_list_t *cmd,
|
|||
array_list_t *gnu_opt,
|
||||
array_list_t *old_opt,
|
||||
int result_mode,
|
||||
int authorative,
|
||||
int authoritative,
|
||||
const wchar_t *condition,
|
||||
const wchar_t *comp,
|
||||
const wchar_t *desc,
|
||||
|
@ -143,11 +143,11 @@ static void builtin_complete_add( array_list_t *cmd,
|
|||
desc,
|
||||
flags );
|
||||
|
||||
if( authorative != -1 )
|
||||
if( authoritative != -1 )
|
||||
{
|
||||
complete_set_authorative( al_get( cmd, i ),
|
||||
complete_set_authoritative( al_get( cmd, i ),
|
||||
COMMAND,
|
||||
authorative );
|
||||
authoritative );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -165,11 +165,11 @@ static void builtin_complete_add( array_list_t *cmd,
|
|||
desc,
|
||||
flags );
|
||||
|
||||
if( authorative != -1 )
|
||||
if( authoritative != -1 )
|
||||
{
|
||||
complete_set_authorative( al_get( path, i ),
|
||||
complete_set_authoritative( al_get( path, i ),
|
||||
PATH,
|
||||
authorative );
|
||||
authoritative );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ static int builtin_complete( wchar_t **argv )
|
|||
int argc=0;
|
||||
int result_mode=SHARED;
|
||||
int remove = 0;
|
||||
int authorative = -1;
|
||||
int authoritative = -1;
|
||||
int flags = COMPLETE_AUTO_SPACE;
|
||||
|
||||
string_buffer_t short_opt;
|
||||
|
@ -373,11 +373,11 @@ static int builtin_complete( wchar_t **argv )
|
|||
}
|
||||
,
|
||||
{
|
||||
L"unauthorative", no_argument, 0, 'u'
|
||||
L"unauthoritative", no_argument, 0, 'u'
|
||||
}
|
||||
,
|
||||
{
|
||||
L"authorative", no_argument, 0, 'A'
|
||||
L"authoritative", no_argument, 0, 'A'
|
||||
}
|
||||
,
|
||||
{
|
||||
|
@ -456,11 +456,11 @@ static int builtin_complete( wchar_t **argv )
|
|||
break;
|
||||
|
||||
case 'u':
|
||||
authorative=0;
|
||||
authoritative=0;
|
||||
break;
|
||||
|
||||
case 'A':
|
||||
authorative=1;
|
||||
authoritative=1;
|
||||
break;
|
||||
|
||||
case 's':
|
||||
|
@ -628,7 +628,7 @@ static int builtin_complete( wchar_t **argv )
|
|||
&gnu_opt,
|
||||
&old_opt,
|
||||
result_mode,
|
||||
authorative,
|
||||
authoritative,
|
||||
condition,
|
||||
comp,
|
||||
desc,
|
||||
|
|
20
complete.c
20
complete.c
|
@ -160,7 +160,7 @@ typedef struct complete_entry
|
|||
/** Next command completion in the linked list */
|
||||
struct complete_entry *next;
|
||||
/** True if no other options than the ones supplied are possible */
|
||||
int authorative;
|
||||
int authoritative;
|
||||
}
|
||||
complete_entry_t;
|
||||
|
||||
|
@ -370,22 +370,22 @@ static complete_entry_t *complete_get_exact_entry( const wchar_t *cmd,
|
|||
c->cmd = intern( cmd );
|
||||
c->cmd_type = cmd_type;
|
||||
c->short_opt_str = wcsdup(L"");
|
||||
c->authorative = 1;
|
||||
c->authoritative = 1;
|
||||
}
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
void complete_set_authorative( const wchar_t *cmd,
|
||||
void complete_set_authoritative( const wchar_t *cmd,
|
||||
int cmd_type,
|
||||
int authorative )
|
||||
int authoritative )
|
||||
{
|
||||
complete_entry_t *c;
|
||||
|
||||
CHECK( cmd, );
|
||||
c = complete_get_exact_entry( cmd, cmd_type );
|
||||
c->authorative = authorative;
|
||||
c->authoritative = authoritative;
|
||||
}
|
||||
|
||||
|
||||
|
@ -608,7 +608,7 @@ int complete_is_valid_option( const wchar_t *str,
|
|||
complete_entry_opt_t *o;
|
||||
wchar_t *cmd, *path;
|
||||
int found_match = 0;
|
||||
int authorative = 1;
|
||||
int authoritative = 1;
|
||||
int opt_found=0;
|
||||
hash_table_t gnu_match_hash;
|
||||
int is_gnu_opt=0;
|
||||
|
@ -702,9 +702,9 @@ int complete_is_valid_option( const wchar_t *str,
|
|||
|
||||
found_match = 1;
|
||||
|
||||
if( !i->authorative )
|
||||
if( !i->authoritative )
|
||||
{
|
||||
authorative = 0;
|
||||
authoritative = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -783,7 +783,7 @@ int complete_is_valid_option( const wchar_t *str,
|
|||
}
|
||||
}
|
||||
|
||||
if( authorative )
|
||||
if( authoritative )
|
||||
{
|
||||
|
||||
if( !is_gnu_opt && !is_old_opt )
|
||||
|
@ -838,7 +838,7 @@ int complete_is_valid_option( const wchar_t *str,
|
|||
|
||||
halloc_free( context );
|
||||
|
||||
return (authorative && found_match)?opt_found:1;
|
||||
return (authoritative && found_match)?opt_found:1;
|
||||
}
|
||||
|
||||
int complete_is_valid_argument( const wchar_t *str,
|
||||
|
|
|
@ -180,9 +180,9 @@ void complete_add( const wchar_t *cmd,
|
|||
true, any options not matching one of the provided options will be
|
||||
flagged as an error by syntax highlighting.
|
||||
*/
|
||||
void complete_set_authorative( const wchar_t *cmd,
|
||||
void complete_set_authoritative( const wchar_t *cmd,
|
||||
int cmd_type,
|
||||
int authorative );
|
||||
int authoritative );
|
||||
|
||||
/**
|
||||
Remove a previously defined completion
|
||||
|
|
|
@ -17,7 +17,7 @@ variable.
|
|||
\subsection and-example Example
|
||||
|
||||
The following code runs the \c make command to build a program, if the
|
||||
build succceds, the program is installed. If either step fails,
|
||||
build succceeds, the program is installed. If either step fails,
|
||||
<tt>make clean</tt> is run, which removes the files created by the
|
||||
build process
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The <tt>bind</tt> builtin causes fish to add the readline style bindings specified by BINDINGS to the list of key bindings, as if they appeared in your <tt>~/.fish_inputrc</tt> file.
|
||||
|
||||
For more information on the syntax keyboard bindings, use <tt>man
|
||||
readline</tt> to access the readline documentation. The availiable commands
|
||||
readline</tt> to access the readline documentation. The available commands
|
||||
are listed in the <a href="index.html#editor">Command Line Editor</a> section
|
||||
of the fish manual - but you may also use any fish command! To write such
|
||||
commands, see the <a href="#commandline">commandline</a> builtin. It's good
|
||||
|
|
|
@ -19,7 +19,7 @@ regular wildcard expansion using filenames.
|
|||
|
||||
Note that fish does not fall through on case statements. Though the
|
||||
syntax may look a bit like C switch statements, it behaves more like
|
||||
the case stamantes of traditional shells.
|
||||
the case statementes of traditional shells.
|
||||
|
||||
Also note that command substitutions in a case statement will be
|
||||
evaluated even if it's body is not taken. This may seem
|
||||
|
|
|
@ -21,8 +21,8 @@ the fish manual.
|
|||
- <tt>-o</tt> or <tt>--old-option</tt> implies that the command uses old long style options with only one dash
|
||||
- <tt>-p</tt> or <tt>--path</tt> implies that the string COMMAND is the full path of the command
|
||||
- <tt>-r</tt> or <tt>--require-parameter</tt> specifies that the option specified by this completion always must have an option argument, i.e. may not be followed by another option
|
||||
- <tt>-u</tt> or <tt>--unauthorative</tt> implies that there may be more options than the ones specified, and that fish should not assume that options not listed are spelling errors
|
||||
- <tt>-A</tt> or <tt>--authorative</tt> implies that there may be no more options than the ones specified, and that fish should assume that options not listed are spelling errors
|
||||
- <tt>-u</tt> or <tt>--unauthoritative</tt> implies that there may be more options than the ones specified, and that fish should not assume that options not listed are spelling errors
|
||||
- <tt>-A</tt> or <tt>--authoritative</tt> implies that there may be no more options than the ones specified, and that fish should assume that options not listed are spelling errors
|
||||
- <tt>-x</tt> or <tt>--exclusive</tt> implies both <tt>-r</tt> and <tt>-f</tt>
|
||||
|
||||
Command specific tab-completions in \c fish are based on the notion
|
||||
|
|
|
@ -10,9 +10,9 @@ exit status is 0, the commands COMMANDS_TRUE will execute. If the
|
|||
exit status is not 0 and <tt>else</tt> is given, COMMANDS_FALSE will
|
||||
be executed.
|
||||
|
||||
In order to use the exit status of mutiple commands as the condition
|
||||
In order to use the exit status of multiple commands as the condition
|
||||
of an if block, use <a href="#begin"><tt>begin; ...; end</tt></a> and
|
||||
the short circut commands <a href="commands.html#and">and</a> and <a
|
||||
the short circuit commands <a href="commands.html#and">and</a> and <a
|
||||
href="commands.html#or">or</a>.
|
||||
|
||||
The exit status of the last foreground command to exit can always be
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
\subsection math-description Description
|
||||
|
||||
math is used to perform mathematical calcualtions. It is only a very
|
||||
math is used to perform mathematical calculations. It is only a very
|
||||
thin wrapper for the bc program, that makes it possible to specify an
|
||||
expression from the command line without using non-standard extensions
|
||||
or a pipeline. Simply use a command like <code>math 1+1</code>.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
The mimedb command is used to query the mimetype database and the
|
||||
.desktop files installed on the system in order to find information on
|
||||
a file. The information that mimedb can retrive includes the mimetype
|
||||
a file. The information that mimedb can retrieve includes the mimetype
|
||||
for a file, a description of the type and what its default action
|
||||
is. mimedb can also be used to launch the default action for this
|
||||
file.
|
||||
|
|
|
@ -17,7 +17,7 @@ variable.
|
|||
\subsection or-example Example
|
||||
|
||||
The following code runs the \c make command to build a program, if the
|
||||
build succceds, the program is installed. If either step fails,
|
||||
build succceeds, the program is installed. If either step fails,
|
||||
<tt>make clean</tt> is run, which removes the files created by the
|
||||
build process
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
\section prevd prevd - move backward through direcotry history
|
||||
\section prevd prevd - move backward through directory history
|
||||
|
||||
\subsection prevd-synopsis Synopsis
|
||||
<tt>prevd [-l | --list] [pos]</tt>
|
||||
|
|
|
@ -11,7 +11,7 @@ input and store the result in one or more environment variables.
|
|||
- <tt>-c CMD</tt> or <tt>--command=CMD</tt> specifies that the initial string in the interactive mode command buffer should be CMD.
|
||||
- <tt>-e</tt> or <tt>--export</tt> specifies that the variables will be exported to subshells.
|
||||
- <tt>-g</tt> or <tt>--global</tt> specifies that the variables will be made global.
|
||||
- <tt>-m NAME</tt> or <tt>--mode-name=NAME</tt> specifies that the name NAME should be used to save/load the hiustory file. If NAME is fish, the regular fish history will be available.
|
||||
- <tt>-m NAME</tt> or <tt>--mode-name=NAME</tt> specifies that the name NAME should be used to save/load the history file. If NAME is fish, the regular fish history will be available.
|
||||
- <tt>-p PROMPT_CMD</tt> or <tt>--prompt=PROMPT_CMD</tt> specifies that the output of the shell command PROMPT_CMD should be used as the prompt for the interactive mode prompt. The default prompt command is <tt>set_color green; echo read; set_color normal; echo "> "</tt>.
|
||||
- <code>-s</code> or <code>--shell</code> Use syntax highlighting, tab completions and command termination suitable for entering shellscript code
|
||||
- <code>-u</code> or <code>--unexport</code> causes the specified environment not to be exported to child processes
|
||||
|
|
|
@ -43,7 +43,7 @@ the last index of an array.
|
|||
The scoping rules when creating or updating a variable are:
|
||||
|
||||
-# If a variable is explicitly set to either universal, global or local, that setting will be honored. If a variable of the same name exists in a different scope, that variable will not be changed.
|
||||
-# If a variable is not explicitly set to be either universal, global or local, but has been previously defined, the previos variable scope is used.
|
||||
-# If a variable is not explicitly set to be either universal, global or local, but has been previously defined, the previous variable scope is used.
|
||||
-# If a variable is not explicitly set to be either universal, global or local and has never before been defined, the variable will be local to the currently executing functions. If no function is executing, the variable will be global.
|
||||
|
||||
The exporting rules when creating or updating a variable are identical
|
||||
|
|
|
@ -19,7 +19,7 @@ regular wildcard expansion using filenames.
|
|||
|
||||
Note that fish does not fall through on case statements. Though the
|
||||
syntax may look a bit like C switch statements, it behaves more like
|
||||
the case stamantes of traditional shells.
|
||||
the case statements of traditional shells.
|
||||
|
||||
Also note that command substitutions in a case statement will be
|
||||
evaluated even if it's body is not taken. This may seem
|
||||
|
|
|
@ -35,7 +35,8 @@ except for -t, which is in seconds and -n and -u, 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.
|
||||
|
||||
ulimit also accepts the following switches that determine what type of limit to set:
|
||||
ulimit also accepts the following switches that determine what type of
|
||||
limit to set:
|
||||
|
||||
- <code>-H</code> or <code>--hard</code> Set hard resource limit
|
||||
- <code>-S</code> or <code>--soft</code> Set soft resource limit
|
||||
|
|
|
@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <wchar.h>
|
||||
|
|
Loading…
Reference in a new issue