On Mon, Jan 24, 2011 at 05:28:13PM +0200, Teodor MICU wrote:
> Hi,

Hey

> 
> 2011/1/24 Julien Cristau <jcris...@debian.org>:
> >> 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.
> 
> Last time I checked I was testing several systems (not only on Debian)
> and I had some issues with "echo -n". Ever since I've replace it with
> 'printf' but you might be right that "echo -n" is working fine with
> dash too. I know for user that I'll stick to this convention since I
> don't have Debian on all hosts.

Well as far as I know Debian currently only supports /bin/bash and /bin/dash as
providers of /bin/sh so I guess it's currently safe to use echo -n in init
scripts.

> 
> Thanks
> 

Thanks for you input
Harald



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to