<?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 Re: Posix Shell Vs Korn Shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832624#M936894</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;An answer to the second question:  No, it shouldn't cause a problem;  The scripts will merely run in a Bourne subshell.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Thu, 24 Oct 2002 12:46:47 GMT</pubDate>
    <dc:creator>Christopher McCray_1</dc:creator>
    <dc:date>2002-10-24T12:46:47Z</dc:date>
    <item>
      <title>Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832623#M936893</link>
      <description>Firstly what are the differences between the Posix shell and the Korn Shell.&lt;BR /&gt;&lt;BR /&gt;Secondly, I looking to change the default shell for users logging onto HP-UX 11 system  from Posix to Korn.&lt;BR /&gt;&lt;BR /&gt;All our scripts have #!/bin/sh as the first line. If I change the users default shell, will this affect the execution of these scripts?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Glynn.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Oct 2002 12:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832623#M936893</guid>
      <dc:creator>Glynn Aherne_1</dc:creator>
      <dc:date>2002-10-24T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832624#M936894</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;An answer to the second question:  No, it shouldn't cause a problem;  The scripts will merely run in a Bourne subshell.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 24 Oct 2002 12:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832624#M936894</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-10-24T12:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832625#M936895</link>
      <description>/bin/sh is the Posix shell.  The Bourne shell is in /usr/old/bin/sh.</description>
      <pubDate>Thu, 24 Oct 2002 12:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832625#M936895</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2002-10-24T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832626#M936896</link>
      <description>The default shell is the bourne shell. I think that all functions of the ksh shell were built into the bourne shell.</description>
      <pubDate>Thu, 24 Oct 2002 13:00:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832626#M936896</guid>
      <dc:creator>Ken Hubnik_2</dc:creator>
      <dc:date>2002-10-24T13:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832627#M936897</link>
      <description>Glynn,&lt;BR /&gt;&lt;BR /&gt;I'm quoting from a HP Posix Shell Programming course book:&lt;BR /&gt;&lt;BR /&gt;.  The POSIX shell is very similar to the Korn shell&lt;BR /&gt;&lt;BR /&gt;.  The POSIX shell is fully compliant with the IEEE P1003.2 recommendations&lt;BR /&gt;&lt;BR /&gt;.  These POSIX recommendations are adopted as the industry standard.&lt;BR /&gt;&lt;BR /&gt;.  The POSIX shell is essentially compatible with the HP-UX Korn shell&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, the differences then are slight at best, and the POSIX shell is more standards compliant and accepted - I'd go with POSIX rather than Korn.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 24 Oct 2002 13:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832627#M936897</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-10-24T13:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832628#M936898</link>
      <description>Sorry I meant to say that the default shell is the posix shell and all the ksh functions are built into the posix shell.</description>
      <pubDate>Thu, 24 Oct 2002 13:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832628#M936898</guid>
      <dc:creator>Ken Hubnik_2</dc:creator>
      <dc:date>2002-10-24T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832629#M936899</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A - Posix Shell and Korn Shell are very similar. You have to use it in depth to see differences ...&lt;BR /&gt;&lt;BR /&gt;B - The first line of a script beginning with #!xxx only indicates the interpretor to use. So it could contain anything and it absolutly not related to your logging shell, but I just wanted to add that /bin/sh shouldn't be used anymore because it's a transition link maintained only for compatibility with old releases. You should now rather use #!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;jean-Louis.</description>
      <pubDate>Thu, 24 Oct 2002 13:02:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832629#M936899</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-10-24T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832630#M936900</link>
      <description>Hi Glynn,&lt;BR /&gt;&lt;BR /&gt;All functions of the korn shell are contained in the Posix shell and more.&lt;BR /&gt;So you could consider ksh to be a subset of sh OR that sh is a superset of ksh.&lt;BR /&gt;I prefer the Posix to the korn.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 24 Oct 2002 13:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832630#M936900</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-10-24T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832631#M936901</link>
      <description>Hi Glynn,&lt;BR /&gt;&lt;BR /&gt;Don't change root's shell.  It needs to be /sbin/sh (note that's /sbin/sh, not /bin/sh).  You will be likely to find you can't boot your system if you change it.&lt;BR /&gt;&lt;BR /&gt;If you have #!/bin/sh as the first line in your script, that's the shell (posix) that will be used.  It won't matter what shell is specified for the user in /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;Using ksh instead of posix is okay.  You lose some functionality that is added in the posix shell.  If you use ksh on other systems, you may be more comfortable doing so on HPUX also (though whatever you do in ksh can be done in posix).  Also, if you always write your scripts in ksh, they will be more easily portable to other platforms.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 24 Oct 2002 13:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832631#M936901</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-24T13:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832632#M936902</link>
      <description>- Posix Shell is supposed to obsolete Bourne Shell&lt;BR /&gt;- Is the default shell for HPUX-10.20 and above&lt;BR /&gt;- Having almost similar features as the Korn Shell</description>
      <pubDate>Thu, 24 Oct 2002 23:58:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832632#M936902</guid>
      <dc:creator>Chia-Wei</dc:creator>
      <dc:date>2002-10-24T23:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832633#M936903</link>
      <description>The POSIX standard applies to a number of shells including Korn, POSIX  and bash. HP's POSIX shell is generally a superset of the Korn shell. For example, ulimit -a exists in the HP POSIX shell but there are no options for Korn shell. The POSIX shell has been standard on HP-UX since version 10.00 and 10.01.&lt;BR /&gt;&lt;BR /&gt;Generally, there is more functionality in /usr/bin/sh than found in ksh. To see the exact difference, look at the Release Notes found in /usr/share/doc for the details. The Bourne is virtually unknown (and unused) in HP-UX because it is located in /usr/old/bin/sh. As mentioned, root's shell must be /sbin/sh in order to function in single user mode. Do not change root's shell to anything in /usr as single user mode will fail.&lt;BR /&gt;&lt;BR /&gt;As an additional note: there is no such directory /bin. It has not existed for more than 8 years as it was obsoleted by the SysV.4 filesystem standard. Other flavors of Unix such as Solaris have also migrated out of /bin. To provide backward compatibility, /bin is actually a symbolic link (called a transition link in HP-UX). These links are simply crutches to keep things running until all your tools have been migrated. tlinstall and tlremove will create and remove these links. NOTE: there is no guarentee that these old links will exist in future releases.</description>
      <pubDate>Fri, 25 Oct 2002 01:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832633#M936903</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-10-25T01:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832634#M936904</link>
      <description>I know there were lots of replies thus far, but i don't think anyone told you how to change the path of default shell in /etc/passwd. Make sure you always make a copy first.  Edit this file with vi or another text editor and change the default shell entry, which is the last field in each record(fields are delimited with colons).  You can create a template using SAM for creating users with the same settings.</description>
      <pubDate>Fri, 25 Oct 2002 14:04:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832634#M936904</guid>
      <dc:creator>Greg Pierro</dc:creator>
      <dc:date>2002-10-25T14:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832635#M936905</link>
      <description>Slight correction Greg - although one *can* use vi or ed to edit the passwd, it's not recommended.&lt;BR /&gt;One should use the  vipw  command as it will lock the file during edit &amp;amp; post-process it for any changes occuring from another source while being "manually" edited.&lt;BR /&gt;It has the further benefit of NOT allowing you to screw up root's entry such that the system would be unbootable.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 25 Oct 2002 15:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832635#M936905</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-10-25T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832636#M936906</link>
      <description>In regards to Greg's comment about editing the /etc/passwd file, you can use 'vipw' to edit this file.  It's much safer that using just 'vi', as it automatically makes a backup copy of /etc/passwd.  If you mess up, vipw tell you and restores the backup copy to the original.&lt;BR /&gt;&lt;BR /&gt;Just my 2cents,&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 25 Oct 2002 15:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832636#M936906</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2002-10-25T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832637#M936907</link>
      <description>I agree with vipw but in this case, it's simpler to use the 'chsh' command (or 'passwd -e' which is the same thing).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 25 Oct 2002 15:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832637#M936907</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-10-25T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Posix Shell Vs Korn Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832638#M936908</link>
      <description>When using the posix shell, set HISTFILE and HISTSIZE to ensure that you get normal command line editing functionality.</description>
      <pubDate>Tue, 03 Dec 2002 14:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/posix-shell-vs-korn-shell/m-p/2832638#M936908</guid>
      <dc:creator>Charles Stepp_2</dc:creator>
      <dc:date>2002-12-03T14:42:50Z</dc:date>
    </item>
  </channel>
</rss>

