[Top][All Lists]

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

pr --columns=2 -t -n.2 misalign Linux

From: Burke Cabaniss
Subject: pr --columns=2 -t -n.2 misalign Linux
Date: Wed, 28 Mar 2007 14:50:38 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Fedora/1.7.6-1.2.5

Situation: 21 item input file of text lines, no symbols or spaces, no $IFS except standard line separator at end, no lines over about 20 characters. Version of `pr` is 5.2.1

Results: right side column misalign sometimes (see when below). In these cases there is only a tab separator between the columns.

When: problem exists on some terminal sessions and not others, i.e. tty1, etc. but not tty2, etc. A session that fails is consistent, as is one that doesn't. Proved this by running same exact job from all tty's at the same time.

Clue: can be "fixed" by logoff/logon of a terminal session, and after problem 
starts it is consistent.

Analysis: (1) matched environment variables (from `set`) for "good" and "bad" sessions, $TERM is only difference, (2) `type` identifies same `pr` program, (3) cannot find "pr align" in your bug reports.

Thoughts: it is as if running some print option such as -W sets a permanent option flag (something) that is identified by terminal but is not an environment variable output by `set`.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]