<?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 shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754063#M656732</link>
    <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;1. How can I know what is the default shell I am working with?&lt;BR /&gt;2. How can I config/determine the requested shell?&lt;BR /&gt;3. Where can I see each shell fetures (win size, ^d, ^z on so on)?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Yaron</description>
    <pubDate>Thu, 17 Feb 2011 08:57:38 GMT</pubDate>
    <dc:creator>Yarok</dc:creator>
    <dc:date>2011-02-17T08:57:38Z</dc:date>
    <item>
      <title>shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754063#M656732</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;1. How can I know what is the default shell I am working with?&lt;BR /&gt;2. How can I config/determine the requested shell?&lt;BR /&gt;3. Where can I see each shell fetures (win size, ^d, ^z on so on)?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Yaron</description>
      <pubDate>Thu, 17 Feb 2011 08:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754063#M656732</guid>
      <dc:creator>Yarok</dc:creator>
      <dc:date>2011-02-17T08:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754064#M656733</link>
      <description>Yaron,&lt;BR /&gt;&lt;BR /&gt;1. You get the shell that is set for any given user in /etc/passwd - you can get see what this is using:&lt;BR /&gt;&lt;BR /&gt;grep ^$(whoami): /etc/passwd | cut -d: -f 7&lt;BR /&gt;&lt;BR /&gt;2. You can change your default shell using the chsh command. You can only set your shell to those listed in the /etc/shells file (if one exists on your system)&lt;BR /&gt;&lt;BR /&gt;3. Read the man page for the shell:&lt;BR /&gt;&lt;BR /&gt;man sh-posix&lt;BR /&gt;man ksh&lt;BR /&gt;man csh&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;WARNING: Do not chnage the default shell for the root user from /sbin/sh - you will break your system...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 17 Feb 2011 09:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754064#M656733</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-02-17T09:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754065#M656734</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;General environment definitions could be useful:&lt;BR /&gt;#env&lt;BR /&gt;#man env&lt;BR /&gt;And the current settings of terminal also:&lt;BR /&gt;#stty -a&lt;BR /&gt;#man stty&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Thu, 17 Feb 2011 10:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754065#M656734</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-17T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754066#M656735</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. How can I know what is the default shell I am working with?&lt;BR /&gt;&lt;BR /&gt;  You can use #echo $SHELL &lt;BR /&gt;  This gives the default working shell. To see the individual user's shell, you can see it in /etc/passwd as said above.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. How can I config/determine the requested shell?&lt;BR /&gt;&lt;BR /&gt;  USe either usermod -s or chsh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Where can I see each shell fetures (win size, ^d, ^z on so on)?&lt;BR /&gt;&lt;BR /&gt;  I can think of anything other than the man pages.</description>
      <pubDate>Thu, 17 Feb 2011 10:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754066#M656735</guid>
      <dc:creator>Vidhya B</dc:creator>
      <dc:date>2011-02-17T10:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754067#M656736</link>
      <description>Hi Yaron:&lt;BR /&gt;&lt;BR /&gt;If you are new to the shell, at least avoid the 'csh' (C-shell) for serious scripting.  This classic FAQ discusses why:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The HP-UX default shell is the POSIX one found as '/usr/bin/sh' for normal users and as a statically linked version for root as '/sbin/sh'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Feb 2011 13:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754067#M656736</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-02-17T13:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754068#M656737</link>
      <description>&lt;!--!*#--&gt;Thanks for the info.&lt;BR /&gt;&lt;BR /&gt;as you all noted, sh /sbin/sh is the default shell. &lt;BR /&gt;When I open a terminal and type:&lt;BR /&gt;#tcsh (to get a better env) still the &lt;BR /&gt;#echo $SHELL command gives me /sbin/sh. Why?&lt;BR /&gt;Can I determine that tcsh for instance, will be my defualt shell? how?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Yaron</description>
      <pubDate>Thu, 17 Feb 2011 13:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754068#M656737</guid>
      <dc:creator>Yarok</dc:creator>
      <dc:date>2011-02-17T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754069#M656738</link>
      <description>You have already been warned against changing the default shell for root (which in your last post the default shell being /sbin/sh and the prompt of "#" seem to indicate you are working as).&lt;BR /&gt;&lt;BR /&gt;You've also been warned aginst using the C shell which tcsh is a variant of.&lt;BR /&gt;&lt;BR /&gt;As for wht "echo $SHELL" still returns /sbin/sh, this is because the environment variable SHELL is set by login(1) and is then inherited by any command spawned by that process. Unless it explicitly set to something else by the spawned process it will stay as it was. If your login shell were set to tcsh in /etc/passwd then this would show up in the SHELL environment variable - but as indicated above you _should not_ do that for root.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 17 Feb 2011 14:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/4754069#M656738</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-02-17T14:45:40Z</dc:date>
    </item>
  </channel>
</rss>

