bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort does not use tab as delimiter


From: Eric Blake
Subject: Re: sort does not use tab as delimiter
Date: Mon, 11 Dec 2006 20:11:08 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to DI Oliver Maurhart on 12/11/2006 1:03 AM:
> 
> No. Actually the $'\t' works! It's pretty cool. I'm into Linux for
> several years now, but everyday you get surprised by such small goodies.
> Didn't know of that one.

Both bash and zsh support this extension, but yes, it is not specified by
POSIX.

> 
> On the other side, I wonder, if this is also available on other shells
> like csh, korn-shell or some XYZ-Shell.
> 
> So I still believe that sort should be capable of handling tabs on its
> own and not to depend on a user's shell feature to correctly pass on
> this literal.

Ctrl-V is pretty much the standard default in UNIX terminals for quoting
the next character typed, which means the sequence [ctrl-v] then [tab] is
almost universally accepted, regardless of whether you use bash, ksh, ash,
or even csh.  With ctrl-v, it is the terminal doing the quoting and not
your shell.  And if you don't like ctrl-v, then play with 'stty lnext'.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFfh3L84KuGfSFAYARAiV0AJ9M2niAPYvjZW/hNd48UOQe8PGVxgCeLr5d
kj0ZnfWcLlxzdjaGHmuVBrM=
=1JN4
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]