GNU bug report logs - #23268
sort ant uniq bug report

Previous Next

Package: coreutils;

Reported by: 126 <cool_navy <at> 126.com>

Date: Mon, 11 Apr 2016 15:32:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: 126 <cool_navy <at> 126.com>
To: 23268 <at> debbugs.gnu.org
Subject: bug#23268: sort ant uniq bug report 
Date: Mon, 11 Apr 2016 18:49:44 +0800
[Message part 1 (text/plain, inline)]
hello, Gentleman
when I use sort and uniq, and input like this below, I got wrong output:

$ echo "src/scenelayer/actSceneTipLayer.lua
> src/table/checkpoint/checkPointInfo5000.lua
> src/table/checkpoint/checkPointInfo5000.lua 
> src/table/fightscenecheckpoint.lua
> src/scenelayer/actSceneTipLayer.lua
> src/table/checkpoint/checkPointInfo5000.lua
> src/table/checkpoint/checkPointInfo5000.lua 
> src/table/fightscenecheckpoint.lua
> "|sort -u

src/scenelayer/actSceneTipLayer.lua
src/table/checkpoint/checkPointInfo5000.lua
src/table/checkpoint/checkPointInfo5000.lua 
src/table/fightscenecheckpoint.lua

no result when I use `uniq -u`
$ echo "src/scenelayer/actSceneTipLayer.lua
src/table/checkpoint/checkPointInfo5000.lua
src/table/checkpoint/checkPointInfo5000.lua 
src/table/fightscenecheckpoint.lua
src/scenelayer/actSceneTipLayer.lua
src/table/checkpoint/checkPointInfo5000.lua
src/table/checkpoint/checkPointInfo5000.lua 
src/table/fightscenecheckpoint.lua
"|sort| uniq -u


It appear the same on CentOS, Cygwin , and Mac OS X
I wonder whether it's my own mistake or the program goes wrong.
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.