bug-global
[Top][All Lists]
Advanced

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

Re: global feature request: allow blanks in filenames


From: Shigio Yamaguchi
Subject: Re: global feature request: allow blanks in filenames
Date: Tue, 16 Jan 2001 13:59:39 +0900

> I think this would do it for keys 1,3, but not for key 2
> (linenum).  Assumes all filenames wrapped by '"'.  I
> 
>     $ sort -t '"' -k 1,1 -k 2,2

We cannot assume all filenames wrapped by '"'.

> But if the input could be changed to look like this:
> 
>       (1)     (2)             (3)
>       +----------------------------------------------------------
>       |main^   32^             ./src/m in.c^      main(argc, argv)
>       |main^    22^            ./a b/f u n c.c^   main(argc, argv)
>       |func^     5^            ./abc/func.c^      func()
>       |func2^   10^            ./abc/func.c^      func2()
> 
> then this command should do it:
> 
>     $ sort -b -t '^' -k 1,1 -k 3,3 -k 2,2n
> 
> The '^' is field separator.  '-b' says to ignore *leading* blanks
> (left in for readability, but could be removed).

Introducing new separator also create another new bad character
which cannot be used in file names.
Hmm..., it is difficult.

Sorry but please select 1 or 2:

1. exclude blanks from your file names.
2. give up to use global.

I have a policy that GLOBAL should be 80% complete.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)



reply via email to

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