On Mon, Jan 24, 2011 at 17:09:10 +0200, Teodor MICU wrote: > Hi, > > 2011/1/24 Harald Jenny <har...@a-little-linux-box.at>: > >> 7) You should probably add "-q" for all these executions to avoid > >> unwanted strings during start/stop/restart. > >> "`echo $MILTERSOCKET | grep -v ^inet`" > > > > If MILTERSOCKET is checked to contain text too? > > Yes, it does cover the case where MILTERSOCKET contains something but > not if it is empty. For this I would recommend 'printf' since 'echo > -n' is not portable and not working with /bin/dash. > Eh, what?
Scripts may assume that `/bin/sh' implements the SUSv3 Shell Command Language[1] plus the following additional features not mandated by SUSv3:[2] * `echo -n', if implemented as a shell built-in, must not generate a newline. Works with dash afaict. Cheers, Julien
signature.asc
Description: Digital signature