Browsing Indonesian translation

491 of 547 results
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.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
Ambil argumen pilihan.

Getops digunakan oleh shell procedures untuk memparse parameter posisi.

OPTSTRING berisi huruf pilihan yang dikenali; jika sebuah huruf
diikuti oleh sebuah colon, pilihan diduga akan berupa argumen,
yang seharusnya dipisahkan dari itu oleh spasi.

Setiap waktu ini dipanggil, getopts akan menempatkan pilihan selanjutnya dalam
$name shell variabel, menginisialisasi nama jiki ini tidak ada, dan
index dari argumen selanjutnya untuk diproses kedalam shell
variabel OPTIND. OPTIND diinisialisasi ke 1 setiap shell atau
sebuah shell script dipanggil. Ketika sebuah pilihan membutuhkan sebuah argumen,
getopts menempatkan argumen itu kedalam variabel shell OPTARG.

getopts melaporkan error dalam satu dari dua cara. Jika karakter pertama
dari OPTSTRING adalah sebuah colon, getopts menggunakan silent error laporan. Dalam
Mode ini, tidak ada pesan error yang ditampilkan. Jika sebuah pilihan tidak valid terlihat
getops menempatkan karakter pilihan yang ditemukan ke OPTARG. Jika sebuah
argumen yang dibutuhkan tidak ditemukan, getopts menempatkan sebuah ':' kedalam NAME dan
menset OPTARG ke pilihan karakter yang ditemukan. Jika getopts tidak dalam
mode silent, dan sebuah pilihan tidak valid terlihat getopts menempatkan '?' kedalam
variabel NAME, OPTARG tidak diset, dan sebuah pesan analisis
tampilkan.

Jika sebuah variabel shell OPTERR memiliki sebuah nilai 0, getopts mendisable
pencetakan dari pesan error, bahkan jika karakter pertama dari
OPTSTRING bukan sebuah colon. OPTERR memiliki nilai 1 secara default.

Getopts secara normal memparse parameter posisi ($0 - $9), tetapi jika
lebih dari satu argumen diberikan, mereka diparse.
Status Keluar:
Mengembalikan sukses jika sebuah pilihan ditemukan; gagal jika akhir dari pilihan
ditemui atau sebuah error terjadi.
Translated by Arif Endro Nugroho
Located in builtins.c:646
491 of 547 results

This translation is managed by Ubuntu Indonesian Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.