Changes between Version 2 and Version 3 of Ticket #2594, comment 2


Ignore:
Timestamp:
08/18/11 12:41:05 (13 years ago)
Author:
slavazanko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2594, comment 2

    v2 v3  
    11This happens after #81. 
    22 
    3 Main think of #81 is remember position of first '..' (two dots) in ls output, then apply this position to names of other files in directory. For example: 
     3Main think of #81 is: remember position of first '..' (two dots directory) in 'ls'command output, then apply this position to names of other files in directory. For example: 
    44{{{ 
    55-rwxr-xr-x    1 0        0            4096 Mar 02 16:30 .. 
     
    1010}}} 
    1111 
    12 in ths case before #81 we got 'file3.ext' (because string was split by spaces), after #81 filename is '  file3.ext' and this correct. 
    13 But if output didn't formatted correctly and columns positions not equal between lines of 'ls' output we'll have troubles. For expample: 
     12in ths case before #81 we got 'file3.ext' (because string was split by spaces), after #81 filename is '  file3.ext' (with two leading spaces) and it's correct. 
     13 
     14But if output didn't formatted correctly and columns positions not equal between lines of 'ls' output we'll have troubles with file names. For expample: 
    1415 
    1516{{{ 
     
    2526}}} 
    2627 
    27 I don't know how resolve this issue, may be, need calculate number of spaces between 'time' field and 'two dots' directory name, then calculating needed number of spaces in another filenames in 'ls' command output... Is this right way? 
     28I don't know how resolve this issue, may be, need to calculate number of spaces between 'time' field and 'two dots' directory name, then calculating needed number of spaces in another filenames in 'ls' command output... Is this right way?