Re: $(case x in x)...

2006-01-02 Thread Eric Blake
> Eric> $ k=$(case x in (x) :; esac) > Huh, they only taught us ) in school. > Is () since Bell Labs days too? POSIX requires shells to support case x in (x), but older bourne shells do not support this newer syntax. That is probably why you were not taught it; if I understand correctly, it was i

prompt miscalculations seen more often in 3.1.0?

2006-01-02 Thread Dan Jacobson
Prompt miscalculations seems to happen slightly more in 3.1.0? Live with this below script for a few days and often using ^R, ^A, combined with inserting characters etc. and you too should see how often bash miscalculates where things are on the screen. It's hard to describe, so no precise examples