[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#490605: debian-policy: please discourage the usage of echo -n, and echo in general



On Thu, Jun 04, 2009 at 10:16:06PM +0100, Adam D. Barratt wrote:
> > So printf is slightly unwiedly to use and it can create
> > format string attack.
> 
> It does, however, have the advantage of working if BAR contains "-E".
> (This isn't a contrived example, it's why I recently changed the parsing
> of DEBUILD_LINTIAN_OPTS to use printf rather than echo; if there's  a
> sane way of printing "-E" using echo I'd love to know what it is).

Not quite correct, but echo "" -E does print " -E"

   Julian



Reply to: