Re: unexpand

[email protected] (Bob Proulx)
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
Soeren M Soerries <[email protected]> [2002-07-31 09:53:45 +0200]:
> > 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?

It would seem to me that unexpand is okay.

> 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)

You will have to help us out here.  We can't see into your system.
What is the content of your /etc/fstab file?  Is it possible to
provide one line out of your file that illustrates how this does not
work?  Perhaps pipe that one line through od -c so that we know for
sure what and where the whitespace is?  (Mailers have been notoriously
broken without regards to whitespace and I fear it won't survive a
mailing correctly.)

Bob
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.