Translations by Andrej Znidarsic
Andrej Znidarsic has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.
404. |
false
|
|
2012-05-10 |
napak
|
|
473. |
Set Readline key bindings and variables.
Bind a key sequence to a Readline function or a macro, or set a
Readline variable. The non-option argument syntax is equivalent to
that found in ~/.inputrc, but must be passed as a single argument:
e.g., bind '"\C-x\C-r": re-read-init-file'.
Options:
-m keymap Use KEYMAP as the keymap for the duration of this
command. Acceptable keymap names are emacs,
emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move,
vi-command, and vi-insert.
-l List names of functions.
-P List function names and bindings.
-p List functions and bindings in a form that can be
reused as input.
-S List key sequences that invoke macros and their values
-s List key sequences that invoke macros and their values
in a form that can be reused as input.
-V List variable names and values
-v List variable names and values in a form that can
be reused as input.
-q function-name Query about which keys invoke the named function.
-u function-name Unbind all keys which are bound to the named function.
-r keyseq Remove the binding for KEYSEQ.
-f filename Read key bindings from FILENAME.
-x keyseq:shell-command Cause SHELL-COMMAND to be executed when
KEYSEQ is entered.
Exit Status:
bind returns 0 unless an unrecognized option is given or an error occurs.
|
|
2012-05-11 |
Nastavi tipkovne bližnjice in spremenljivke brane vrstice.
Veže zaporedje tipk na funkcijo ali makro brane vrstice ali nastavi
spremenljivko brane vrstice. Skladnja argumenta brez možnosti
je enakovredna najdbi v ~/.inputrc, vendar mora biti podana
kot en argument:
na primer, bind '"\C-x\C-r": re-read-init-file'.
Možnosti:
-m tipk_razvr Uporabi TIPK_RAZVR kot tipkovno razvrstitev za čas trajanja
tega ukaza. Sprejemljiva imena tipkovnih razvrstitev so emacs,
emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move,
vi-command in vi-insert.
-l Prikaži imena funkcij.
-P Prikaži imena funkcij in tipkovne bližnjice.
-p Prikaži imena funkcij in tipkovne bližnjice v obliki, ki se lahko
ponovno uporabi kot vnos.
-S Prikaži tipkovna zaporedja, ki se sklicujejo na makre in njihove vrednosti.
-s Prikaži tipkovna zaporedja, ki se sklicujejo na makre in njihove vrednosti
v obliki, ki se lahko ponovno uporabi kot vnos.
-V Prikaži imena spremenljivk in vrednosti
-v Prikaži imena spremenljivk in vrednosti v obliki, ki se lahko
ponovno uporabi kot vnos.
-q ime_funkcije Poizvedi, katere tipke se sklicujejo na imenovano funkcijo.
-u ime_funkcije Odveži vse tipke, ki se vežejo na imenovano funkcijo.
-r zaporedje_tipk Odstrani vez za ZAPOREDJE_TIPK.
-f ime_datoteke Beri tipkovne bližnjice iz IME_DATOTEKE.
-x zaporedje_tipk:ukaz_lupine Povzroči, da se UKAZ_LUPINE izvrši,
ko je vnešeno ZAPOREDJE_TIPK.
Status končanja:
bind vrne 0, razen, če je dana neprepoznana možnost ali se pojavi napaka.
|
|
474. |
Exit for, while, or until loops.
Exit a FOR, WHILE or UNTIL loop. If N is specified, break N enclosing
loops.
Exit Status:
The exit status is 0 unless N is not greater than or equal to 1.
|
|
2012-05-11 |
Konča zanko for, while ali until.
Končaj zanko FOR, WHILE ali UNTIL. Če N ni podan, prekini N obdanih
zank.
Stanje končanja:
Stanje končanja je 0, razen če N ni večji kot ali enak 1.
|
|
475. |
Resume for, while, or until loops.
Resumes the next iteration of the enclosing FOR, WHILE or UNTIL loop.
If N is specified, resumes the Nth enclosing loop.
Exit Status:
The exit status is 0 unless N is not greater than or equal to 1.
|
|
2012-05-13 |
Nadaljuje zanko for, while ali until.
Nadaljuje naslednjo ponovitev obdane zanke FOR, WHILE ali UNTIL.
Če je N podan, nadaljuje N-to obdano zanko.
Stanje končanja:
Stanje končanja je 0, razen če N ni večji kot ali enak 1.
|
|
478. |
Change the shell working directory.
Change the current directory to DIR. The default DIR is the value of the
HOME shell variable.
The variable CDPATH defines the search path for the directory containing
DIR. Alternative directory names in CDPATH are separated by a colon (:).
A null directory name is the same as the current directory. If DIR begins
with a slash (/), then CDPATH is not used.
If the directory is not found, and the shell option `cdable_vars' is set,
the word is assumed to be a variable name. If that variable has a value,
its value is used for DIR.
Options:
-L force symbolic links to be followed
-P use the physical directory structure without following symbolic
links
-e if the -P option is supplied, and the current working directory
cannot be determined successfully, exit with a non-zero status
The default is to follow symbolic links, as if `-L' were specified.
Exit Status:
Returns 0 if the directory is changed, and if $PWD is set successfully when
-P is used; non-zero otherwise.
|
|
2012-05-14 |
Spremeni delovno mapo lupine.
Spremeni trenutno mapo v DIR. Privzet DIR je vrednost spremenljivke
lupine HOME.
Spremenljivka CDPATH določa iskalno pot za mapo, ki vsebuje DIR.
Nadomestna imena map v CDPATH so ločena z dvopičjem (:).
Prazno ime mape se enači s trenutno mapo. Če se DIR začne
s poševnico (/), potem se CDPATH ne uporabi.
Če mapa ni najdena in je možnost lupine `cdable_vars' določena,
se predvideva, da je beseda ime spremenljivke. Če spremenljivka
ima vrednost, se le-ta uporabi za DIR.
Možnosti:
-L prisili sledenje simbolnim povezavam
-P uporabi fizično strukturo map brez sledenja simbolnim
povezavam
-e če je možnost -P predložena in trenutne delovne mape
ni mogoče uspešno določiti, končaj z ne-ničelnim stanjem
Sledenje simbolnim povezavam je privzeto, kot če bi možnost `-L'
bila predložena
Stanje končanja:
Vrne 0, če je mapa spremenjena in če je $PWD uspešno nastavljen, kadar
je uporabljena možnost -P; drugače je ne-ničelna vrednost
|
|
479. |
Print the name of the current working directory.
Options:
-L print the value of $PWD if it names the current working
directory
-P print the physical directory, without any symbolic links
By default, `pwd' behaves as if `-L' were specified.
Exit Status:
Returns 0 unless an invalid option is given or the current directory
cannot be read.
|
|
2012-05-14 |
Izpiše ime trenutne delovne mape.
Možnosti:
-L prikaže vrednost $PWD, če imenuje trenutno delovno
mapo
-P prikaže fizično mapo brez vsakršnih simbolnih povezav
Privzeto se `pwd" obnaša, kot če bi možnost `-L ' bila določena.
Stanje končanja:
Vrne 0, razen če je dana neveljavna možnost ali pa trenutne mape
ni mogoče prebrati.
|
|
481. |
Return a successful result.
Exit Status:
Always succeeds.
|
|
2012-05-11 |
Vrne uspešen rezultat.
Stanje končanja:
Vedno uspešno.
|
|
482. |
Return an unsuccessful result.
Exit Status:
Always fails.
|
|
2012-05-11 |
Vrne neuspešen rezultat.
Stanje končanja:
Vedno neuspešno.
|
|
484. |
Set variable values and attributes.
Declare variables and give them attributes. If no NAMEs are given,
display the attributes and values of all variables.
Options:
-f restrict action or display to function names and definitions
-F restrict display to function names only (plus line number and
source file when debugging)
-g create global variables when used in a shell function; otherwise
ignored
-p display the attributes and value of each NAME
Options which set attributes:
-a to make NAMEs indexed arrays (if supported)
-A to make NAMEs associative arrays (if supported)
-i to make NAMEs have the `integer' attribute
-l to convert NAMEs to lower case on assignment
-r to make NAMEs readonly
-t to make NAMEs have the `trace' attribute
-u to convert NAMEs to upper case on assignment
-x to make NAMEs export
Using `+' instead of `-' turns off the given attribute.
Variables with the integer attribute have arithmetic evaluation (see
the `let' command) performed when the variable is assigned a value.
When used in a function, `declare' makes NAMEs local, as with the `local'
command. The `-g' option suppresses this behavior.
Exit Status:
Returns success unless an invalid option is supplied or an error occurs.
|
|
2012-05-14 |
Nastavi vrednosti spremenljivk in atributov.
Deklarira spremenljivke in jim da atribute. Če ni podanih IMEN,
prikaže atribute in vrednosti vseh spremenljivk.
Možnosti:
-f omeji ukrep ali prikaži imena funkcij in določilom
-F omeji prikaz samo imen funkcij (ter število vrstice in
izvorno datoteko, kadar je dejavno razhroščevanje)
-g ustvari splošne spremenljivke, kadar so uporabljene v funkciji
lupine; v nasprotnem primeru je prezrto
-p prikaži atribute in vrednost vsakega IMENA
Možnosti, ki določajo atribute
-a da so IMENA zabeležena polja (če je podprto)
-A da so IMENA povezana polja (če je podprto)
-i da imajo IMENA atribute celih števil `integer'
-l da se IMENA pretvorijo v male črke pri dodelitvi
-r da so IMENA samo za branje
-t da imajo IMENA atribut sledenja `trace'
-u da se IMENA pretvorijo v velike črke pri dodelitvi
-x da se IMENA izvozijo
Uporaba `+' namesto `-' izklopi dan atribut.
Spremenljivkam z atributom celega števila se izvede aritmetično
vrednotenje (poglejte ukaz `let'), kadar je spremenljivki
dodeljena vrednost.
Ko se uporabi v funkciji, `declare' naredi IMENA krajevna kot
pri ukazu `local'. Možnost `-g' zavira to obnašanje.
Stanje končanja:
Vrne uspešno, razen če je predložena neveljavna možnost ali pride
do napake.
|
|
485. |
Set variable values and attributes.
Obsolete. See `help declare'.
|
|
2012-05-11 |
Nastavi vrednosti spremenljivk in atributov.
Zastarelo. Oglejte si `help declare'.
|
|
486. |
Define local variables.
Create a local variable called NAME, and give it VALUE. OPTION can
be any option accepted by `declare'.
Local variables can only be used within a function; they are visible
only to the function where they are defined and its children.
Exit Status:
Returns success unless an invalid option is supplied, an error occurs,
or the shell is not executing a function.
|
|
2012-05-14 |
Določi krajevne spremenljivke.
Ustvari krajevno spremenljivko z imenom IME in ji dodeli VREDNOST.
MOŽNOST je lahko katera koli, sprejeta z `declare'.
Krajevne spremenljivke se lahko uporabijo samo znotraj funkcije;
vidne so samo funkciji, kjer so določene in njenim podprogramom.
Stanje končanja:
Vrne uspešno, razen če je predložena neveljavna možnost, pride
do napake ali pa lupina ne izvaja funkcije.
|
|
487. |
Write arguments to the standard output.
Display the ARGs on the standard output followed by a newline.
Options:
-n do not append a newline
-e enable interpretation of the following backslash escapes
-E explicitly suppress interpretation of backslash escapes
`echo' interprets the following backslash-escaped characters:
\a alert (bell)
\b backspace
\c suppress further output
\e escape character
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\0nnn the character whose ASCII code is NNN (octal). NNN can be
0 to 3 octal digits
\xHH the eight-bit character whose value is HH (hexadecimal). HH
can be one or two hex digits
Exit Status:
Returns success unless a write error occurs.
|
|
2012-05-15 |
Piše argumente na standardni izhod.
Prikaže ARGUMENTE na standardnem izhodu, ki mu sledi nova vrstica.
Možnosti:
-n ne pripni nove vrstice
-e omogoči tolmačenje naslednjih ubežnih levih poševnic
-E izrecno zatri tolmačenje ubežnih levih poševnic
`echo' tolmači naslednje znake ubežnih levih poševnic:
\a alarm (zvonec)
\b vračalka
\c zatre nadaljni izpis
\e ubežni znak
\f nova stran
\n nova vrstica
\r pomik na začetek vrstice
\t vodoravni tabulator
\v navpični tabulator
\[tab]leva poševnica
\0nnn znak, katerega vrednost ASCII je NNN (osmiška). NNN je lahko
od 0 do 3 osmiška števila
\xHH 8-bitni znak, katerega vrednost je HH (šestnajstiška). HH
je lahko ena ali dve šestnajstiški števili
Stanje končanja:
Vrne uspešno, razen če pride do napake pri pisanju.
|
|
489. |
Enable and disable shell builtins.
Enables and disables builtin shell commands. Disabling allows you to
execute a disk command which has the same name as a shell builtin
without using a full pathname.
Options:
-a print a list of builtins showing whether or not each is enabled
-n disable each NAME or display a list of disabled builtins
-p print the list of builtins in a reusable format
-s print only the names of Posix `special' builtins
Options controlling dynamic loading:
-f Load builtin NAME from shared object FILENAME
-d Remove a builtin loaded with -f
Without options, each NAME is enabled.
To use the `test' found in $PATH instead of the shell builtin
version, type `enable -n test'.
Exit Status:
Returns success unless NAME is not a shell builtin or an error occurs.
|
|
2012-05-16 |
Omogoči in onemogoči vgrajene lupine.
Omogoči in onemogoči ukaze vgrajene lupine. Onemogočenje dovoli
izvedbo ukaza diska, ki ima enako ime kot vgrajena lupina, brez
uporabe polnega imena poti.
Možnosti:
-a prikaži seznam vgrajenih lupin, ki kaže, katera je omogočena
-n onemogoči vsako IME ali pa prikaži seznam onemogočenih
vgrajenih lupin
-p prikaži seznam vgrajenih lupin v obliki za večkratno uporabo
-s prikaži samo imena posebnih vgrajenih lupin `special'
po POSIX standardu
Možnosti, ki nadzorujejo dinamično nalaganje:
-f naloži IME iz predmeta IME_DATOTEKE v souporabi
-d odstrani vgrajeno lupino, naloženo z -f
Brez podanih možnosti je vsako IME omogočeno.
Za uporabo preizkusa 'test', najdenega v $PATH, in ne različice
vgrajene lupine, vpišite `enable -n test'.
Stanje končanja:
Vrne uspešno, razen če IME ni vgrajena lupina ali če pride do napake.
|
|
491. |
Parse option arguments.
Getopts is used by shell procedures to parse positional parameters
as options.
OPTSTRING contains the option letters to be recognized; if a letter
is followed by a colon, the option is expected to have an argument,
which should be separated from it by white space.
Each time it is invoked, getopts will place the next option in the
shell variable $name, initializing name if it does not exist, and
the index of the next argument to be processed into the shell
variable OPTIND. OPTIND is initialized to 1 each time the shell or
a shell script is invoked. When an option requires an argument,
getopts places that argument into the shell variable OPTARG.
getopts reports errors in one of two ways. If the first character
of OPTSTRING is a colon, getopts uses silent error reporting. In
this mode, no error messages are printed. If an invalid option is
seen, getopts places the option character found into OPTARG. If a
required argument is not found, getopts places a ':' into NAME and
sets OPTARG to the option character found. If getopts is not in
silent mode, and an invalid option is seen, getopts places '?' into
NAME and unsets OPTARG. If a required argument is not found, a '?'
is placed in NAME, OPTARG is unset, and a diagnostic message is
printed.
If the shell variable OPTERR has the value 0, getopts disables the
printing of error messages, even if the first character of
OPTSTRING is not a colon. OPTERR has the value 1 by default.
Getopts normally parses the positional parameters ($0 - $9), but if
more arguments are given, they are parsed instead.
Exit Status:
Returns success if an option is found; fails if the end of options is
encountered or an error occurs.
|
|
2012-05-16 |
Razčleni argumente možnosti.
Getopts je uporabljen s strani postopkov lupine za razčlenitev
položajnih parametrov kot možnosti.
NIZ_MOŽNOSTI vsebuje črke možnosti za prepoznavo; če dvopičju
sledi črka, se za možnost pričakuje dodeljen argument, ki mora
biti ločen s preslednim znakom.
Vsakič, ko je klican, bo getopts postavil naslednjo možnost v
spremenljivko lupine $name, nastavil ime, če še ne obstaja, in
kazalo naslednjega argumenta bo obdelano v spremenljivko
lupine OPTIND. OPTIND je nastavljen na 1 vsakič, ko je lupina ali
skripta lupine poklicana. Ko možnost zahteva argument, ga
getopts premakne v spremenljivko lupine OPTARG.
getopts poroča napake na eden izmed dveh načinov. Če je prvi
znak OPTSTRING dvopičje, getopts uporabi tiho poročanje napak.
V tem načinu ni izpisanih sporočil o napakah. Če je videna neveljavna
možnost, getopts postavi najden znak možnosti v OPTARG. Če
zahtevan argument ni najden, getopts postavi ':' v IME in dodeli
OPTARG nadenemu znaku možnosti. Če getopts ni v tihem načinu
in je videnaneveljavna možnost, getopts postavi '?' v IME in
ponastavi OPTARG. Če zahtevan argument ni najden, je '?'
postavljen v IME, OPTARG je ponastavljen in prikazano je
diagnostično sporočilo.
Če ima spremenljivka lupine OPTERR vrednost 0, getopts
onemogoči prikaz sporočil o napakah, tudi če prvi znak OPTSTRING
ni dvopičje. OPTERR ima privzeto vrednost 1.
Getopts običajno razčleni položajne parametre ($0 - $9), toda če je
danih več argumentov, se jih razčleni.
Stanje končanja:
Vrne uspešno, če je možnost najdena; neuspešno, če pride
do konca možnosti ali do napake.
|
|
495. |
Display or execute commands from the history list.
fc is used to list or edit and re-execute commands from the history list.
FIRST and LAST can be numbers specifying the range, or FIRST can be a
string, which means the most recent command beginning with that
string.
Options:
-e ENAME select which editor to use. Default is FCEDIT, then EDITOR,
then vi
-l list lines instead of editing
-n omit line numbers when listing
-r reverse the order of the lines (newest listed first)
With the `fc -s [pat=rep ...] [command]' format, COMMAND is
re-executed after the substitution OLD=NEW is performed.
A useful alias to use with this is r='fc -s', so that typing `r cc'
runs the last command beginning with `cc' and typing `r' re-executes
the last command.
Exit Status:
Returns success or status of executed command; non-zero if an error occurs.
|
|
2012-05-16 |
Prikaže ali izvede ukaze s seznama zgodovine.
fc se uporablja za seznam ali urejanje in ponovno izvajanje ukazov
s seznama zgodovine. PRVI in ZADNJI sta lahko števili, ki določata obseg
oz. PRVI je lahko niz, kar pomeni, da se nedavni ukaz začne s tem nizom.
Možnosti:
-e IME_UREJEVALNIKA izbere urejevalnik za uporabo. Privzet je
FCEDIT, nato EDITOR, nato vi
-l prikaže vrstice namesto urejanja
-n zanemari številke vrstic med navedbo
-r obrni vrstni red vrstic (najnovejše so navedene prve)
Z obliko `fc -s [vzorec=zamenjava] [ukaz]' se UKAZ ponovno izvede
po tem, ko se opravi nadomeščanje OLD=NEW.
Lahko se uporabi uporaben vzdevek r='fc -s' tako, da se z vnosom
`r cc' zažene zadnji ukaz, ki se začne z `cc' in vnosom `r' se ponovno
izvede zadnji ukaz.
Stanje končanja:
Vrne uspešno ali stanje izvedenega ukaza; ne-ničelno, če pride do napake.
|
|
496. |
Move job to the foreground.
Place the job identified by JOB_SPEC in the foreground, making it the
current job. If JOB_SPEC is not present, the shell's notion of the
current job is used.
Exit Status:
Status of command placed in foreground, or failure if an error occurs.
|
|
2012-05-16 |
Premakne posel v ospredje.
Premakne posel, določen s strani JOB_SPEC, v ospredje, kar ga
spremeni v trenutni posel. Če JOB_SPEC ni prisoten, se uporabi
označba lupine trenutnega posla.
Stanje končanja:
Stanje ukaza, postavljenega v ospredje, ali neuspešno, če se
pojavi napaka.
|
|
497. |
Move jobs to the background.
Place the jobs identified by each JOB_SPEC in the background, as if they
had been started with `&'. If JOB_SPEC is not present, the shell's notion
of the current job is used.
Exit Status:
Returns success unless job control is not enabled or an error occurs.
|
|
2012-05-16 |
Premakne posle v ozadje.
Postavi posle, določene s strani JOB_SPEC, v ozadje, kot če bi se
začeli z `&'. Če JOB_SPEC ni prisoten, se uporabi označba lupine
trenutnega posla.
Stanje končanja:
Vrne uspešno, razen če nadzor posla ni omogočen ali če pride
do napake.
|
|
499. |
Display information about builtin commands.
Displays brief summaries of builtin commands. If PATTERN is
specified, gives detailed help on all commands matching PATTERN,
otherwise the list of help topics is printed.
Options:
-d output short description for each topic
-m display usage in pseudo-manpage format
-s output only a short usage synopsis for each topic matching
PATTERN
Arguments:
PATTERN Pattern specifiying a help topic
Exit Status:
Returns success unless PATTERN is not found or an invalid option is given.
|
|
2012-05-15 |
Prikaže podrobnosti o ukazih vgrajene lupine.
Prikaže kratke povzetke ukazov vgrajene lupine. Če je VZOREC
določen, da podrobno pomoč za vse ukaze, ki se ujemajo z VZORCEM,
v nasprotnem primeru prikaže seznam tem pomoči.
Možnosti:
-d izpiši kratek opis za vsako temo
-m prikaži uporabo v obliki psevdo-priročniške strani
-s prikaži samo kratek povzetek uporabe za vsako temo, ki se
ujema z VZORCEM
ArgumentI:
VZOREC Vzorec, ki navaja temo pomoči
Stanje končanja:
Vrne uspešno, razen če VZOREC ni najden ali pa je dana neveljavna
možnost.
|
|
500. |
Display or manipulate the history list.
Display the history list with line numbers, prefixing each modified
entry with a `*'. An argument of N lists only the last N entries.
Options:
-c clear the history list by deleting all of the entries
-d offset delete the history entry at offset OFFSET.
-a append history lines from this session to the history file
-n read all history lines not already read from the history file
-r read the history file and append the contents to the history
list
-w write the current history to the history file
and append them to the history list
-p perform history expansion on each ARG and display the result
without storing it in the history list
-s append the ARGs to the history list as a single entry
If FILENAME is given, it is used as the history file. Otherwise,
if $HISTFILE has a value, that is used, else ~/.bash_history.
If the $HISTTIMEFORMAT variable is set and not null, its value is used
as a format string for strftime(3) to print the time stamp associated
with each displayed history entry. No time stamps are printed otherwise.
Exit Status:
Returns success unless an invalid option is given or an error occurs.
|
|
2012-05-16 |
Prikaže ali obdela seznam zgodovine.
Prikaže seznam zgodovine s številkami vrstic, vsak spremenjen vnos
označi s predpono `*'. Argument N navede samo N zadnjih vnosov.
Možnosti:
-c pobriši seznam zgodovine z brisanjem vseh vnosov
-d odmik pobriši vnos zgodovine pri odmiku ODMIK.
-a pripni vrstice zgodovine iz te seje v datoteko zgodovine
-n preberi vse vrstice zgodovine, ki še niso prebrane iz datoteke
zgodovine
-r preberi datoteko zgodovine in pripni vsebino seznama
zgodovine
-w piši trenutno zgodovino v datoteko zgodovine
in jo pripni na seznam zgodovine
-p opravi razširitev zgodovine na vsak ARG in prikaži rezultat
brez shranitve na seznam zgodovine
-s pripni ARGUMENTE na seznam zgodovine kot edini vnos
Če je IME_DATOTEKE podan, se uporabi kot datoteka zgodovine.
V nasprotnem primeru, če $HISTFILE ima vrednost, ki se uporabi,
pa ~/.bash_history.
Če je spremenljivka $HISTTIMEFORMAT določena in ni prazna, se
njena vrednost uporabi kot niz oblike za strftime(3) za prikaz časovnih
žigov, ki so povezani z vsakim vnosom prikazane zgodovine.
V nasprotnem primeru časovni žigi niso prikazani.
Stanje končanja:
Vrne uspešno, razen če je podana neveljavna možnost ali če pride
do napake.
|
|
504. |
Evaluate arithmetic expressions.
Evaluate each ARG as an arithmetic expression. Evaluation is done in
fixed-width integers with no check for overflow, though division by 0
is trapped and flagged as an error. The following list of operators is
grouped into levels of equal-precedence operators. The levels are listed
in order of decreasing precedence.
id++, id-- variable post-increment, post-decrement
++id, --id variable pre-increment, pre-decrement
-, + unary minus, plus
!, ~ logical and bitwise negation
** exponentiation
*, /, % multiplication, division, remainder
+, - addition, subtraction
<<, >> left and right bitwise shifts
<=, >=, <, > comparison
==, != equality, inequality
& bitwise AND
^ bitwise XOR
| bitwise OR
&& logical AND
|| logical OR
expr ? expr : expr
conditional operator
=, *=, /=, %=,
+=, -=, <<=, >>=,
&=, ^=, |= assignment
Shell variables are allowed as operands. The name of the variable
is replaced by its value (coerced to a fixed-width integer) within
an expression. The variable need not have its integer attribute
turned on to be used in an expression.
Operators are evaluated in order of precedence. Sub-expressions in
parentheses are evaluated first and may override the precedence
rules above.
Exit Status:
If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.
|
|
2012-05-16 |
Ovrednoti aritmetične izraze.
Ovrednoti vsak ARG kot aritmetični izraz. Vrednotenje se opravi
v celih številih z nespremenjeno širino brez preverjanja za prekoračitev,
čeprav je deljenje z 0 ujeto in označeno kot napaka. Seznam operatorjev,
ki sledi, je združen v stopnje operatorjev enakih prednosti. Stopnje so
razvrščene po padajoči prednosti.
id++, id-- naknadno večanje spremenlivke, naknadno manjšanje
++id, --id predhodno večanje spremenljivke, predhodno manjšanje
-, + enosloven minus, plus
!, ~ logična in bitna negacija
** potenciranje
*, /, % množenje, deljenje, ostanek
+, - seštevanje, odštevanje
<<, >> levi in desni bitni premiki
<=, >=, <, > primerjava
==, != enakost, neenakost
& bitni AND
^ bitni XOR
| bitni OR
&& logični AND
|| logični OR
izraz ? izraz : izraz
pogojni operator
=, *=, /=, %=,
+=, -=, <<=, >>=,
&=, ^=, |= dodeljevanje
Spremenljivke lupine so dovoljene kot operandi. Ime spremenljivke
se zamenja z njeno vrednostjo (prisiljena na celo število z
nespremenljivo širino) znotraj izraza. Za uporabo spremenljivke v ni
treba vklopliti atributa celega števila.
Operatorji so ovrednoteni v prednostnem vrstnem redu. Podizrazi
v oklepajih so ovrednoteni prvi in lahko prepišejo prednostna
pravila, omenjena zgoraj.
Stanje končanja
Če zadnji ARG ovrednoti na 0, let vrne 1; sicer let vrne 0.
|
|
505. |
Read a line from the standard input and split it into fields.
Reads a single line from the standard input, or from file descriptor FD
if the -u option is supplied. The line is split into fields as with word
splitting, and the first word is assigned to the first NAME, the second
word to the second NAME, and so on, with any leftover words assigned to
the last NAME. Only the characters found in $IFS are recognized as word
delimiters.
If no NAMEs are supplied, the line read is stored in the REPLY variable.
Options:
-a array assign the words read to sequential indices of the array
variable ARRAY, starting at zero
-d delim continue until the first character of DELIM is read, rather
than newline
-e use Readline to obtain the line in an interactive shell
-i text Use TEXT as the initial text for Readline
-n nchars return after reading NCHARS characters rather than waiting
for a newline, but honor a delimiter if fewer than NCHARS
characters are read before the delimiter
-N nchars return only after reading exactly NCHARS characters, unless
EOF is encountered or read times out, ignoring any delimiter
-p prompt output the string PROMPT without a trailing newline before
attempting to read
-r do not allow backslashes to escape any characters
-s do not echo input coming from a terminal
-t timeout time out and return failure if a complete line of input is
not read withint TIMEOUT seconds. The value of the TMOUT
variable is the default timeout. TIMEOUT may be a
fractional number. If TIMEOUT is 0, read returns success only
if input is available on the specified file descriptor. The
exit status is greater than 128 if the timeout is exceeded
-u fd read from file descriptor FD instead of the standard input
Exit Status:
The return code is zero, unless end-of-file is encountered, read times out,
or an invalid file descriptor is supplied as the argument to -u.
|
|
2012-05-16 |
Prebere vrstico iz standardnega vhoda in jo razdeli v polja.
Prebere eno vrstico iz standardnega vhoda ali iz opisnika FD, če je
navedena možnost -u. Vrstica je razdeljena na polja, kot je delitev
besed in prva beseda je dodeljena prvemu IMENU, druga beseda drugemu
IMENU itd., ostanek zadnje besede pa se dodeli zadnjemu IMENU.
Samo znaki, najdeni v $IFS, so prepoznani kot razmejilniki besed.
Če ni navedenih IMEN, se prebrana vrstica shrani v spremenljivko REPLY.
Možnosti:
-a polje dodeli prebrane besede zaporednim kazalom spremenljivke
polja POLJE, začenši z 0
-d razmejilnik nadaljuj, dokler ni prvi znak RAZMEJILNIKA prebran,
namesto v novo vrstico
-e uporabi Readline za pridobitev vrstice v vzajemni lupini
-i besedilo uporabi BESEDILO kot prvotno besedilo za Readline
-n n-znakov vrni po branju znakov N-ZNAKOV, namesto čakanja na
novo vrstico, toda spoštuj razmejilnik, če je prebranih znakov
manj kot N-ZNAKOV pred razmejilnikom
-N n-znakov vrni samo po branju N-ZNAKOV znakov, razen če naleti
na konec datoteke ali če branju poteče časovna omejitev, brez
upoštevanja katerega koli razmejilnika
-p poziv izpiši niz POZIV brez vmesne nove vrstice, preden se
poskuša prebrati
-r ne dovoli levih poševnic za izognitev vsem znakom
-s ne izpiši vnosa, ki prihaja s terminala
-t časovna_omejitev preseži časovno omejitev in vrni neuspešno, če
znotraj ČASOVNE_OMEJITVE sekund ni prebrana celotna vrstica
vnosa. Vrednost spremenljivke TMOUT je privzeta časovna
omejitev. ČASOVNA_OMEJITEV je lahko decimalno število.
Če je ČASOVNA_OMEJITEV 0, branje vrne uspešno samo, če je na
določenem opisniku datoteke na voljo vnos. Stanje končanja je
večje kot 128, če je časovna omejitev prekoračena
-u fd beri iz opisnika datotek FD, namesto standardnega vhoda
Stanje končanja
Koda vrnitve je nič, razen če pride do konca datoteke, če je časovna
omejitev prekoračena ali če je dan neveljaven opisnik datotek kot
argument v -u.
|
|
506. |
Return from a shell function.
Causes a function or sourced script to exit with the return value
specified by N. If N is omitted, the return status is that of the
last command executed within the function or script.
Exit Status:
Returns N, or failure if the shell is not executing a function or script.
|
|
2012-05-16 |
Vrne iz funkcije lupine.
Povzroči, da funkcija ali skripta izvorne kode konča z vrednostjo
vrnitve, določene z N. Če je N izpuščen, se uporabi stanje vrnitve
zadnjega izvršenega ukaza znotraj funkcije ali skripta.
Stanje končanja
Vrne N ali neuspešno, če lupina ne izvede funkcije ali skripta.
|
|
507. |
Set or unset values of shell options and positional parameters.
Change the value of shell attributes and positional parameters, or
display the names and values of shell variables.
Options:
-a Mark variables which are modified or created for export.
-b Notify of job termination immediately.
-e Exit immediately if a command exits with a non-zero status.
-f Disable file name generation (globbing).
-h Remember the location of commands as they are looked up.
-k All assignment arguments are placed in the environment for a
command, not just those that precede the command name.
-m Job control is enabled.
-n Read commands but do not execute them.
-o option-name
Set the variable corresponding to option-name:
allexport same as -a
braceexpand same as -B
emacs use an emacs-style line editing interface
errexit same as -e
errtrace same as -E
functrace same as -T
hashall same as -h
histexpand same as -H
history enable command history
ignoreeof the shell will not exit upon reading EOF
interactive-comments
allow comments to appear in interactive commands
keyword same as -k
monitor same as -m
noclobber same as -C
noexec same as -n
noglob same as -f
nolog currently accepted but ignored
notify same as -b
nounset same as -u
onecmd same as -t
physical same as -P
pipefail the return value of a pipeline is the status of
the last command to exit with a non-zero status,
or zero if no command exited with a non-zero status
posix change the behavior of bash where the default
operation differs from the Posix standard to
match the standard
privileged same as -p
verbose same as -v
vi use a vi-style line editing interface
xtrace same as -x
-p Turned on whenever the real and effective user ids do not match.
Disables processing of the $ENV file and importing of shell
functions. Turning this option off causes the effective uid and
gid to be set to the real uid and gid.
-t Exit after reading and executing one command.
-u Treat unset variables as an error when substituting.
-v Print shell input lines as they are read.
-x Print commands and their arguments as they are executed.
-B the shell will perform brace expansion
-C If set, disallow existing regular files to be overwritten
by redirection of output.
-E If set, the ERR trap is inherited by shell functions.
-H Enable ! style history substitution. This flag is on
by default when the shell is interactive.
-P If set, do not follow symbolic links when executing commands
such as cd which change the current directory.
-T If set, the DEBUG trap is inherited by shell functions.
-- Assign any remaining arguments to the positional parameters.
If there are no remaining arguments, the positional parameters
are unset.
- Assign any remaining arguments to the positional parameters.
The -x and -v options are turned off.
Using + rather than - causes these flags to be turned off. The
flags can also be used upon invocation of the shell. The current
set of flags may be found in $-. The remaining n ARGs are positional
parameters and are assigned, in order, to $1, $2, .. $n. If no
ARGs are given, all shell variables are printed.
Exit Status:
Returns success unless an invalid option is given.
|
|
2012-05-16 |
Nastavi ali ponastavi vrednosti možnosti lupine in položajne parametre.
Spremeni vrednost atributov lupine in položajnih parametrov ali
prikaže imena in vrednosti spremenljivk lupine.
Možnosti:
-a Označi vrednosti, ki so spremenjene ali ustvarjene za izvoz.
-b Takoj obvesti o uničenju posla.
-e Takoj končaj, če ukaz obstaja z ne-ničelnim stanjem.
-f Onemogoči ustvarjanje imen datotek (globbing).
-h Zapomni si mesto ukazov, ko se jih išče.
-k Vsi argumenti dodeljevanja so postavljeni v okolje za ukaz, ne
samo tisti, ki imajo predhodna imena ukazov.
-m Nadzor poslov je omogočen.
-n Preberi ukaze, toda ne izvedi jih.
-o ime_možnosti
Nastavi spremenljivke, ki ustrezajo ime_možnosti:
allexport enako kot -a
braceexpand enako kot -B
emacs uporabi vmesnik urejanja vrstic s slogom emacs
errexit enako kot -e
errtrace enako kot -E
functrace enako kot -T
hashall enako kot -h
histexpand enako kot -H
history omogoči zgodovino ukazov
ignoreeof lupina se ne bo končala po koncu branja datoteke
interactive-comments
omogoči, da se ukazi pojavijo v vzajemnih ukazih
keyword enako kot -k
monitor enako kot -m
noclobber enako kot -C
noexec enako kot -n
noglob enako kot -f
nolog trenutno sprejeto, toda neupoštevano
notify enako kot -b
nounset enako kot -u
onecmd enako kot -t
physical enako kot -P
pipefail vrnjena vrednost cevovoda je stanje zadnjega
ukaza, ki je končal z ne-ničelnim stanjem ali nič,
če noben ukaz ni končal ne-ničelnim stanjem
posix spremeni obnašanje bash-a, kjer se privzeto
opravilo razlikuje od standarda POSIX pri
ujemanju standarda
privileged enako kot -p
verbose enako kot -v
vi uporabi vmesnik urejanja vrstic s slogom vi
xtrace enako kot -x
-p Vklopljeno, kadar se pravi in učinkoviti uporabniški ID-ji ne
ujamajo. Onemogoči obdelavo datoteke $ENV in uvoz funkcij
lupine. Onemogočenje te možnosti povzroči, da sta učinkovit
uporabniški id in id skupine nastavljena na resničen
uporabniški id in id skupine.
-t Končaj po branju in izvedbi enega ukaza.
-u Obravnavaj ponastavljene spremenljivke kot napako pri
zamenjavi.
-v Prikaži vrstice vnosa lupine kot so prebrane.
-x Prikaži ukaze in njihove argumente kot so izvedeni.
-B lupina bo izvedla širitev oklepaja
-C če je nastavljen, ne dovoli običajnim datotekam,
da bi bile prepisane s preusmeritvijo izhoda.
-E Če je nastavljeno, je past ERR dedovana s strani
funkcij lupine.
-H Omogoči zamenjavo zgodovine s slogom! . Ta zastavica
je privzeto omogočena, kadar je lupina vzajemna.
-P Če je nastavljeno, ne sledi simbolnim povezavam, kadar se
izvajajo ukazi, kot je cd, ki spremeni trenutno mapo.
-T Če je nastavljeno, je past DEBUG dedovana s strani
funkcij lupine.
-- Dodeli vse preostale argumente v položajne parametre.
Če ni preostalih argumentov, so položajni parametri
ponastavljeni.
- Dodeli vse preostale argumente v položajne parametre.
Možnosti -x in -v sta izključeni.
Uporaba + namesto - povzroči, da se te zastave izklopijo.
Zastave se lahko tudi uporabijo za po klicu lupine. Trenuten
niz zastavic je mogoče najti v $-. Preostali n ARGUMENTI so
položajni parametri in so dodeljeni vrstnem redu k $1, $2, .. $n.
Če ni danih ARGUMENTOV, se izpišejo vse spremenljivke
lupine.
Stanje končanja
Vrne uspešno, razen če je dana neveljavna možnost.
|
|
509. |
Set export attribute for shell variables.
Marks each NAME for automatic export to the environment of subsequently
executed commands. If VALUE is supplied, assign VALUE before exporting.
Options:
-f refer to shell functions
-n remove the export property from each NAME
-p display a list of all exported variables and functions
An argument of `--' disables further option processing.
Exit Status:
Returns success unless an invalid option is given or NAME is invalid.
|
|
2012-05-17 |
Nastavi atribut izvoza za spremenljivke lupine.
Označi vsako IME za samodejni izvoz v okolje naknadno izvedenih
ukazov. Če je VREDNOST vnesena, dodeli VREDNOST pred izvozom.
Možnosti:
-f nanašaj se na funkcije lupine
-n odstrani lastnost izvoza iz vsakega IMENA
-p prikaži seznam vseh izvoženih spremenljivk in funkcij
Argument od `--' onemogoči nadaljnjo obdelavo možnosti.
Stanje končanja
Vrne uspešno, razen če je dana neveljavna možnost ali če je
neveljavno IME.
|
|
510. |
Mark shell variables as unchangeable.
Mark each NAME as read-only; the values of these NAMEs may not be
changed by subsequent assignment. If VALUE is supplied, assign VALUE
before marking as read-only.
Options:
-a refer to indexed array variables
-A refer to associative array variables
-f refer to shell functions
-p display a list of all readonly variables and functions
An argument of `--' disables further option processing.
Exit Status:
Returns success unless an invalid option is given or NAME is invalid.
|
|
2012-05-17 |
Označi spremenljivke lupine kot nespremenljive.
Označi vsako IME kot samo za branje; vrednosti teh IMEN se morda
ne bodo spremenile s strani naknadne dodelitve. Če je VREDNOST
predložena, dodeli VREDNOST pred označitvijo samo za branje.
Možnosti:
-a nanašaj se na spremenljivke zabeleženih polj
-A nanašaj se spremenljivke povezanih polj
-f nanašaj se na funkcije lupine
-p prikaži seznam vseh spremenljivk in funkcij, ki so samo
za branje
Argument od `--' onemogoči nadaljnjo obdelavo možnosti.
Stanje končanja
Vrne uspešno, razen če je dana neveljavna možnost ali če je
neveljavno IME.
|
|
511. |
Shift positional parameters.
Rename the positional parameters $N+1,$N+2 ... to $1,$2 ... If N is
not given, it is assumed to be 1.
Exit Status:
Returns success unless N is negative or greater than $#.
|
|
2012-05-17 |
Premakne položajne parametre.
Preimenuje položajne parametre $N+1, $N+2 ... v $1,$2 ...
Če N ni dan, se predvideva, da je 1.
Stanje končanja:
Vrne uspešno, razen če je N negativen ali večji kot $#.
|
|
514. |
Evaluate conditional expression.
Exits with a status of 0 (true) or 1 (false) depending on
the evaluation of EXPR. Expressions may be unary or binary. Unary
expressions are often used to examine the status of a file. There
are string operators and numeric comparison operators as well.
The behavior of test depends on the number of arguments. Read the
bash manual page for the complete specification.
File operators:
-a FILE True if file exists.
-b FILE True if file is block special.
-c FILE True if file is character special.
-d FILE True if file is a directory.
-e FILE True if file exists.
-f FILE True if file exists and is a regular file.
-g FILE True if file is set-group-id.
-h FILE True if file is a symbolic link.
-L FILE True if file is a symbolic link.
-k FILE True if file has its `sticky' bit set.
-p FILE True if file is a named pipe.
-r FILE True if file is readable by you.
-s FILE True if file exists and is not empty.
-S FILE True if file is a socket.
-t FD True if FD is opened on a terminal.
-u FILE True if the file is set-user-id.
-w FILE True if the file is writable by you.
-x FILE True if the file is executable by you.
-O FILE True if the file is effectively owned by you.
-G FILE True if the file is effectively owned by your group.
-N FILE True if the file has been modified since it was last read.
FILE1 -nt FILE2 True if file1 is newer than file2 (according to
modification date).
FILE1 -ot FILE2 True if file1 is older than file2.
FILE1 -ef FILE2 True if file1 is a hard link to file2.
String operators:
-z STRING True if string is empty.
-n STRING
STRING True if string is not empty.
STRING1 = STRING2
True if the strings are equal.
STRING1 != STRING2
True if the strings are not equal.
STRING1 < STRING2
True if STRING1 sorts before STRING2 lexicographically.
STRING1 > STRING2
True if STRING1 sorts after STRING2 lexicographically.
Other operators:
-o OPTION True if the shell option OPTION is enabled.
-v VAR True if the shell variable VAR is set
! EXPR True if expr is false.
EXPR1 -a EXPR2 True if both expr1 AND expr2 are true.
EXPR1 -o EXPR2 True if either expr1 OR expr2 is true.
arg1 OP arg2 Arithmetic tests. OP is one of -eq, -ne,
-lt, -le, -gt, or -ge.
Arithmetic binary operators return true if ARG1 is equal, not-equal,
less-than, less-than-or-equal, greater-than, or greater-than-or-equal
than ARG2.
Exit Status:
Returns success if EXPR evaluates to true; fails if EXPR evaluates to
false or an invalid argument is given.
|
|
2012-05-17 |
Ovrednoti pogojni izraz.
Konča s stanjem 0 (prav) ali 1 (napak), odvisno od ovrednotenja IZRAZA.
Izrazi so lahko enoslovni ali binarni. Enoslovni izrazi so pogosto
uporabljeni za preverjanje stanja datoteke. Obstajajo tudi operatorji
nizov in operatorji številskih primerjav.
Obnašanje preizkusa je odvisno od števila argumentov. Preberite
si stran priročnika bash za popolno razčlenitev.
Operatorji datotek:
-a DATOTEKA Prav, če datoteka obstaja.
-b DATOTEKA Prav, če je datoteka posebnost bloka.
-c DATOTEKA Prav, če je datoteka posebnost znaka.
-d DATOTEKA Prav, če je datoteka mapa.
-e DATOTEKA Prav, če datoteka obstaja.
-f DATOTEKA Prav, če datoteka obstaja in je običajna.
-g DATOTEKA Prav, če je datoteka set-group-id.
-h DATOTEKA Prav, če je datoteka simbolna povezava.
-L DATOTEKA Prav, če je datoteka simbolna povezava.
-k DATOTEKA Prav, če ima datoteka nastavljeno zastavo `sticky' bit
-p DATOTEKA Prav, če je datoteka imenovana cev.
-r DATOTEKA Prav, če je datoteka berljiva za Vas.
-s DATOTEKA Prav, če datoteka obstaja in ni prazna.
-S DATOTEKA Prav, če datoteka ni vstavek.
-t FD Prav, če je FD odprt v terminalu.
-u DATOTEKA Prav, če je datoteka set-user-id.
-w DATOTEKA Prav, če je datoteka zapisljiva za Vas.
-x DATOTEKA Prav, če je datoteka izvedljiva za Vas.
-O DATOTEKA Prav, če datoteka v vaši lasti.
-G DATOTEKA Prav, če je datoteka v lasti vaše skupine.
-N DATOTEKA Prav, če je datoteka bila spremenjena, odkar je bila
nazadnje prebrana.
DATOTEKA1 -nt DATOTEKA Prav, če je datoteka1 novejša kot
datoteka2 (glede na datum spremembe).
DATOTEKA1 -ot DATOTEKA2 Prav, če je datoteka1 starejša kot
datoteka2.
DATOTEKA1 -ef DATOTEKA2 Prav, če je datoteka1 nespremenljivo
vezana na datoteko2.
Operatorji nizov:
-z NIZ Prav, če je niz prazen.
-n NIZ
NIZ Prav, če niz ni prazen.
NIZ1 = NIZ2
Prav, če sta niza enaka.
NIZ1 != NIZ2
Prav, če niza nista enaka.
NIZ1 < NIZ2
Prav, če NIZ1 razvrsti po abecedi prej kot NIZ2.
NIZ1 > NIZ2
Prav, če NIZ1 razvrsti po abecedi kasneje kot NIZ2.
Drugi operatorji:
-o MOŽNOST Prav, če je možnost lupine MOŽNOST omogočena.
-v SPR Prav, če je spremenljivka lupine SPR nastavljena
! IZRAZ Prav, če je izraz napak.
IZRAZ1 -a IZRAZ2 Prav, če sta izraz1 IN izraz2 prav.
IZRAZ1 -o IZRAZ2 Prav, če je izraz1 ALI izraz2 prav.
arg1 OP arg2 Aritmetični preizkusi. OP je eden od -eq, -ne,
-lt, -le, -gt, ali -ge.
Aritmetična binarna operatorja vrneta prav, če je ARG1 enak, neenak,
manjši-kot, manjši-kot-ali-enak, večji-kot ali večji-kot-ali-enak
kot ARG2.
Stanje končanja:
Vrne uspešno, če IZRAZ ovrednoti prav, neuspešno vrne, če IZRAZ
ovrednoti napak ali če je dan neveljaven argument.
|
|
515. |
Evaluate conditional expression.
This is a synonym for the "test" builtin, but the last argument must
be a literal `]', to match the opening `['.
|
|
2012-05-17 |
Ovrednoti pogojni izraz.
To je sopomenka za vgrajeno lupino "test", toda zadnji argument
mora biti dobesedni `]' za ujemanje z uklepajem `['.
|
|
517. |
Trap signals and other events.
Defines and activates handlers to be run when the shell receives signals
or other conditions.
ARG is a command to be read and executed when the shell receives the
signal(s) SIGNAL_SPEC. If ARG is absent (and a single SIGNAL_SPEC
is supplied) or `-', each specified signal is reset to its original
value. If ARG is the null string each SIGNAL_SPEC is ignored by the
shell and by the commands it invokes.
If a SIGNAL_SPEC is EXIT (0) ARG is executed on exit from the shell. If
a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command. If
a SIGNAL_SPEC is RETURN, ARG is executed each time a shell function or a
script run by the . or source builtins finishes executing. A SIGNAL_SPEC
of ERR means to execute ARG each time a command's failure would cause the
shell to exit when the -e option is enabled.
If no arguments are supplied, trap prints the list of commands associated
with each signal.
Options:
-l print a list of signal names and their corresponding numbers
-p display the trap commands associated with each SIGNAL_SPEC
Each SIGNAL_SPEC is either a signal name in <signal.h> or a signal number.
Signal names are case insensitive and the SIG prefix is optional. A
signal may be sent to the shell with "kill -signal $$".
Exit Status:
Returns success unless a SIGSPEC is invalid or an invalid option is given.
|
|
2012-05-17 |
Signali trap in ostali dogodki.
Določi in omogoči ročnik, da se jih zažene, kadar lupina sprejme signale
ali ostale pogoje.
ARG je ukaz, ki se ga prebere in izvrši, kadar lupina sprejme signal(e)
SIGNAL_SPEC. Če je ARG odsoten (in predložen en SIGNAL_SPEC)
ali `-', je vsak določen signal ponastavljen na svojo prvotno vrednost.
Če je ARG prazen niz, je vsak SIGNAL_SPEC prezrt s strani lupine
in ukazov, ki jih pokliče.
Če je SIGNAL_SPEC EXIT (0), se ARG izvrši ob izhodu iz lupine. Če je
SIGNAL_SPEC DEBUG, je ARG izvršen pred vsakim ukazom. Če je
SIGNAL_SPEC RETURN, se ARG izvrši vsakič, ko funkcija lupine ali skript,
zagnan s strani . ali vgrajenih virov, konča z izvajanjem. SIGNAL_SPEC
od ERR pomeni, da se ARG izvede vsakič, ko bi napaka ukaza povzročila, da
bi se lupina končala, kadar je omogočena možnost -e.
Če ni predloženih argumentov, trap prikaže seznam ukazov, povezanih z
vsakim signalom.
Možnosti:
-l Prikaži seznam imen signalov in njihove ustrezne številke
-p prikaži ukaze trap, povezane z vsakim SIGNAL_SPEC
Vsak SIGNAL_SPEC je bodisi ime signala v <signal.h> bodisi številka signala.
Imena signalov ločujejo velikost črk in predpona SIG je izbirna.
Signal je lahko poslan v lupino s "kill -signal $$".
Stanje končanja:
Vrne uspešno, razen če je SIGSPEC neveljaven ali je dana neveljavna možnost.
|
|
518. |
Display information about command type.
For each NAME, indicate how it would be interpreted if used as a
command name.
Options:
-a display all locations containing an executable named NAME;
includes aliases, builtins, and functions, if and only if
the `-p' option is not also used
-f suppress shell function lookup
-P force a PATH search for each NAME, even if it is an alias,
builtin, or function, and returns the name of the disk file
that would be executed
-p returns either the name of the disk file that would be executed,
or nothing if `type -t NAME' would not return `file'.
-t output a single word which is one of `alias', `keyword',
`function', `builtin', `file' or `', if NAME is an alias, shell
reserved word, shell function, shell builtin, disk file, or not
found, respectively
Arguments:
NAME Command name to be interpreted.
Exit Status:
Returns success if all of the NAMEs are found; fails if any are not found.
|
|
2012-05-17 |
Prikaže podrobnosti o vrsti ukaza.
Za vsako IME nakaže, kako bi bilo tolmačeno, če bi bilo uporabljeno
v imenu ukaza.
Možnosti:
-a prikaži vsa mesta, ki vsebujejo izvedljivo datoteko z imenom
IME;
vključuje vzdevke, vgrajene lupine in funkcije, ampak samo,
če ni možnost `-p' NI uporabljena.
-f zatri iskanje funkcij lupine
-P prisili iskanje POTI za vsako IME, tudi če je vzdevek,
vgrajena lupina ali funkcija, in vrni ime datoteke diska, ki bi
bil izvršen.
-p vrne ime datoteke diska, ki bi bila izvršena ali nič,
če `type -t NAME' ne bi vrnil datoteke `file'.
-t izpiši eno besedo, katera je ena izmed `vzdevkov',
`ključnih_besed', `funkcij', `vgrajenih_lupin', `datotek' ali `',
če je IME vzdevek, rezervirana beseda, funkcija lupine, vgrajena
lupina, datoteka diska ali ni najdeno, v tem zaporedju
Argumenti:
IME Ime ukaza, ki bo tolmačeno.
Stanje končanja:
Vrne uspešno, če so vsa IMENA najdena; vrne neuspešno, če katero
ni najdeno.
|
|
520. |
Display or set file mode mask.
Sets the user file-creation mask to MODE. If MODE is omitted, prints
the current value of the mask.
If MODE begins with a digit, it is interpreted as an octal number;
otherwise it is a symbolic mode string like that accepted by chmod(1).
Options:
-p if MODE is omitted, output in a form that may be reused as input
-S makes the output symbolic; otherwise an octal number is output
Exit Status:
Returns success unless MODE is invalid or an invalid option is given.
|
|
2012-05-17 |
Prikaži ali nastavi masko načina datoteke.
Nastavi uporabniško masko ustvarjanja datoteke v NAČIN. Če je
NAČIN izpuščen, prikaže trenutno vrednost maske.
Če se NAČIN začne z števko, se tolmači kot osmiško število;
sicer je niz simbolnega načina kot je sprejet s strani chmod(1).
Možnosti:
-p če je NAČIN izpuščen, izpiši v obliki, ki se lahko uporabi kot vnos
-S naredi simbolni izpis; sicer se izpiše osmiško število
Stanje končanja:
Vrne uspešno, razen če je NAČIN neveljaven ali če je dana neveljavna
možnost.
|
|
521. |
Wait for job completion and return exit status.
Waits for the process identified by ID, which may be a process ID or a
job specification, and reports its termination status. If ID is not
given, waits for all currently active child processes, and the return
status is zero. If ID is a a job specification, waits for all processes
in the job's pipeline.
Exit Status:
Returns the status of ID; fails if ID is invalid or an invalid option is
given.
|
|
2012-05-21 |
Čaka na dokončanje posla in vrne stanje končanja.
Počaka na opravilo, določeno s strani ID-ja, ki je lahko ID opravila ali
določilo posla in poroča svoje stanje uničenja. Če ID ni dan, počaka
vsa trenutno dejavna podrejena opravila in stanje končanja je nič.
Če je ID določilo posla, počaka vsa opravila v cevovodu
posla.
Stanje končanja:
Vrne stanje ID-ja; vrne neuspešno, če je ID neveljaven ali če je dana
neveljavna možnost.
|
|
523. |
Execute commands for each member in a list.
The `for' loop executes a sequence of commands for each member in a
list of items. If `in WORDS ...;' is not present, then `in "$@"' is
assumed. For each element in WORDS, NAME is set to that element, and
the COMMANDS are executed.
Exit Status:
Returns the status of the last command executed.
|
|
2012-05-21 |
Izvede ukaze za vsakega člana na seznamu.
Zanka `for' izvede zaporedje ukazov za vsakega člana na seznamu
predmetov. Če `in BESEDE ...;' niso prisotna, se predvideva `in "$@"'.
Za vsak element v BESEDAH je IME nastavljeno temu predmetu in
UKAZI so izvršeni.
Stanje končanja:
Vrne stanje zadnjega izvršenega ukaza.
|
|
524. |
Arithmetic for loop.
Equivalent to
(( EXP1 ))
while (( EXP2 )); do
COMMANDS
(( EXP3 ))
done
EXP1, EXP2, and EXP3 are arithmetic expressions. If any expression is
omitted, it behaves as if it evaluates to 1.
Exit Status:
Returns the status of the last command executed.
|
|
2012-05-21 |
Aritmetična zanka for.
Enakovredna je
(( IZRAZ1 ))
while (( IZRAZ2 )); do
UKAZI
(( IZRAZ3 ))
done
IZRAZ1, IZRAZ2, in IZRAZ3 so aritmetični izrazi. Če je kateri izraz izpuščen,
se obnaša, kot da so enaki 1.
Stanje končanja:
Vrne stanje zadnjega izvršenega ukaza.
|
|
525. |
Select words from a list and execute commands.
The WORDS are expanded, generating a list of words. The
set of expanded words is printed on the standard error, each
preceded by a number. If `in WORDS' is not present, `in "$@"'
is assumed. The PS3 prompt is then displayed and a line read
from the standard input. If the line consists of the number
corresponding to one of the displayed words, then NAME is set
to that word. If the line is empty, WORDS and the prompt are
redisplayed. If EOF is read, the command completes. Any other
value read causes NAME to be set to null. The line read is saved
in the variable REPLY. COMMANDS are executed after each selection
until a break command is executed.
Exit Status:
Returns the status of the last command executed.
|
|
2012-05-21 |
Izbere besede s seznama in izvede ukaze.
BESEDE so razširjene, kar ustvari seznam besed. Nabor razširjenih
besed se izpiše na standardno napako, vsaka s svojo številko.
Če `in BESEDE ...;' niso prisotne, se predvideva
`in "$@"'. Potem je prikazan poziv PS3 in vrstica prebrana
s standardnega vnosa. Če je vrstica sestavljena iz številke, ki ustreza
eni od prikazanih besed, potem je IME nastavljeno tej besedi.
Če je vrstica prazna, so BESEDE v pozivu prikazane
ponovno. Če se prebere konec datoteke, se ukaz zaključi. Vsaka druga
prebrana vrednost povzroči, da se IME nastavi na prazno vrednost.
Prebrana vrstica je shranjena v spremenljivki ODGOVOR. UKAZI so izvršeni
po vsakem izboru, dokler se ne izvede ukaz break.
Stanje končanja:
Vrne stanje zadnjega izvršenega ukaza.
|
|
528. |
Execute commands based on conditional.
The `if COMMANDS' list is executed. If its exit status is zero, then the
`then COMMANDS' list is executed. Otherwise, each `elif COMMANDS' list is
executed in turn, and if its exit status is zero, the corresponding
`then COMMANDS' list is executed and the if command completes. Otherwise,
the `else COMMANDS' list is executed, if present. The exit status of the
entire construct is the exit status of the last command executed, or zero
if no condition tested true.
Exit Status:
Returns the status of the last command executed.
|
|
2012-05-23 |
Izvaja ukaze, ki temeljijo na pogojih.
Izvede se seznam `if UKAZI'. Če je njegovo stanje nič, se izvede seznam
`then UKAZI'. V nasprotnem primeru se izvede vsak seznam `elif UKAZI'
in če je njegovo stanje nič, se izvede ustrezen seznam `then UKAZI'
in ukaz if se zaključi. V nasprotnem primeru se izvede seznam
`else UKAZI', če je prisoten. Stanje končanja celotnega izgrajenja
je stanje končanja zadnjega izvršenega ukaza ali nič, če noben pogoj ni
dal prav.
Stanje končanja:
Vrne stanje zadnjega izvršenega ukaza.
|
|
531. |
Create a coprocess named NAME.
Execute COMMAND asynchronously, with the standard output and standard
input of the command connected via a pipe to file descriptors assigned
to indices 0 and 1 of an array variable NAME in the executing shell.
The default NAME is "COPROC".
Exit Status:
Returns the exit status of COMMAND.
|
|
2012-05-21 |
Ustvari soopravilo, imenovano IME.
Izvrši UKAZ neusklajeno, s standardnim izhodom in vnosom ukaza, ki sta
povezana preko cevi z opisniki datotek, ki so dodeljeni kazalom 0 in 1
spremenljivke polja IME v izvršilni lupini.
Privzeto IME je "COPROC".
Stanje končanja:
Vrne stanje končanja UKAZA.
|
|
537. |
Common shell variable names and usage.
BASH_VERSION Version information for this Bash.
CDPATH A colon-separated list of directories to search
for directories given as arguments to `cd'.
GLOBIGNORE A colon-separated list of patterns describing filenames to
be ignored by pathname expansion.
HISTFILE The name of the file where your command history is stored.
HISTFILESIZE The maximum number of lines this file can contain.
HISTSIZE The maximum number of history lines that a running
shell can access.
HOME The complete pathname to your login directory.
HOSTNAME The name of the current host.
HOSTTYPE The type of CPU this version of Bash is running under.
IGNOREEOF Controls the action of the shell on receipt of an EOF
character as the sole input. If set, then the value
of it is the number of EOF characters that can be seen
in a row on an empty line before the shell will exit
(default 10). When unset, EOF signifies the end of input.
MACHTYPE A string describing the current system Bash is running on.
MAILCHECK How often, in seconds, Bash checks for new mail.
MAILPATH A colon-separated list of filenames which Bash checks
for new mail.
OSTYPE The version of Unix this version of Bash is running on.
PATH A colon-separated list of directories to search when
looking for commands.
PROMPT_COMMAND A command to be executed before the printing of each
primary prompt.
PS1 The primary prompt string.
PS2 The secondary prompt string.
PWD The full pathname of the current directory.
SHELLOPTS A colon-separated list of enabled shell options.
TERM The name of the current terminal type.
TIMEFORMAT The output format for timing statistics displayed by the
`time' reserved word.
auto_resume Non-null means a command word appearing on a line by
itself is first looked for in the list of currently
stopped jobs. If found there, that job is foregrounded.
A value of `exact' means that the command word must
exactly match a command in the list of stopped jobs. A
value of `substring' means that the command word must
match a substring of the job. Any other value means that
the command must be a prefix of a stopped job.
histchars Characters controlling history expansion and quick
substitution. The first character is the history
substitution character, usually `!'. The second is
the `quick substitution' character, usually `^'. The
third is the `history comment' character, usually `#'.
HISTIGNORE A colon-separated list of patterns used to decide which
commands should be saved on the history list.
|
|
2012-05-22 |
Pogosta imena spremenljivk lupine in uporaba.
BASH_VERSION Podatki o različici Bash.
CDPATH Z dvopičjem ločen seznam map za iskanje map,
danih kot argumenti ukazu `cd'.
GLOBIGNORE Z dvopičjem ločen seznam vzorcev z opisom imen datotek,
ki se jih ne upošteva pri razširitvi imena poti.
HISTFILE Ime datoteke, kjer je shranjena vaša zgodovina ukazov.
HISTFILESIZE Največje število vrstic, ki jih ta datoteka lahko vsebuje.
HISTSIZE Največje število vrstic zgodovine, do katerih izvajajoča
lupina lahko dostopa.
HOME Celotno ime poti do vaše prijavne mape.
HOSTNAME Ime trenutnega gostitelja.
HOSTTYPE Vrsta CPE, na katerem se ta različica Bash izvaja.
IGNOREEOF Nadzoruje delovanje lupine ob prejemu znaka za konec
datoteke kot edini vnos. Če je nastavljen, je vrednost število
znakov za konec datoteke, ki jih je mogoče videti naenkrat
v prazni vrstici, preden se lupina konča (privzeto 10).
Ko je ponastavljen, znak za konec datoteke označuje konec vnosa.
MACHTYPE Niz, ki opiše trenutni sistem, na katerem se izvaja Bash.
MAILCHECK Kako pogosto, v sekundah, Bash preveri za novo pošto.
MAILPATH Z dvopičjem ločen seznam imen datotek, za katere Bash
preveri za novo pošto.
OSTYPE Različica sistema Unix, na katerem se ta različica Bash izvaja.
PATH Z dvopičjem ločen seznam iskanih map pri iskanju ukazov.
PROMPT_COMMAND Ukaz, ki se bo izvršil pred izpisom vsakega
glavnega poziva.
PS1 Prvotni niz poziva.
PS2 Drugotni niz poziva.
PWD Polno ime poti trenutne mape.
SHELLOPTS Z dvopičjem ločen seznam omogočenih možnosti lupine.
TERM Ime trenutne vrste terminala.
TIMEFORMAT Oblika izpisa za časovno statistiko, ki je prikazana
s pridržanim imenom `time'.
auto_resume Ne-prazno pomeni, da je beseda ukaza, ki se neodvisno
pojavlja na črti, iskana prva na seznamu trenutno zaustavljenih
poslov. Če je najdena tam, se ta posel postavi v ospredje.
Vrednost `exact' pomeni, da se mora beseda ukaza natančno
ujemati z ukazom na seznamu končanih poslov.
Vrednost `substring' pomeni, da se beseda ukaza mora ujemati
s podnizom posla. Vsaka druga vrednost pomeni,
da mora ukaz biti predpona končanega posla.
histchars Znaki, ki nadzorujejo razširitev zgodovine in hitro
zamenjavo. Prvi znak je znak zamenjave
zgodovine, običajno `!'. Drugi znak je znak
`hitre zamenjave', običajno `^'.
Tretji znak je znak `opomba zgodovine', običajno `#'.
HISTIGNORE Z dvopičjem ločen seznam vzorcev, ki so uporabljeni
za odločanje, kateri ukazi naj se shranijo na seznam zgodovine.
|
|
538. |
Add directories to stack.
Adds a directory to the top of the directory stack, or rotates
the stack, making the new top of the stack the current working
directory. With no arguments, exchanges the top two directories.
Options:
-n Suppresses the normal change of directory when adding
directories to the stack, so only the stack is manipulated.
Arguments:
+N Rotates the stack so that the Nth directory (counting
from the left of the list shown by `dirs', starting with
zero) is at the top.
-N Rotates the stack so that the Nth directory (counting
from the right of the list shown by `dirs', starting with
zero) is at the top.
dir Adds DIR to the directory stack at the top, making it the
new current working directory.
The `dirs' builtin displays the directory stack.
Exit Status:
Returns success unless an invalid argument is supplied or the directory
change fails.
|
|
2012-05-22 |
Doda mape skladu.
Doda mapo na vrh sklada map ali pa zavrti sklad, da spremeni
nov vrh sklada v trenutno delovno mapo.
Če je brez argumentov, izmenja dve vrhnji mapi.
Možnosti:
-n Prepreči običajno spremembo mape pri dodajanju map skladu,
tako da se obdela le sklad.
Argumenti:
+N Zavrti sklad, tako da je N-ta mapa (štetje z leve strani
seznama, prikazano z `dirs', začenši z nič) na vrhu.
-N Zavrti sklad, tako da je N-ta mapa (štetje z desne strani
seznama, prikazano z `dirs', začenši z nič) na vrhu.
dir Doda DIR skladu mape na vrhu, kar jo spremeni v novo
trenutno delovno mapo.
Vgrajena lupina `dirs' prikaže sklad map.
Stanje končanja:
Vrne uspešno, razen če je predložen neveljaven argument ali če
sprememba mape spodleti.
|
|
539. |
Remove directories from stack.
Removes entries from the directory stack. With no arguments, removes
the top directory from the stack, and changes to the new top directory.
Options:
-n Suppresses the normal change of directory when removing
directories from the stack, so only the stack is manipulated.
Arguments:
+N Removes the Nth entry counting from the left of the list
shown by `dirs', starting with zero. For example: `popd +0'
removes the first directory, `popd +1' the second.
-N Removes the Nth entry counting from the right of the list
shown by `dirs', starting with zero. For example: `popd -0'
removes the last directory, `popd -1' the next to last.
The `dirs' builtin displays the directory stack.
Exit Status:
Returns success unless an invalid argument is supplied or the directory
change fails.
|
|
2012-05-22 |
Odstrani mape sklada.
Odstrani vnose sklada map. Če je brez argumentov,
odstrani vrhnjo mapo sklada in spremeni v novo vrhnjo mapo.
Možnosti:
-n Prepreči običajno spremembo mape pri odstranjevanju map
sklada, tako da se obdela le sklad.
Argumenti:
+N Odstrani N-ti vnos s štetjem z leve strani seznama,
prikazanega z `dirs', začenši z nič. Na primer:
`popd +0' odstrani prvo mapo, `popd +1' odstrani drugo.
-N Odstrani N-ti vnos s štetjem z desne strani seznama,
prikazanega z `dirs', začenši z nič. Na primer:
`popd +0' odstrani zadnjo mapo, `popd +1' odstrani predzadnjo.
Vgrajena lupina `dirs' prikaže sklad map.
Stanje končanja:
Vrne uspešno, razen če je predložen neveljaven argument ali če
sprememba mape spodleti.
|
|
541. |
Set and unset shell options.
Change the setting of each shell option OPTNAME. Without any option
arguments, list all shell options with an indication of whether or not each
is set.
Options:
-o restrict OPTNAMEs to those defined for use with `set -o'
-p print each shell option with an indication of its status
-q suppress output
-s enable (set) each OPTNAME
-u disable (unset) each OPTNAME
Exit Status:
Returns success if OPTNAME is enabled; fails if an invalid option is
given or OPTNAME is disabled.
|
|
2012-05-23 |
Nastavi in ponastavi možnosti lupine.
Spremeni nastavitev vsake možnosti lupine IME_MOŽNOSTI.
Če ni navedenih argumentov možnosti, navede vse možnosti
lupine z označbo, če so vsi nastavljeni ali ne.
Možnosti:
-o omeji IMENA_MOŽNOSTI tem, ki so določeni za uporabo s `set -o'
-p prikaži vsako možnost lupine z navedbo stanja
-q prepreči izhod
-s omogoči (nastavi) vsako IME_MOŽNOSTI
-u onemogoči (ponastavi) vsako IME_MOŽNOSTI
Stanje končanja:
Vrne uspešno, če je IME_MOŽNOSTI omogočeno; neuspešno, če je
dana neveljavna možnost ali če je IME_MOŽNOSTI onemogočeno.
|
|
543. |
Specify how arguments are to be completed by Readline.
For each NAME, specify how arguments are to be completed. If no options
are supplied, existing completion specifications are printed in a way that
allows them to be reused as input.
Options:
-p print existing completion specifications in a reusable format
-r remove a completion specification for each NAME, or, if no
NAMEs are supplied, all completion specifications
-D apply the completions and actions as the default for commands
without any specific completion defined
-E apply the completions and actions to "empty" commands --
completion attempted on a blank line
When completion is attempted, the actions are applied in the order the
uppercase-letter options are listed above. The -D option takes
precedence over -E.
Exit Status:
Returns success unless an invalid option is supplied or an error occurs.
|
|
2012-05-23 |
Navede, kako bodo argumenti dopolnjeni s pomočjo Readline.
Za vsako IME navedi, kako bodo argumenti dopolnjeni. Če ni predloženih
možnosti, so obstoječe določitve dopolnjevanja prikazane na način, ki jim
omogoča, da se ponovno uporabijo kot vnos.
Možnosti:
-p prikaži obstoječe določitve dopolnjevanja v obliki za večkratno
uporabo
-r odstrani določitev dopolnjevanja za vsako IME ali če IMENA
niso predložena, vse določitve dopolnjevanja
-D uveljavi dopolnjevanja in dejanja kot privzeta za ukaze brez
določenih dopolnjevanj
-E uveljavi dopolnjevanja in dejanja v "praznih" ukazih --
poskus dopolnjevanja v prazni vrstici
Ko se poskuša dopolnjevanje, se dejanja uveljavijo v takšnem
vrstnem redu, kot z velikimi črkami zgoraj navedene možnosti.
Možnost -D ima prednost pred -E.
Stanje končanja:
Vrne uspešno, razen če je predložena neveljavna možnost ali če pride
do napake.
|
|
545. |
Modify or display completion options.
Modify the completion options for each NAME, or, if no NAMEs are supplied,
the completion currently being executed. If no OPTIONs are given, print
the completion options for each NAME or the current completion specification.
Options:
-o option Set completion option OPTION for each NAME
-D Change options for the "default" command completion
-E Change options for the "empty" command completion
Using `+o' instead of `-o' turns off the specified option.
Arguments:
Each NAME refers to a command for which a completion specification must
have previously been defined using the `complete' builtin. If no NAMEs
are supplied, compopt must be called by a function currently generating
completions, and the options for that currently-executing completion
generator are modified.
Exit Status:
Returns success unless an invalid option is supplied or NAME does not
have a completion specification defined.
|
|
2012-05-23 |
Spremeni ali prikaže možnosti dopolnjevanja.
Spremeni možnosti dopolnjevanja za vsako IME oz. trenutno izvedeno
dopolnitev, če IMENA niso predložena. Če ni danih MOŽNOSTI,
prikaže možnosti dopolnjevanja za vsako IME ali trenutno določitev
dopolnjevanja.
Možnosti:
-o možnost Nastavi možnost dopolnitve MOŽNOST za vsako IME
-D Spremeni možnosti za "privzeto" dopolnitev ukaza
-E Spremeni možnosti za "prazno" dopolnitev ukaza
Uporaba `+o' namesto `-o' izklopi navedeno možnost.
Argumenti:
Vsako IME se nanaša na ukaz, za katerega mora že predhodno biti
določeno določilo dopolnjevanja z uporabo vgrajene lupine `complete'.
Če ni predloženih IMEN, mora compopt biti klican s strani funkcije,
ki trenutno ustvarja dopolnjevanja in možnosti za tega trenutno
izvajajočega ustvarjalnika dopolnjevanj se bodo spremenile.
Stanje končanja:
Vrne uspešno, razen če je predložena neveljavna možnost ali pa IME
nima določenega določila dopolnjevanja.
|
|
546. |
Read lines from the standard input into an indexed array variable.
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.
-O origin Begin assigning to ARRAY at index ORIGIN. The default index is 0.
-s count Discard the first COUNT lines read.
-t Remove a trailing newline from each line read.
-u fd Read lines from file descriptor FD instead of the standard input.
-C callback Evaluate CALLBACK each time QUANTUM lines are read.
-c quantum Specify the number of lines read between each call to CALLBACK.
Arguments:
ARRAY Array variable name to use for file data.
If -C is supplied without -c, the default quantum is 5000. When
CALLBACK is evaluated, it is supplied the index of the next array
element to be assigned and the line to be assigned to that element
as additional arguments.
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 or
not an indexed array.
|
|
2012-05-23 |
Prebere vrstice s standardnega vnosa v spremenljivko zabeleženega polja.
Prebere vrstice iz standardnega vnosa v spremenljivko zabeleženega polja
POLJE ali iz opisnika datotek FD, če je predložena možnost -u.
Spremenljivka MAPFILE je privzeto POLJE.
Možnosti:
-n števec Kopiraj največ vrstic ŠTEVCA. Če je ŠTEVEC 0, se kopirajo
vse vrstice.
-O izvor Začni dodeljevati POLJU pri kazalu IZVOR. Privzeto kazalo je 0.
-s števec Zavrzi prve prebrane vrstice ŠTEVCA.
-t Iz vsake prebrane vrstice odstrani vmesno novo vrstico.
-u fd Beri vrstice iz opisnika datotek FD namesto standardnega
vnosa.
-C povratni_klic Ovrednoti POVRATNI_KLIC vsakič, ko so prebrane
vrstice DELOV.
-c del Navedi število vrstic, prebranih med vsakim klicem
POVRATNEGA_KLICA.
Argumenti:
POLJE Ime spremenljivke polja za uporabo za podatke datotek
Če je -C predložen brez -c, je privzet del 5000. Ko je POVRATNI_KLIC
ovrednoten, je predloženo kazalo naslednjega predmeta polja, ki bo
dodeljen in vrstica, ki bo dodeljena temu predmetu kot dodatni
argumenti.
Če ni predloženo z izrecnim izvorom, bo mapfile počistil POLJE, preden
ji bo dodeljen.
Stanje končanja:
Vrne uspešno, razen če je dana neveljavna možnost oz. je POLJE samo
za branje ali pa ni zabeleženo polje.
|