<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Command completion with tab using Posix shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869352#M98018</link>
    <description>Is there any way to change the command completion sequence from double escape to Tab in the Posix shell. This would make my combined Linux/HPUX admin much easier. I know this can be done using pdksh, but I do most of the work as the root user, and don't want to change its shell.</description>
    <pubDate>Mon, 23 Dec 2002 11:16:33 GMT</pubDate>
    <dc:creator>John Bray_1</dc:creator>
    <dc:date>2002-12-23T11:16:33Z</dc:date>
    <item>
      <title>Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869352#M98018</link>
      <description>Is there any way to change the command completion sequence from double escape to Tab in the Posix shell. This would make my combined Linux/HPUX admin much easier. I know this can be done using pdksh, but I do most of the work as the root user, and don't want to change its shell.</description>
      <pubDate>Mon, 23 Dec 2002 11:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869352#M98018</guid>
      <dc:creator>John Bray_1</dc:creator>
      <dc:date>2002-12-23T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869353#M98019</link>
      <description>You can just give like&lt;BR /&gt;&lt;BR /&gt;$EDITOR=vi&lt;BR /&gt;$export EDITOR&lt;BR /&gt;$set -o vi&lt;BR /&gt;&lt;BR /&gt;Try the command completion.&lt;BR /&gt;To make changes permanent put it inside .profile file of the user&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Mon, 23 Dec 2002 13:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869353#M98019</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-23T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869354#M98020</link>
      <description>I normally use set -o emacs, and changing it to set -o vi does not help&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Mon, 23 Dec 2002 14:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869354#M98020</guid>
      <dc:creator>John Bray_1</dc:creator>
      <dc:date>2002-12-23T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869355#M98021</link>
      <description>I think the tab command, path, hostname etc. completion is thanks to the READLINE library.&lt;BR /&gt;I don't know what HP-UX's equivalent is.&lt;BR /&gt;But I know that Bash is using it.&lt;BR /&gt;Bash also parses /etc/inputrc and $HOME/.inputrc where you have many additional bells and whistels.&lt;BR /&gt;If you're unhappy with Esc, Esc of HP-UX's sh-posix you can always get the sources of Bash from the FSF and build your custom shell from them.</description>
      <pubDate>Mon, 23 Dec 2002 15:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869355#M98021</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-12-23T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869356#M98022</link>
      <description>Don't let anyone talk you into changing the root shell. You will have an unbootable machine but you won't know it until you boot. Root's shell (/sbin/sh) is a statically linked version of the POSIX shell. Unless you are very careful to create a statically linked version of bash then you will not have a functional shell in single-user when /usr is not mounted.&lt;BR /&gt;&lt;BR /&gt;I'm also a little concernewd that you indicate that you do most of your work as root user. You should really be doing most of your work as a regular user and then su'ing to root only as needed. This helps to keep you from being your own worst enemy.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2002 16:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869356#M98022</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-12-23T16:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869357#M98023</link>
      <description>I too am very wary of changing root's shell to anything else.&lt;BR /&gt;&lt;BR /&gt;Re working as root. My main development machine is Linux, and I avoid root there. For the HP-UX machines my changes are generally sys-admin ones that need root privleges rather than user level access.</description>
      <pubDate>Mon, 23 Dec 2002 16:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869357#M98023</guid>
      <dc:creator>John Bray_1</dc:creator>
      <dc:date>2002-12-23T16:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869358#M98024</link>
      <description>Are you trying to imitate Linux behavior?&lt;BR /&gt;&lt;BR /&gt;I find the arrow keys on Linux less intutive than escape k on HP-UX 'cause I learned UX first.&lt;BR /&gt;&lt;BR /&gt;I have been advised against trying to make Linux work likd UX and vice versa.  &lt;BR /&gt;&lt;BR /&gt;You need to consider what happens when you're on your dream vacation, climbing a mountain or whatever and someone else needs to work on your system.&lt;BR /&gt;&lt;BR /&gt;Changing default shell behavior will confuse them and slow them down.  You are right to not tocuh the root shell.  It would be more fun to play with dynamite.&lt;BR /&gt;&lt;BR /&gt;STeve</description>
      <pubDate>Mon, 23 Dec 2002 16:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869358#M98024</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-23T16:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869359#M98025</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Do you use an emulator for your sessions ?&lt;BR /&gt;&lt;BR /&gt;You could use keyboard macro's to assign the value of tab &lt;VK_TAB&gt; to escape &lt;VK_ESCAPE&gt; &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;&lt;/VK_ESCAPE&gt;&lt;/VK_TAB&gt;</description>
      <pubDate>Mon, 23 Dec 2002 16:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869359#M98025</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-12-23T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869360#M98026</link>
      <description>I think I have to get something straight with regard to root's login shell.&lt;BR /&gt;I never meant to suggest to change root's login shell whatsoever&lt;BR /&gt;(though you can build a statically linked Bash from the Bash sources that you copy to /sbin, see "Configure --help")&lt;BR /&gt;&lt;BR /&gt;Indeed I have given the root acount Bash as kind of a pseudo login shell on some of our HP-UX boxes.&lt;BR /&gt;But I didn't touch the 7th field of /etc/passwd at all.&lt;BR /&gt;&lt;BR /&gt;The safe way to do it is to exec a Bash during login.&lt;BR /&gt;Therefore one only has to modify root's .profile.&lt;BR /&gt;&lt;BR /&gt;First I created a .bash_profile (with special settings that take care of the extended features of Bash, e.g. prompting).&lt;BR /&gt;Then I also created a .bashrc (which holds alii and func definitions for my Bash sessions).&lt;BR /&gt;Read the manpage of Bash to find out the way and order in which Bash looks for configuration files.&lt;BR /&gt;In the original .profile I would place a test to look for a Bash executable like&lt;BR /&gt;&lt;BR /&gt;if [ -x /usr/bin/bash ]; then&lt;BR /&gt;&lt;BR /&gt;That would safe you from trying to switch root's login shell during maintenance mode.&lt;BR /&gt;&lt;BR /&gt;If the above condition evaluates true we know that /usr is mounted and Bash is available.&lt;BR /&gt;&lt;BR /&gt;Finally as last statement in .profile I'd exec a login Bash&lt;BR /&gt;&lt;BR /&gt;exec /usr/bin/bash --login&lt;BR /&gt;&lt;BR /&gt;In .bash_profile I'd also source .bashrc and&lt;BR /&gt;&lt;BR /&gt;export BASH_ENV=$HOME/.bashrc&lt;BR /&gt;&lt;BR /&gt;to get the alii also for the pseudo login Bash.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 09:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869360#M98026</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-12-27T09:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Command completion with tab using Posix shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869361#M98027</link>
      <description>I think a modified form of Ralph's suggestion is probably the best. I've put bash in the PATH, so all I need to remember after logging in is to type 'bash' and then carry on that way. If other users come in as root they won't be confused.&lt;BR /&gt;&lt;BR /&gt;Thanks for all your suggestions.&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Mon, 30 Dec 2002 08:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-completion-with-tab-using-posix-shell/m-p/2869361#M98027</guid>
      <dc:creator>John Bray_1</dc:creator>
      <dc:date>2002-12-30T08:54:54Z</dc:date>
    </item>
  </channel>
</rss>

