🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #46175

Re: [slrn] Saving new/unread articles?

#46175
From: Hrvoje Niksic
Date: Sun, 31 Jan 1999 00:00
34 lines
2328 bytes
to...@myspleen.kos.net (tony summerfelt) writes:

> > >it gets all the files that are numeric only (ie. the articles) and sorts
> > >those numerically
> > 
> >    I am skeptical about this. 
> >    Isn't grep passing a list of strings
> 
> the /\d+/  matches only filenames with one or more digits.

Yes, but they will still be sorted alphabetically.  For instance, 100
will come out "greater" than 5.

> > strings to be sorted alphabetically and not numerically?  
> 
> i just wanted the list of articles, and figured that sorting them
> would be done numerically. is there a need to sort them
> alphabetecally?

You misunderstood David's question.

David: Aren't the strings sorted alphabetically here?

You:   No, they are sorted numerically.

David: That's a weird way for "sort" to behave; what if I *wanted* an
       alphabetical sort?

You:   Why would you want that?

The correct answer is above: no, sort will not sort them numerically
by default.  This has been pointed out by others, too.
Technical Details
Message-ID: <8790ekruhs.fsf@pc-hrvoje.srce.hr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <CBdq2.114$yk7.461@news.get2net.dk> <36aaa085.0@news.kosone.com> <RONq2.59$sG5.292@news.get2net.dk> <36ae8466.0@news.kosone.com> <slrn7atdac.iie.davis@aluche.mit.edu> <36b23651.0@news.kosone.com> <slrn7b4hkg.sse.davis@aluche.mit.edu> <36b38c8d.0@news.kosone.com>

Show Full Headers
Complete Article Headers
Message-ID: <8790ekruhs.fsf@pc-hrvoje.srce.hr>
Subject: Re: [slrn] Saving new/unread articles?
Date: Sun, 31 Jan 1999 00:00:00 +0000
From: Hrvoje Niksic <hni...@srce.hr>
References: <CBdq2.114$yk7.461@news.get2net.dk> <36aaa085.0@news.kosone.com> <RONq2.59$sG5.292@news.get2net.dk> <36ae8466.0@news.kosone.com> <slrn7atdac.iie.davis@aluche.mit.edu> <36b23651.0@news.kosone.com> <slrn7b4hkg.sse.davis@aluche.mit.edu> <36b38c8d.0@news.kosone.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 438900335
Mail-Copies-To: never
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: ne...@news.carnet.hr
X-Trace: bagan.srce.hr 917753312 24789 161.53.2.132 (31 Jan 1999 03:28:32 GMT)
X-Face: &{dT~)Pu6V<0y?>3p$;@vh\`C7xB~A0T-J%Og)J,@-1%q6Q+, gs<-9M#&`I8cJp2b1{vPE|~+JE+gx;a7%BG{}nY^ehK1"q#rG O,Rn1A_Cy%t]V=Brv7h<L@)<XGh#XroV6xQg$VA8K
Organization: SRCE Zagreb, Croatia
X-Attribution: Hrvoje
User-Agent: Gnus/5.070072 (Pterodactyl Gnus v0.72) XEmacs/21.2(beta8) (Artemis)
Mime-Version: 1.0
NNTP-Posting-Date: 31 Jan 1999 03:28:32 GMT
Newsgroups: news.software.readers,alt.lang.s-lang