<?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: Where to find one shell script editor in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760689#M945394</link>
    <description>Sometimes I.....&lt;BR /&gt;&lt;BR /&gt;Copy the busted piece of code to new, just to make sure it works the way I expect.  Divide and conquer.  When it works I copy it back into the program.  &lt;BR /&gt;&lt;BR /&gt;Add lines like this to the code....&lt;BR /&gt; #-----debugging-----------&lt;BR /&gt; echo "VAR should be skippy"&lt;BR /&gt; echo "VAR is $VAR"&lt;BR /&gt; echo "hit return to continue......"&lt;BR /&gt; read bogus_var&lt;BR /&gt; #-----debugging-----------&lt;BR /&gt;I get rid of the lines when it works right.&lt;BR /&gt;&lt;BR /&gt;When I run the code I....&lt;BR /&gt;sh -xv  myprog.sh 2&amp;gt;myprog.debug&lt;BR /&gt;Then vi file myprog.debug&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 11 Jul 2002 11:07:47 GMT</pubDate>
    <dc:creator>Steve Post</dc:creator>
    <dc:date>2002-07-11T11:07:47Z</dc:date>
    <item>
      <title>Where to find one shell script editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760685#M945390</link>
      <description>Hi, everyone:&lt;BR /&gt;I am a freshman towards shell script programming. Recently I have written a shell script which is about 300 sentences long. I just know to write a file with shell commands and then execute it directly under the current shell. Then some grammar errors occur. Grammar errors are relatively easy to position and correct but unfortunately there is some logical erros which are not easy to find without some tool aid. When I write C, I can find those logical errors easily with breakpoint or single step, etc. So I wonder whether there is some tools for shell programming providing the similar functions just as Turbo C. How and where can I get it? Thanks a lot!&lt;BR /&gt;&lt;BR /&gt;Al.</description>
      <pubDate>Wed, 10 Jul 2002 05:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760685#M945390</guid>
      <dc:creator>albert_hua</dc:creator>
      <dc:date>2002-07-10T05:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find one shell script editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760686#M945391</link>
      <description>&lt;BR /&gt;When you run your script use the -x option and it will echo you every single line as it executes it so you can spot errors immediately.&lt;BR /&gt;&lt;BR /&gt;eg.&lt;BR /&gt;&lt;BR /&gt;sh -x ./&amp;lt;script&amp;gt; | more&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 05:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760686#M945391</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-07-10T05:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find one shell script editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760687#M945392</link>
      <description>Hi Al&lt;BR /&gt;Just a small extension to the answer of Stefan.&lt;BR /&gt;&lt;BR /&gt;if you use a tee in the pipe this will alow you to create a logfile. So you are able to read easily each script line and it's corresponding output.&lt;BR /&gt;In addition you can use the produced file for documentation ( if needed)&lt;BR /&gt;&lt;BR /&gt;command will be then :&lt;BR /&gt;&lt;BR /&gt;sh -x ./&amp;lt;script&amp;gt; | tee script.log | more</description>
      <pubDate>Thu, 11 Jul 2002 06:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760687#M945392</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-07-11T06:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find one shell script editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760688#M945393</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;thereis nothing better than vi. but as already replied&lt;BR /&gt;&lt;BR /&gt;sh -x &amp;lt;script&amp;gt; 2&amp;gt;&amp;amp;1 will give some info&lt;BR /&gt;&lt;BR /&gt;insert some sleep or accepting input statements so that u can track.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 07:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760688#M945393</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2002-07-11T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find one shell script editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760689#M945394</link>
      <description>Sometimes I.....&lt;BR /&gt;&lt;BR /&gt;Copy the busted piece of code to new, just to make sure it works the way I expect.  Divide and conquer.  When it works I copy it back into the program.  &lt;BR /&gt;&lt;BR /&gt;Add lines like this to the code....&lt;BR /&gt; #-----debugging-----------&lt;BR /&gt; echo "VAR should be skippy"&lt;BR /&gt; echo "VAR is $VAR"&lt;BR /&gt; echo "hit return to continue......"&lt;BR /&gt; read bogus_var&lt;BR /&gt; #-----debugging-----------&lt;BR /&gt;I get rid of the lines when it works right.&lt;BR /&gt;&lt;BR /&gt;When I run the code I....&lt;BR /&gt;sh -xv  myprog.sh 2&amp;gt;myprog.debug&lt;BR /&gt;Then vi file myprog.debug&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 11:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/where-to-find-one-shell-script-editor/m-p/2760689#M945394</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2002-07-11T11:07:47Z</dc:date>
    </item>
  </channel>
</rss>

