Why cygwin's history output is prefixed by two spaces?
Sophoklis Goumas
olspookishmagus@gmail.com
Tue Jul 30 10:35:26 GMT 2024
This comes from a cygwin installation:
~$ cygcheck -V | head -n1
cygcheck (cygwin) 3.5.3
~$ printf "%s\n" "$( bash --version | head -n1 )"
GNU bash, version 5.2.21(1)-release (x86_64-pc-cygwin)
~$ history | tail -n1 | od -a
0000000 sp sp sp 4 3 sp sp h i s t o r y sp |
0000020 sp t a i l sp - n 1 sp | sp o d sp -
0000040 a nl
0000042
And this is what I've compared it against:
$ printf "%s\n" "$( bash --version | head -n1 )"
GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
$ history | tail -n1 | od -a
0000000 sp 7 3 5 1 sp sp h i s t o r y sp |
0000020 sp t a i l sp - n 1 sp | sp o d sp -
0000040 a nl
0000042
Hypotheses/ideas/insights/explanations/conclusions?
Sophoklis
More information about the Cygwin
mailing list