Browsing Norwegian Bokmal translation

Don't show this notice anymore
Before translating, be sure to go through Ubuntu Translators instructions and Norwegian Bokmal guidelines.
11 of 1 result
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.
Tolk valg-argumenter.

Getopts brukes av skallprosedyrer til å tolke posisjonsparametre
som valg.

VALGSTRENG inneholder bokstaver som skal behandles som valg.
Hvis en bokstav etterfølges av kolon, forventer valget et argument.
Argumentet holdes adskilt fra valget med blanktegn.

getopts plasserer neste valg i skallvariabelen $name hver gang det
kalles, laster inn navnet hvis det ikke finnes, og
indeks for neste argument som skal behandles i skallvariabelen OPTIND.
OPTIND lastes inn til 1 hver gang skallet eller et skallskript kjøres.
Når et valg krever et argument plasseres argumentet i skallvariabelen OPTARG.

getopts rapporterer feil på én av to måter. Hvis første tegn i VALGSTRENG
er kolon, rapporteres feil uten direkte feilmeldinger til brukeren.
Hvis getopts ser et ugyldig valg, plasseres aktuelt valgtegn i OPTARG.
Hvis et obligatorisk argument ikke er gitt, legger getopts et «:» i NAVN og
bruker oppdaget valgtegn som OPTARG. Hvis getopts ikke er i stillemodus,
og ser et ugyldig valg, brukes «?» som NAVN, og OPTARG tømmes.
Hvis et obligatorisk argument ikke er gitt, legger getopts et «?»
i NAVN, tømmer OPTARG og skriver ut en feilmelding.

Hvis skallvariabelen OPTERR har verdien 0, slår getopts av utskrift
av feilmeldinger, selv hvis første tegn i VALGSTRENG ikke er kolon.
OPTERR har verdien 1 som standard.

Getopts tolker vanligvis posisjonsparametre ($0 - $9), men hvis
flere argumenter er gitt, blir disse tolket i stedet.

Avslutningsstatus:
Vellykket hvis et valg finnes, og mislykket hvis et valg ikke finnes
eller det oppstår en annen feil.
Translated by Åka Sikrom
Located in builtins.c:646
11 of 1 result

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

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

Contributors to this translation: Fredrik Sudmann, Haakon Nilsen, Johnny A. Solbu, Kjetil Birkeland Moe, Tor Harald Thorland, Torbjørn Dalland, Åka Sikrom, Åka Sikrom.