Hi Ben.

I'm currently reading the Bash manual on my Kindle EBook reader, now
half way through, and noticed the section "EXPANSION - Parameter
Expansion" was a little vague.  I couldn't understand the entire
section until I happened across fetchmail's init script.

Stuff I rarely seen or skipped over in the past?  Can see POSIX
compatibility is likely an issue here.


Could there be a few examples?  Such as fetchmail's /etc/init.d/fetchmail?

piddir=${pid_dir:-/var/run/fetchmail}

if [ ! -d ${piddir} ]; then
    checkpath -q -d -o fetchmail:fetchmail -m 0755 ${piddir} || return 1
fi


---
Roger
http://rogerx.freeshell.org/

Reply via email to