vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I have HP-UX system. I am not able to get previous run command using upper arrow key. My default TERM is ansi. Event after exporting TERM to vt100 its not working. So we have retype the command everytime. Also tab completion is not working. How to resolve this problem. regards, Shashank |
| |||
| Shashank wrote: > I am not able to get previous run command using upper arrow key. > [...] > Also tab completion is not working. Probably the shell that you are using doesn't support command history and/or filename completion. Try typing "echo $SHELL" and post the output here. Alex. |
| |||
| It prints: $ echo $SHELL /bin/sh regards, Shashank Alex van Denzel wrote: > Shashank wrote: > > I am not able to get previous run command using upper arrow key. > > [...] > > Also tab completion is not working. > > Probably the shell that you are using doesn't support command history > and/or filename completion. > > Try typing "echo $SHELL" and post the output here. > > Alex. |
| |||
| Shashank <shashank@icmgworld.com> wrote: >It prints: > >$ echo $SHELL >/bin/sh > >regards, >Shashank > >Alex van Denzel wrote: > >> Shashank wrote: >> > I am not able to get previous run command using upper arrow key. >> > [...] >> > Also tab completion is not working. >> >> Probably the shell that you are using doesn't support command history >> and/or filename completion. >> >> Try typing "echo $SHELL" and post the output here. >> >> Alex. Try set -o vi then "<esc>-" should give the previous command. Ted. ================================================== ============ | Ted Linnell <edlinnell@acslink.net.au> | | | | Nunawading, Victoria , Australia | ================================================== ============ |
| |||
| >>Try >>set -o vi >> >>then "<esc>-" should give the previous command. if you're too lazy to press esc everytime, these commands also should do the trick set -o emacs alias -x __A=$(print '\020') alias -x __B=$(print '\016') alias -x __D=$(print '\002') alias -x __C=$(print '\006') br, Ivars |
| |||
| Ah.. its working.Thanks a lot. We were really getting in hard working each time working. Where will I get explanation of this command. regards, Shashank Ted Linnell wrote: > Shashank <shashank@icmgworld.com> wrote: > > >It prints: > > > >$ echo $SHELL > >/bin/sh > > > >regards, > >Shashank > > > >Alex van Denzel wrote: > > > >> Shashank wrote: > >> > I am not able to get previous run command using upper arrow key. > >> > [...] > >> > Also tab completion is not working. > >> > >> Probably the shell that you are using doesn't support command history > >> and/or filename completion. > >> > >> Try typing "echo $SHELL" and post the output here. > >> > >> Alex. > Try > set -o vi > > then "<esc>-" should give the previous command. > > Ted. > ================================================== ============ > | Ted Linnell <edlinnell@acslink.net.au> | > | | > | Nunawading, Victoria , Australia | > ================================================== ============ |
| |||
| Shashank <shashank@icmgworld.com> wrote: >Ah.. its working.Thanks a lot. We were really getting in hard working each >time working. > >Where will I get explanation of this command. > >regards, >Shashank > man sh or man ksh. Basically set -o vi is setting a shell option to use vi as the command line editor. Ted. ================================================== ============ | Ted Linnell <edlinnell@acslink.net.au> | | | | Nunawading, Victoria , Australia | ================================================== ============ |
| |||
| But tab command is still not working. Ivars Strazdins wrote: > >>Try > >>set -o vi > >> > >>then "<esc>-" should give the previous command. > > if you're too lazy to press esc everytime, these commands also should do > the trick > > set -o emacs > alias -x __A=$(print '\020') > alias -x __B=$(print '\016') > alias -x __D=$(print '\002') > alias -x __C=$(print '\006') > > br, > Ivars |
| ||||
| Autocompletion works on using Esc Esc or Esc \ regards, Shashank Shashank wrote: > But tab command is still not working. > > Ivars Strazdins wrote: > > > >>Try > > >>set -o vi > > >> > > >>then "<esc>-" should give the previous command. > > > > if you're too lazy to press esc everytime, these commands also should do > > the trick > > > > set -o emacs > > alias -x __A=$(print '\020') > > alias -x __B=$(print '\016') > > alias -x __D=$(print '\002') > > alias -x __C=$(print '\006') > > > > br, > > Ivars |