bug-coreutils
[Top][All Lists]
Advanced

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

Bug in "expand" command.


From: fzottola
Subject: Bug in "expand" command.
Date: Fri, 4 Jul 2003 13:22:42 +0200

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.

address@hidden 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.
 
address@hidden 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
 
address@hidden 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
 
address@hidden tmp]# expand -t3 hints.txt | cut -b1-9
012345678
1.    To
2.    The
3.    Aft
4.    The
5.    To
6.    Ref

reply via email to

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