Re: unexpand

Soeren M Soerries <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
Hello Bob,

thank your for the quick answer and the test example.

[email protected] (Bob Proulx) schreibt:
> Soeren M Soerries <[email protected]> [2002-07-30 10:36:40 +0200]:
> > "unexpand -t8" works fine. That's supposed to be the
> > default, but without the "-t" switch it doesn't work
> > at all. Funny, isn't it?

> Thanks for your report.  But I am unable to recreate your problem.
> See the included test cases.  What do these commands do for you?

>   type unexpand
>   unexpand is /usr/bin/unexpand
>   echo "        " | unexpand | od -c
>   0000000  \t  \n
>   echo "        " | env -i unexpand | od -c
>   0000000  \t  \n

they work, just the same. So it seems unexpand is ok?
Try another one. My /etc/fstab holds tab-separated
values.

expand /etc/fstab > fstab.out # now spaces.
# (ok)

unexpand fstab.out > fstab.out.unexpd # still spaces :(
# bug.

unexpand -t8 fstab.out > fstab.out.unexpd # tabs again!
# (ok)

Cheers, Sören

> > user1@muenchen7:~> unexpand --version
> > unexpand (GNU textutils) 2.0.10
> > Geschrieben von David MacKenzie.
> > 
> > Copyright (C) 2000 Free Software Foundation, Inc.
> > [...]
-- 
Sören M Sörries http://Spuk.de/s/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.