Hi Eric,

        That explained it, thanks a lot for your help!


Best,
Manhong
On Thu, 2010-05-27 at 16:52 -0600, Eric Blake wrote:
> On 05/27/2010 02:30 PM, daimh wrote:
> > Hi,
> > 
> >     
> >     echo -e "3\n\n0"|sort -un
> 
> 'echo -e' is inherently non-portable; you should get in the habit of
> using printf(1) instead.
> 
> > 
> > 
> >     0 is missing from output, is this a possible bug?
> 
> Thanks for the report.  However, I don't think it is a bug.  The empty
> line, when forced to take on a numeric value, is equivalent to 0.  And
> since you specified unique entries only, sort only printed the empty
> line (the first of the two matching lines that it encountered).
> 



Reply via email to