bug-textutils
[Top][All Lists]
Advanced

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

Re: textutils 2.[01]: "fmt --prefix=TAB" doesn't work


From: Bob Proulx
Subject: Re: textutils 2.[01]: "fmt --prefix=TAB" doesn't work
Date: Sun, 30 Mar 2003 21:45:07 -0700
User-agent: Mutt/1.3.28i

Haakon Riiser wrote:
> >> Steps to reproduce:
> >> 
> >>   $ fmt --prefix=TAB <<EOF
> >>   TABfoo
> >>   TABbar
> >>   EOF
> > Thanks for that very nicely crafted example.        But I can't
> > reproduce the problem using either the older fmt from textutils
> > or the fmt from the newest coreutils.  It works for me.
> 
> It's almost insulting to suggest this, but are you sure you
> entered the TABs correctly?

You have offended my honor!  It shall be rapiers at dawn.  Chuckle,
chuckle.

Well, I certainly was able to type in T, A, B, just as in your example
and in my counter example.  I actually used cut-n-paste.  But I did
not try to introduce a decimal 9 character in the ascii charset.  Your
example after all did not seem to be talking about that.  I just took
your example at face value.  :-)

> For example, one could easily be confused by trying something like
> this:
>   --prefix=`printf '\t'`

Yes, a common topic of discussion.  Here are the two common ways of
creating ascii tabs on the comand line.  The first is maximally
portable back to very old systems and are preferred by some on the
list.  The second is my preferred method on modern systems.

  TAB=`awk 'BEGIN{printf "\t";}'`
  TAB=$(printf "\t")

Since Jim provided more detail I will just bow out at this point.

Bob




reply via email to

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