[Devel] rc file naming inconsistency
Juha Heinanen
jh at tutpro.com
Mon Jul 10 22:52:54 CEST 2006
sorry to notice so late, but naming of rc files is inconsistent. in
openserctl we have:
### include resource files, if any
if [ -f /usr/local/etc/openser/openserctlrc ]; then
. /usr/local/etc/openser/openserctlrc
fi
if [ -f ~/.openserctlrc ]; then
. ~/.openserctlrc
fi
and in mysqldb.sh:
# include resource files, if any
if [ -f /etc/openser/.opensermysqlrc ]; then
. /etc/openser/.opensermysqlrc
fi
if [ -f /usr/local/etc/openser/.opensermysqlrc ]; then
. /usr/local/etc/openser/.opensermysqlrc
fi
if [ -f ~/.opensermysqlrc ]; then
. ~/.opensermysqlrc
fi
openserctl should also search rc file from /etc/openser directory and
.opensermysqlrc should be without leading . char.
-- juha
More information about the Devel
mailing list