Subject: Re: strange tab printing problem
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-help
Date: 03/21/2006 18:16:53
In article <20060321164257.GA12110@moray.salmi.ch>,
Jukka Salmi  <j+nbsd@2006.salmi.ch> wrote:
>Hi,
>
>this is probably a bug somewhere in NetBSD, but since I have no idea
>where exactly it could be I post this message here...
>
>Running the attached script should print some dots, followed by a tab,
>followed by "XYZ". However, on the -current NetBSD/i386 system I'm
>currently using, the tab is not printed. Actually, it doesn't matter
>how many tabs I print before "XYZ" with that last printf statement -
>none of them is output.
>
>On a terminal window with 80 columns this looks as follows:
>
>$ ./tab.sh
>...............................................................................X
>YZ
>
>Note that the 'X' follows the last dot; there's no tab in between.
>
>In case this is not strange enough: if I use ssh(1) or telnet(1) to
>connect to the same host I'm already logged into, running the script
>suddenly works as expected:
>
>$ telnet moray
>[...]
>$ ./tab.sh
>............................................................................... 
>XYZ
>
>
>Hmm, any hints about what could be wrong?

What are your stty settings in the two cases, and in particular oxtabs?

christos