ruby - word boundaries in irb -


i'm using terminal on snow leopard.

at command line, if i've typed foo.bar.baz.bang.quuz.quux, when tap option-b, moves cursor backward word word -- stopping @ every period, because considers period word boundary. likewise, option-f moves forward word word.

in irb (0.9.5, ruby 1.8.7), option-b , -f have behavior, period no longer treated word boundary, makes these keyboard shortcuts less useful.

how can change this?

edit: curiouser , curiouser: on ec2 instance has same irb , ruby versions, period is treated word boundary.

could of relevance here?
http://jorgebernal.info/2009/11/18/fixing-snow-leopard-ruby-readline/

in case make sure option-b/f bound forward , backward-word in inputrc files, john pointed out.

also word boundaries determined locale (see "locale" command), , more lc_ctype (character classification). don't think that's problem here, might want check out , compare locale settings in case.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -