I prefer to do my
sh commands in shorthand, And I prefer to be in POSIX. Truthfully, if the script can run on Dash, that is good enough. Which means using the test command
[, not the extended
I have an example from an autostart script, which I'm not sure about.
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then eval `dbus-launch --sh-syntax --exit-with-session` fi
So my guess is that if
$DBUS_SESSION_BUS_ADDRESS is empty, then do the
How do I write this in shorthand? I appreciate any help on this subject.