tech-userlevel archive

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

jot: producing too much output?



jot -s "" - 32 126

Based on reading the manpage, I would expect that to produce a single
line 323334353637...124125126.  It does on my 1.4T.  On my 5.2,
ftp.n.o's 9.0_STABLE, and a work 9.1 machine, the line actually ends
...125126127128129130131.

Am I misunderstanding how the arguments work, or is this a bug?  Or
does it not do this for other people?

(The 1.4T jot has a different bug; jot -s "" -c - 32 126, or the same
thing with -c replaced with -w %c, produces a line

  !"#$%&'()*+,-./01223456789:;<=>?@ABCDEEFGHIJKLMNOPQRSTUVWXXYZ[\]^_`abcdefghijkklmnopqrstuvwxyz{|}}

containing what I would expect but with the first and last characters
duplicated.  Looking into that is what led me to discover the above
(mis?)behaviour without -c/-w.  5.2 and 9.1 jot with -c produce the
same sequence as without -c, as single bytes instead of decimal.)

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index