tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: rc.d/network
On Thu, 18 Sep 2008, Joerg Sonnenberger wrote:
> On Thu, Sep 18, 2008 at 07:23:06PM +0200, Alan Barrett wrote:
> > + if [ -n "$argslist" ]; then
> > + printf "%s\n" "$argslist" | tr ';' '\n'
> > + else
> > + cat /etc/ifconfig.$int
> > + fi | \
>
> While printf is a shell builtin, tr is not. It is not even in root.
Thanks. That's easy to fix using shell builtins:
if [ -n "$argslist" ]; then
IFS=';' eval set -- \$argslist
for args in "$@"; do
echo "$args"
done
else
cat /etc/ifconfig.$int
fi | \
Any other issues, and does this look useful enough to commit?
--apb (Alan Barrett)
Home |
Main Index |
Thread Index |
Old Index