[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash doesn't display tabs for tabs -- ignores tabstops.
From: |
Linda Walsh |
Subject: |
Re: bash doesn't display tabs for tabs -- ignores tabstops. |
Date: |
Mon, 22 Apr 2013 16:12:15 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
Greg Wooledge wrote:
>
> Which means I typed <e> <c> <h> <o> <space> <'> <x> <Enter> <Ctrl-V>
> <Tab> <y> <Enter> <z> <'> <Enter> at the Bash prompt.
>
> Then I pressed <Esc> <k> <v> (I use vi editing mode also).
>
> Inside vi(m), I verified that the stuff in front of the y is an actual
> Tab character.
---
The problem is not that it replaces <tab> with space in the user-input,
but on the **display** of user-input on the output device.
literally, when I type cat of that file to my terminal
(when the terminal is set to tabstops every 2 spaces as one can
do with the script I sent initially). Each indent spaces over 2 space,
not 8.
When I re-edit in bash, it ***display** spaces for the tabs -- in the output
to the terminal. If it used the actual tab character, it would
indent the same as 'cat', but it doesn't
The second way you can show this behavior, is to display the re-edit line
in an xterm.
... actually an "xterm" will run that tab-set script just fine.. so it's a good
place to try the re-edit as well), but then you can see when...
Wait...here's another way
Set the tabs from the script in 1st email to "2" (give it a param of 2).
then type in:
> echo "
> 1
> 2 ## <<< this is 1 tab in bash during input
> 3"
1
2 ## <<< this is what an actual tab char
3 ## looks like -- every 2 cols.
- bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/21
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Greg Wooledge, 2013/04/22
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/22
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Greg Wooledge, 2013/04/22
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/22
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/22
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Greg Wooledge, 2013/04/22
- Re: bash doesn't display tabs for tabs -- ignores tabstops.,
Linda Walsh <=
- Message not available
- Message not available
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/24
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Greg Wooledge, 2013/04/25
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/26
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Chet Ramey, 2013/04/30
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/30
- Re: bash doesn't display tabs for tabs -- ignores tabstops., Linda Walsh, 2013/04/22