Das Tastaturgeklapper von David Haller, am 06/27/2007 02:19 AM lautete:
Wer lesen kann ist klar im Vorteil:
==== man bash ==== When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, [..] When invoked as an interactive shell with the name sh, bash looks for the variable ENV, expands its value if it is defined, and uses the expanded value as the name of a file to read and exe cute. Since a shell invoked as sh does not attempt to read and execute commands from any other startup files, the --rcfile option has no effect. A non-interactive shell invoked with the name sh does not attempt to read any other startup files. When invoked as sh, bash enters posix mode after the startup files are read. ====
Ein Shellscript ist _nicht_ interaktiv...
Und was steht in der ersten Zeile des Scriptes? Und welche Shell ist "/bin/sh"? Und Unix wird das normal keine Bash sein.
Achso, sinngemäß sollte obiges auch in Übersetzungen stehen.
Du könntest im Script die Alias-Datei sourcen.
==== #!/bin/bash . ~/.alias ====
HTH, -dnh
ich habe es jetzt dann doch mal eher so gelöst: ========================================================= #!/bin/bash shopt -s expand_aliases # Must set this option, else script will not expand aliases. ... ========================================================= Gruß Steffen -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org