Hallo!
Was macht der Befehl source? Weiß das zufällig jemand? Es gibt leider keinen Manpage-Entry dafür!
Danke!
MfG rob
Hallo!
Was macht der Befehl source? Weiß das zufällig jemand? Es gibt leider keinen Manpage-Entry dafür!
Danke!
MfG rob
Es führt ein Shell-Skript in der aktuellen Shell aus anstatt einen child-Prozess mit einer neuen Shell zu starten.
¡Nuestro amigo... el Computador!
Hier (SuSE 10.0) liefert "man source"Du kannst ja mal "man 1 bashbuiltins" aufrufen. Oder "man -k bash".BASH_BUILTINS(1)
...
source filename [arguments]
Read and execute commands from filename in the current shell environment and return the exit status of the
last command executed from filename. If filename does not contain a slash, file names in PATH are used to
find the directory containing filename. The file searched for in PATH need not be executable. When bash
is not in posix mode, the current directory is searched if no file is found in PATH. If the sourcepath
option to the shopt builtin command is turned off, the PATH is not searched. If any arguments are sup-
plied, they become the positional parameters when filename is executed. Otherwise the positional parame-
ters are unchanged. The return status is the status of the last command exited within the script (0 if no
commands are executed), and false if filename is not found or cannot be read.
Kreol
Geändert von kreol (22.04.07 um 17:28 Uhr)
Beim posten von Dateien oder Ausgaben bitte [code]Text[/code] verwenden. Nähere Info über vB-Tags gibt es hier
I just want to know God's thoughts. The rest are details. (A. Einstein)
Bevor das hier wieder böses Blut gibt, weil auf irgendwelche - ggf. nicht vorhandenen ManPages verwiesen wird:
Hier (Debian Sarge, security.debian.org-tagesaktuell) findet er weder eine ManPage zu 'source' noch eine zu bashbuiltins in Sektion 1.
Mit 'man -k bash' findet man dann allerdings ein 'man builtins', wo auch source behandelt wird.
Mir kommt langsam der Gedanke, dass SuSE da mit den bashbuiltins ein eigenes Süppchen kocht...
RTFM you have to, young padawan.
Lesezeichen