Re: RFS: sn - Small NNTP server for leaf sites
On Thu, Aug 28, 2003 at 02:13:44PM +0530, Ganesan R wrote:
> >>>>> "Andreas" == Andreas Metzler <ametzler@logic.univie.ac.at> writes:
> > I am rather fluent in sh, but need to look up "shopt -s xpg_echo". This
> > is tooo ugly. Just use
> > - echo -e ",s/RUNFROM=.*/RUNFROM=$RET/\nw" \
> > + printf ",s/RUNFROM=.*/RUNFROM=$RET/\nw\n" \
> > or grab the patch from the bts and use sed instead of ed (you'll need to
> > depend on sed >=3.95).
>
> Or simply remove the -e option. builtin echo parses "\n" in bash as well as
> dash.
That isn't mandated by POSIX, though, and there are shells in Debian
that don't do that. I agree with Andreas: use printf instead.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: