[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] small improvements to the bashref.texi document
From: |
Roger |
Subject: |
Re: [patches] small improvements to the bashref.texi document |
Date: |
Sun, 11 Sep 2011 12:54:24 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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/