|
527.
|
|
|
Execute commands based on pattern matching.
Selectively execute COMMANDS based upon WORD matching PATTERN. The
`|' is used to separate multiple patterns.
Exit Status:
Returns the status of the last command executed.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Вибірково виконує команди відповідно до шаблону.
Вибірково виконує КОМАНДИ, залежно від відповідності СЛОВА ШАБЛОНУ.
Декілька шаблонів можуть бути вказані через `|'.
Код завершення:
Команда повертає код завершення останньої виконаної команди.
|
|
Translated by
yurchor
|
|
|
|
Located in
builtins.c:1619
|
|
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.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Виконує команди відповідно до умови.
КОМАНДИ з `if КОМАНДИ' виконуються, і якщо їх код завершення нульовий,
виконуються КОМАНДИ з `then КОМАНДИ'. Інакше в свою чергу виконуються
команди з `elif КОМАНДИ', і якщо їх код завершення нульовий, виконуються
КОМАНДИ з відповідного `then КОМАНДИ'. Інакше виконуються КОМАНДИ з
`else КОМАНДИ'. Блоки elif та else не обов’язкові.
Код завершення:
Команда повертає код завершення останньої виконаної команди або нуль,
якщо жодна з перевірених умов не була істинною.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
Located in
builtins.c:1631
|
|
529.
|
|
|
Execute commands as long as a test succeeds.
Expand and execute COMMANDS as long as the final command in the
`while' COMMANDS has an exit status of zero.
Exit Status:
Returns the status of the last command executed.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Циклічно виконує команди поки виконується умова.
Виконуватиме КОМАНДИ, поки остання команда з КОМАНД у `while'
не завершиться невдало.
Код завершення:
Команда повертає код завершення останньої виконаної команди.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
Located in
builtins.c:1647
|
|
530.
|
|
|
Execute commands as long as a test does not succeed.
Expand and execute COMMANDS as long as the final command in the
`until' COMMANDS has an exit status which is not zero.
Exit Status:
Returns the status of the last command executed.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Виконує команди доки умову не буде виконано.
Виконуватиме КОМАНДИ, поки остання команда з КОМАНД у `until'
не завершиться успішно.
Код завершення:
Команда повертає код завершення останньої виконаної команди.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
Located in
builtins.c:1659
|
|
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.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Створює співпроцес з іменем ІМ’Я.
Починає асинхронне виконання КОМАНДИ, під’єднавши її стандартний ввід та
вивід через канали до файлових дескрипторів, які присвоюються елементам 0
та 1 змінної-масиву ІМ’Я.
Стандартне ім’я змінної — "COPROC".
Код завершення:
Команда повертає код завершення КОМАНДИ.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
|
WTF? How can it return exit code of _asynchronous_ process...
|
|
Located in
builtins.c:1620
|
|
532.
|
|
|
Define shell function.
Create a shell function named NAME. When invoked as a simple command,
NAME runs COMMANDs in the calling shell's context. When NAME is invoked,
the arguments are passed to the function as $1...$n, and the function's
name is in $FUNCNAME.
Exit Status:
Returns success unless NAME is readonly.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Описує функцію оболонки.
Створює функцію оболонки з назвою НАЗВА. Функція запускається як звичайна
команда з назвою НАЗВА та послідовно виконує КОМАНДИ. Аргументи до команди
призначаються на час виконання змінним $1...$n, а назва функції — змінній
$FUNCNAME.
Код завершення:
Команда завершується невдало, якщо НАЗВА є незмінною.
|
|
Translated by
yurchor
|
|
|
|
Located in
builtins.c:1686
|
|
533.
|
|
|
Group commands as a unit.
Run a set of commands in a group. This is one way to redirect an
entire set of commands.
Exit Status:
Returns the status of the last command executed.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Групує команди в один блок.
Виконує згрупований набір команд. Це один з методів перенаправлення виводу
групи команд.
Код завершення:
Конструкція повертає код завершення останньої виконаної команди.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
Located in
builtins.c:1700
|
|
534.
|
|
|
Resume job in foreground.
Equivalent to the JOB_SPEC argument to the `fg' command. Resume a
stopped or background job. JOB_SPEC can specify either a job name
or a job number. Following JOB_SPEC with a `&' places the job in
the background, as if the job specification had been supplied as an
argument to `bg'.
Exit Status:
Returns the status of the resumed job.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Продовжує виконання завдання на передньому плані.
Продовжує на передньому плані виконання призупиненого чи фонового
завдання, як це робить команда `fg'. ЗАВДАННЯ може бути назвою чи номером
завдання. Якщо після ЗАВДАННЯ вказано `&', завдання продовжує виконання у
фоні, тобто команда має ефект команди `bg'.
Код завершення:
Команда повертає статус продовженого завдання.
|
|
Translated by
yurchor
|
|
|
|
Located in
builtins.c:1712
|
|
535.
|
|
|
Evaluate arithmetic expression.
The EXPRESSION is evaluated according to the rules for arithmetic
evaluation. Equivalent to "let EXPRESSION".
Exit Status:
Returns 1 if EXPRESSION evaluates to 0; returns 0 otherwise.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Обчислює арифметичний вираз.
Обчислює ВИРАЗ відповідно до правил арифметичного розкриття. Те ж саме,
що й "let ВИРАЗ".
Код завершення:
Команда завершується успішно, якщо результат обчислення ненульовий.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
Located in
builtins.c:1708
|
|
536.
|
|
|
Execute conditional command.
Returns a status of 0 or 1 depending on the evaluation of the conditional
expression EXPRESSION. Expressions are composed of the same primaries used
by the `test' builtin, and may be combined using the following operators:
( EXPRESSION ) [tab] Returns the value of EXPRESSION
! EXPRESSION [tab] [tab] True if EXPRESSION is false; else false
EXPR1 && EXPR2 [tab] True if both EXPR1 and EXPR2 are true; else false
EXPR1 || EXPR2 [tab] True if either EXPR1 or EXPR2 is true; else false
When the `==' and `!=' operators are used, the string to the right of
the operator is used as a pattern and pattern matching is performed.
When the `=~' operator is used, the string to the right of the operator
is matched as a regular expression.
The && and || operators do not evaluate EXPR2 if EXPR1 is sufficient to
determine the expression's value.
Exit Status:
0 or 1 depending on value of EXPRESSION.
|
|
|
[tab] represents a tab character.
Please write it exactly the same way, [tab] , in your
translation.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Виконує умовну команду.
Повертає статус 0 чи 1, в залежності від результату обчислення умовного
ВИРАЗУ. Вирази складаються з тих самих складових, що використовуються у
вбудованій команді `test', але можуть також комбінуватися за допомогою:
( ВИРАЗ ) [tab] [tab] Повертає значення ВИРАЗУ.
! ВИРАЗ [tab] [tab] Істинний, якщо ВИРАЗ хибний.
ВИРАЗ1 && ВИРАЗ2 [tab] Істинний, якщо обидва ВИРАЗИ істинні.
ВИРАЗ1 || ВИРАЗ2 [tab] Істинний, якщо хоч один з ВИРАЗІВ істинний.
Якщо застосовуються оператори `==' та `!=', рядок з правої сторони
вважається шаблоном, й проводиться перевірка на відповідність цьому
шаблону. При застосуванні `=~' рядок зліва вважається регулярним
виразом, відносно якого перевіряється правий рядок.
Оператори && та || не обчислюють ВИРАЗ2, якщо ВИРАЗУ1 достатньо для
визначення результату.
Код завершення:
Команда завершується успішно, якщо ВИРАЗ істинний.
|
|
Translated by
Maxim Dziumanenko
|
|
|
|
Located in
builtins.c:1739
|