<?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: -e option not working in ksh!!!! in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048351#M96181</link>
    <description>Hi Satya:&lt;BR /&gt;&lt;BR /&gt;Since this is HP-UX why not use the POSIX shell --- the HP-UX standard shell in '/usr/bin/sh'?&lt;BR /&gt;&lt;BR /&gt;This is wholly 'ksh' with full POSIX support.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you could use the Korn93 shell found in '/usr/dt/bin/dtksh'.&lt;BR /&gt;&lt;BR /&gt;Substituting either interpreter ('/usr/bin/sh' or '/usr/dt/bin/dtksh' for '/usr/bin/ksh' will offer you a working script.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 22 May 2007 06:40:38 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-05-22T06:40:38Z</dc:date>
    <item>
      <title>-e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048344#M96174</link>
      <description>Hi i  have the following version of ksh&lt;BR /&gt; Version 11/16/88&lt;BR /&gt;&lt;BR /&gt;i am trying a basic script &lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;set -x&lt;BR /&gt;filename="test.ksh"&lt;BR /&gt;echo "File name is " $filename&lt;BR /&gt;if [[ -e $filename ]]&lt;BR /&gt;then&lt;BR /&gt;echo "exists"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but the script is giving an error&lt;BR /&gt;[tidrfx1g]nemana/ksh $ ./t1.ksh&lt;BR /&gt;+ filename=test.ksh&lt;BR /&gt;+ echo File name is  test.ksh&lt;BR /&gt;File name is  test.ksh&lt;BR /&gt;./t1.ksh[4]: syntax error at line 6 : `$filename' unexpected&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i tried -f option.. it is working...&lt;BR /&gt;&lt;BR /&gt;is this a problem with the version i have? Please help me.. &lt;BR /&gt;&lt;BR /&gt;Thanks in anticipation,&lt;BR /&gt;Satya Prasad&lt;BR /&gt;</description>
      <pubDate>Tue, 22 May 2007 05:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048344#M96174</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-05-22T05:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048345#M96175</link>
      <description>Shalom Satya,&lt;BR /&gt;&lt;BR /&gt;Either your script isn't runing in the directory the file is supposed to be in or:&lt;BR /&gt;&lt;BR /&gt;You may have a bug. There have been several patches to posix and korn shell over the years. I'd have them in anyway.&lt;BR /&gt;&lt;BR /&gt;However, I favor the first paragraph of this post as the culprit.&lt;BR /&gt;&lt;BR /&gt;ll &amp;gt; file.list&lt;BR /&gt;echo $filename &amp;gt;&amp;gt; file.list&lt;BR /&gt;&lt;BR /&gt;right before the dash e statement and see if you are where you think you are.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 22 May 2007 05:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048345#M96175</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-22T05:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048346#M96176</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;i doubt the first part....the version of the ksh which is the culprit as the same script with -e changed to -f worked.&lt;BR /&gt;&lt;BR /&gt;i tried adding the lines to the script.. &lt;BR /&gt;&lt;BR /&gt;ll &amp;gt; file.list&lt;BR /&gt;echo $filename &amp;gt;&amp;gt; file.list&lt;BR /&gt;&lt;BR /&gt;and observed the same result.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 May 2007 05:29:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048346#M96176</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-05-22T05:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048347#M96177</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it seems like -e doesn't exist as an option.&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://www.context-switch.com/reference/kshref/ch4.html" target="_blank"&gt;http://www.context-switch.com/reference/kshref/ch4.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Tue, 22 May 2007 06:17:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048347#M96177</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2007-05-22T06:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048348#M96178</link>
      <description>Do you wanna use -a option?</description>
      <pubDate>Tue, 22 May 2007 06:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048348#M96178</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2007-05-22T06:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048349#M96179</link>
      <description>Hi Volkmar&lt;BR /&gt;&lt;BR /&gt;You are correct.&lt;BR /&gt;&lt;BR /&gt;In the following reference, i see the -e option. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cs.princeton.edu/~jlk/kornshell/doc/man93.html" target="_blank"&gt;http://www.cs.princeton.edu/~jlk/kornshell/doc/man93.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But in the man page of year 88,&lt;BR /&gt;&lt;A href="http://www.cs.princeton.edu/~jlk/kornshell/doc/man88.html" target="_blank"&gt;http://www.cs.princeton.edu/~jlk/kornshell/doc/man88.html&lt;/A&gt;&lt;BR /&gt;i dont, &lt;BR /&gt;&lt;BR /&gt;which i guess is the current version i have on my system.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for the help... &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Satya Prasad&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 May 2007 06:36:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048349#M96179</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-05-22T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048350#M96180</link>
      <description>Thank you for your valuable time.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 May 2007 06:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048350#M96180</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-05-22T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048351#M96181</link>
      <description>Hi Satya:&lt;BR /&gt;&lt;BR /&gt;Since this is HP-UX why not use the POSIX shell --- the HP-UX standard shell in '/usr/bin/sh'?&lt;BR /&gt;&lt;BR /&gt;This is wholly 'ksh' with full POSIX support.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you could use the Korn93 shell found in '/usr/dt/bin/dtksh'.&lt;BR /&gt;&lt;BR /&gt;Substituting either interpreter ('/usr/bin/sh' or '/usr/dt/bin/dtksh' for '/usr/bin/ksh' will offer you a working script.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 22 May 2007 06:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048351#M96181</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-22T06:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: -e option not working in ksh!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048352#M96182</link>
      <description>You could also use -a, that works for sh and ksh.</description>
      <pubDate>Wed, 23 May 2007 23:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/e-option-not-working-in-ksh/m-p/5048352#M96182</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-23T23:04:55Z</dc:date>
    </item>
  </channel>
</rss>

