Subject: Re: strange tab printing problem
To: Jukka Salmi <j+nbsd@2006.salmi.ch>
From: Johnny Billquist <bqt@update.uu.se>
List: netbsd-help
Date: 03/21/2006 19:08:12
Several questions pop into mind:
what terminal type have you set?
What is the window size?
What does stty -a say?

	Johnny


Jukka Salmi 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?
> 
> TIA, Jukka
> 

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: bqt@update.uu.se           ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol