From: Michal Suchanek Date: 2009-04-04T03:06:35+09:00 Subject: Re: ri is suddenly empty 2009/4/3 matt neuburg : > Fernando Perez wrote: > >> Hi, >> >> I don't understand what happened: today I wanted to look up for: ri >> Array#unshift, and it had nothing: >> >> Enter the method name you want to look up. >> You can use tab to autocomplete. >> Enter a blank line to exit. >> >> >> >> >> >> I tried other classes, and now I always get this error message. How to >> fix that? > > Oooh, oooh, call on me teacher, call on me, I know I know. It's because > you've defined an alias of "ri"; it now stands for "ri -i". When "ri" > stands for "ri -i", it ignores the argument that follows. Instead, it > presents the ">>" prompt, and *now* you can type the name of what you > want to look up. So: Then take it one step further: have it examine the command line, use the arguments if any, and enter the interactive mode if none are present ;-) Thanks Michal