Re: Bug in expand command.

2003-07-07 Thread Paul Eggert
[EMAIL PROTECTED] writes:

 Yes, I knew that the space was actually there.
 
 If you use the very first line of hints.txt file, as if you had a
 column ruleguide, you may notice that the output (expand-
 bug.txt)  never show the start of the sentence below the
 first five of the ruleguide.

Sorry, I don't follow.
http://mail.gnu.org/archive/html/bug-coreutils/2003-07/msg00012.html
contains this:

 [EMAIL PROTECTED] tmp]# expand -t1 hints.txt | cut -b1-9
 012345678
 1.  To co
 2.  The M
 3.  After
 4.  The s
 5.  To re
 6.  Refer

and this shows the start of the 6th sentence.  expand -t2 also
shows the start of the 6th sentence.  So I still don't see the bug.


___
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils


Re: Bug in expand command.

2003-07-05 Thread Paul Eggert
That doesn't look like a bug to me.  For example, the first line
of hints.txt contains

1 . SPACE TAB T

so there are three columns before the tab, which means that expand -t1
and expand -t2 should behave the same.  Perhaps you didn't notice the
SPACE?


___
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils


Bug in expand command.

2003-07-04 Thread fzottola
This is related to the expand comand's behaviour when you use it to
change tab
to spaces, and specifying two spaces per tab.

The point is, the spaces inserted for a 2 spaces/tab command are
actually the same as having specified 1 space/tab. And the difference is
observed when you specify 3 spaces/tab command, that expand performs right.

Comands issued to see the bug:

expand -t1 hints.txt | cut -b1-9
expand -t2 hints.txt | cut -b1-9
expand -t3 hints.txt | cut -b1-9

Attached are the files for testing the bug: hints.txt is a plain text
file, and expand-bug.txt is
a comand line record, so you can see what I saw.

I am using kernel 2.4.8-20 on a RH9.0 AMD K6/2 box.

Thanks for all.

Felipe Zottola Diz.
Spain.



012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
1.  To configure Real-Time Windows Target you must type 'rtwintgt -setup' in a 
MATLAB command window
2.  The MATLAB Web Server has been installed on your system as a  Windows NT 
service.
3.  After installation, you must reboot your system to start it.
4.  The service starts automatically at system boot.
5.  To remove it, uninstall the product.
6.  Refer to the documentation for more information.

;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.

[EMAIL PROTECTED] tmp]# cat hints.txt
012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
1.  To configure Real-Time Windows Target you must type 'rtwintgt -setup' in a 
MATLAB command window
2.  The MATLAB Web Server has been installed on your system as a  Windows NT 
service.
3.  After installation, you must reboot your system to start it.
4.  The service starts automatically at system boot.
5.  To remove it, uninstall the product.
6.  Refer to the documentation for more information.
 
[EMAIL PROTECTED] tmp]# expand -t1 hints.txt | cut -b1-9
012345678
1.  To co
2.  The M
3.  After
4.  The s
5.  To re
6.  Refer
 
[EMAIL PROTECTED] tmp]# expand -t2 hints.txt | cut -b1-9
012345678
1.  To co
2.  The M
3.  After
4.  The s
5.  To re
6.  Refer
 
[EMAIL PROTECTED] tmp]# expand -t3 hints.txt | cut -b1-9
012345678
1.To
2.The
3.Aft
4.The
5.To
6.Ref
___
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils