Looking for a fix for the problem in /etc/init.d/hostapd on Debian. However, I do not know what this line of code does and how it works.
[ -n "$DAEMON_CONF" ] || exit 0
In an online search for bash tutorials I never saw anyone do this
When I run the code, my shell window closes (because $ DAEMON_CONF is not configured for anything). If I change the code to
[ -n "not empty" ] || exit 0
my console window does not close.
therefore, -n evaluates to true and or'ed with output 0, what?
source
share