NetBSD-Docs archive

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

Re: awk FS magic



On Fri, Feb 15, 2013 at 05:54:18PM -0500, James K. Lowden wrote:
> The -F option for awk is more clever than the manual says.  Do we want
> the behavior, or is the manual right?  
> 
> I noticed a working bug in a little script that led to this suprising
> result:
> 
>       $ echo foo | awk -F t '{print FS}' | hexdump -C
>       00000000  09 0a                                             |..|
>       00000002

I can not reproduce this on either -current or -6.
I would have guessed your script had a literal tab between -F and t, but
that would require unusal IFS settings as well.

Martin


Home | Main Index | Thread Index | Old Index