Debian ανωμαλίες

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Aug 5 17:52:05 EEST 2005


On 2005-08-05 17:32, Spiros Bolis <sbolis at freemail.gr> wrote:
> On Fri, 5 Aug 2005, Michael Iatrou wrote:
> > Ξέρει κανείς γιατί σε όλο τον υπόλοιπο κόσμο το:
> >
> > 	$ echo -e "a\nB" | sort -d
> >
> > επιστρέφει:
> >
> > B
> > a

To opoio einai swsto.  Des parakatw.

> > ενώ στο Debian:
> >
> > a
> > B
>
> emena (Debian unstable) pantws moy epistrefei allo se tcsh
>
> sbolis at playschool:~ > echo -e "a\nB" | sort -d
> B
> -e a

Sto tcsh yparxei builtin echo command, h opoia den anagnorizei to option -e,
opote gi auto blepeis ayto pou blepeis se tcsh.  Epishs to tcsh einai elafrws
gay ston tropo pou xeirizetai ta backslash sto command line, afou kanei escape
kai interpret kai ta strings pou einai quoted me '...' quotes.

http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Mporei na m' aresei to BSD, mporei na sumfwnw pws einai ilithio na allazeis to
shell tou root se kati pou den einai sto /bin se FreeBSD, mporei ena swro
pragmata, alla to csh kai to tcsh tompairnoun panhgyrika.

> kai allo se bash
>
> sbolis at playschool:~$ echo -e "a\nB" | sort -d
> B
> a

Ayto den einai lathos.  To sort(1) katalabainei to dictionary order swsta,
alla 8ewrei pws ta kefalaia apo ta mikra exoun diaforetiko COLLATE order,
symfwna me to trexon locale.  Etsi ola ta kefalaia exoun mikrotero "sort
order" apo to 'a'.  Me thn parametro -i omws to sort ginetai kai case
insensitive, opote tha deis ayto pou mallon perimene o Mixalhs:

	bash$ ( echo B ; echo a ) | sort -di
	a
	B
	bash$

- Giorgos




More information about the Linux-greek-users mailing list