Changes between Version 2 and Version 3 of Ticket #2594, comment 2
- Timestamp:
- 08/18/11 12:41:05 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2594, comment 2
v2 v3 1 1 This happens after #81. 2 2 3 Main think of #81 is remember position of first '..' (two dots) in lsoutput, then apply this position to names of other files in directory. For example:3 Main 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: 4 4 {{{ 5 5 -rwxr-xr-x 1 0 0 4096 Mar 02 16:30 .. … … 10 10 }}} 11 11 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: 12 in 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 14 But 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: 14 15 15 16 {{{ … … 25 26 }}} 26 27 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?28 I 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?