Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Possible 'sort' bug [SOLVED - NOTABUG]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 770
Location: KUUSANKOSKI, Finland

PostPosted: Mon Jun 19, 2017 6:09 pm    Post subject: Possible 'sort' bug [SOLVED - NOTABUG] Reply with quote

cli:
find /path -type f -print0 | sort -R --files0-from=-
... and sort starts to eat memory quite fast.
cli:
find /path -type f | sort -R
... still works fine.
My coreutils is at 8.27.

Can anyone else reproduce this?
_________________
..: Zucca :..

bash/zsh:
beep $(gunzip -ck <(base64 -d <<< "H4sIAAAAAAACA5VPNQEDAQy0EgGlcGKoS8H/+My8Ht/9DaYJ9y+IveD+hxLwkApgqYFBQTwDEDsg4tUoNi0aPgGWtRlxtRZf4oNiyCAefVlm7FuQMfZ7l2daYFBIznpdXlv/C+jpLQeEAQAA"))


Last edited by Zucca on Mon Jun 19, 2017 9:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 5703
Location: almost Mile High in the USA

PostPosted: Mon Jun 19, 2017 9:06 pm    Post subject: Reply with quote

How many files and how big files are we talking about?

sort -R

is a lot different in behavior than

sort -R --files0-from=-
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 770
Location: KUUSANKOSKI, Finland

PostPosted: Mon Jun 19, 2017 9:53 pm    Post subject: Reply with quote

eccerr0r wrote:
How many files and how big files are we talking about?

sort -R

is a lot different in behavior than

sort -R --files0-from=-
D'oh!
I made a mistake. :P I needed to use -z instead of --files0-from=-

So something like this
Code:
find /path -type f -print0 | sort -Rz
and it works as expected or course. :)

Marking as NOTABUG.
_________________
..: Zucca :..

bash/zsh:
beep $(gunzip -ck <(base64 -d <<< "H4sIAAAAAAACA5VPNQEDAQy0EgGlcGKoS8H/+My8Ht/9DaYJ9y+IveD+hxLwkApgqYFBQTwDEDsg4tUoNi0aPgGWtRlxtRZf4oNiyCAefVlm7FuQMfZ7l2daYFBIznpdXlv/C+jpLQeEAQAA"))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum