Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-29-2012, 04:58 PM   #1
LQ Newbie
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Tab spacing issues

I should know the answer to this but can't for the life of me figure it out.

I am moving all of my users and applications to a new SuSE SLES server.

When I set up the old server I had set up several of the users so the column spacing of reports they generated via bash and ksh scripts was narrower than default. (4 vs 8 characters). I can not remember how I did that. I have compared the /etc/profile, ~/.bash_profile, ~/.bashrc, ~/.bashrc. ~/.bash_login, ~/.profile between the old and new systems and I can not remember or find what I had done. The change was login specific.

Any advice would be greatly appreciated.
Old 11-29-2012, 05:19 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Welcome to the evil world of tabs. It is likely that some tool, possibly an editor, was configured to display tabs with 8-column spacing. As you see now, that portrayal is application-specific, and not universal in any sense, as you probably thought; a good reason to not use them, IMHO.
--- rod.
Old 11-30-2012, 11:46 AM   #3
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,834

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Yes, the width of a tab character is not fixed, but is dynamically determined by the program that's displaying it. The program's tab width setting, the font used, and the amount of text that appears before it all affect the final positioning.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] spacing athrin Linux - Newbie 12 04-07-2011 12:24 AM
[SOLVED] spacing henrtm05 Linux - Newbie 10 10-01-2010 07:19 PM
ff issues: "customize" won't work & tab sidebar?? paddy Linux - Software 2 11-19-2006 05:09 PM
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 03:06 PM
Redirecting output of tab tab benjaminrtz Linux - General 1 04-28-2003 11:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration