Frage zur Bash
Ralph Meyer
ralph at schosemail.de
Tue Oct 15 15:35:10 CEST 2013
Hallo Liste,
ich hätte eine kleine Frage zur Bash.
Gibt es einen Unterschied zwischen :
--------------------------------------
#!/bin/bash
if (rpm -q rsyslog &> /dev/null) ; then
echo bla
fi
--------------------------------------
und
--------------------------------------
#!/bin/bash
if rpm -q rsyslog &> /dev/null ; then
echo bla
fi
--------------------------------------
also einmal mit und einmal ohne Klammern.
Vielleicht kann mir das ja jemand verständlich erklären.
Vielen Dank
Ralph
More information about the Linux
mailing list