Hallo
PS1=’${debian_chroot:+($debian_chroot)}
Was bedeutet in der Variablen PS1 dieser Eintrag?
Tschau
Hermann
Was bedeutet:PS1=’${debian_chroot:+($debian_chroot)} [gelöst
Was bedeutet:PS1=’${debian_chroot:+($debian_chroot)} [gelöst
Zuletzt geändert von hermelin am 03.02.2014 17:56:39, insgesamt 1-mal geändert.
Re: Was bedeutet:PS1=’${debian_chroot:+($debian_chroot)}
${foo:+bar} heisst "wenn $foo nicht leer ist, ersetze den Ausdruck durch bar". In dem Fall haengt es den Namen des chroots an, sofern er gesetzt ist.
PS1 ist der "Standard-Prompt", der normalerweise auf $ oder # endet:
Gruss Cae
PS1 ist der "Standard-Prompt", der normalerweise auf $ oder # endet:
user@host:/path$ ist ein sehr typischer Prompt fuer Shells und wird ueber Escape-Sequenzen in der Variablen $PS1 zusammengesetzt.man 1 dash hat geschrieben:Code: Alles auswählen
PS1 The primary prompt string, which defaults to “$ ”, unless you are the superuser, in which case it defaults to “# ”.
Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier
Re: Was bedeutet:PS1=’${debian_chroot:+($debian_chroot)}
Hallo CaeCae hat geschrieben:${foo:+bar} heisst "wenn $foo nicht leer ist, ersetze den Ausdruck durch bar". In dem Fall haengt es den Namen des chroots an, sofern er gesetzt ist.
Gruss Cae
Danke für die Antwort. )
Tschau
Hermann