xterm / bash weirdness?
September 21, 2011 2:24 PM Subscribe
Weird Unix terminal issue where yer trying to up arrow through bash history and it looks messed up, right?
posted by xmutex to Computers & Internet (11 answers total) 4 users marked this as a favorite
I don't know how to explain it. You open your Terminal app, and you do a really long command. Then you up arrow to repeat it but it doesn't.. uh.. display properly? Like, original command:
host> psql -h mydatabasehost -U myusername mydatabase -f somedamnfile.sql
Then you up arrow and you see
host> psqlpsql -h mydatabasehost -U myusername mydatabase -f somedamnfile.sql
Then you hit CTRL A to go to the beginning of the line and it goes to right after "host> psql".
Why? Am I making any sense? Is it an xterm thing? Is there a way to fix it? This has always bothered me, and my inability to properly describe it (as you see) has kept me from asking about it.