This issue is still present on fedora 9 at least, which you can confirm with this command:
printf " \tif\n" | expand --initial -t4 | grep -qF "$(printf '\t')" && echo buggy So it's worth adding a test I think. cheers, Pádraig.
>From b36ea40fc24c6d3aca6094de90657e067fa80ff6 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?P=C3=A1draig=20Brady?= <[EMAIL PROTECTED]> Date: Thu, 10 Jul 2008 09:36:49 +0100 Subject: [PATCH] Add expand test for lines starting with both spaces and tabs. The expand released in current distributions (Fedora Core 4 - Fedora 9 at least), doesn't expand --initial tabs if spaces are present. tests/misc/expand: Add test to verify --initial works correctly with lines starting with both spaces and tabs. --- tests/misc/expand | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tests/misc/expand b/tests/misc/expand index b386737..468fdee 100755 --- a/tests/misc/expand +++ b/tests/misc/expand @@ -28,6 +28,7 @@ my @Tests = ['t1', '--tabs=3', {IN=>"a\tb"}, {OUT=>"a b"}], ['t2', '--tabs=3,6,9', {IN=>"a\tb\tc\td\te"}, {OUT=>"a b c d e"}], ['i1', '--tabs=3 -i', {IN=>"\ta\tb"}, {OUT=>" a\tb"}], + ['i2', '--tabs=3 -i', {IN=>" \ta\tb"}, {OUT=>" a\tb"}], ); my $save_temps = $ENV{DEBUG}; -- 1.5.3.6
_______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils