While looking at the apache run script /etc/init.d/apache2 I realise something different in String Manipulating for Substring Extraction. For example:
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
or
if [ -n "${PIDTMP:-}" ] && kill -0 "${PIDTMP:-}" 2> /dev/null; then
The second one seems Use Default Values if PIDTMP is unset or null but I didn't find it logical in this one.
What is the use of minus sign (-) in each case? Brief explanation would be helpful.
Note:I am interested in minus signs only in braces and I already checked :-word .
 
     
    