<?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: Basic Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-script-help/m-p/2914963#M108166</link>
    <description>What's in the sub-script .bashrc? Something in there is causing your hang.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;in a script could . ./.bashrc be replaced with ./.bashrc ? &lt;BR /&gt;&lt;BR /&gt;It depends... The subtle difference is that . ./.bashrc runs within your current shell so any environment changes (variables etc) will remain when it finishes. ./.bashrc runs as a seperate child process so will not change the environment in your current shell at all.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
    <pubDate>Thu, 27 Feb 2003 17:33:15 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2003-02-27T17:33:15Z</dc:date>
    <item>
      <title>Basic Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-script-help/m-p/2914962#M108165</link>
      <description>Hi everyone;&lt;BR /&gt;&lt;BR /&gt;I've been testing the following basic script on a HP 11.11 system (script name : test) :&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/bash&lt;BR /&gt;&lt;BR /&gt;. ./.bashrc&lt;BR /&gt;&lt;BR /&gt;echo FINISH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;when I launch ./test the scripts executes with no problem.&lt;BR /&gt;&lt;BR /&gt;When I launch it like this ./test&amp;amp; the script hangs&lt;BR /&gt;in the background ( FINISH doen't get displayed) the command "jobs" reports the following: bash$ jobs&lt;BR /&gt;[1]+  Stopped                 ./test&lt;BR /&gt;&lt;BR /&gt;when normally it should display "Done" instead of "Stopped". the hang is definitly occuring on the . ./.bashrc&lt;BR /&gt;&lt;BR /&gt;On another HP 11.11 system it finishes either way I launch it. On Solaris I have no problems also.&lt;BR /&gt;&lt;BR /&gt;in a script could . ./.bashrc be replaced with ./.bashrc ? &lt;BR /&gt;&lt;BR /&gt;In general, if I have a script that sets some environment variables is it necessary to source the script when it's called in another script ?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Feb 2003 17:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-script-help/m-p/2914962#M108165</guid>
      <dc:creator>L. Younes</dc:creator>
      <dc:date>2003-02-27T17:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-script-help/m-p/2914963#M108166</link>
      <description>What's in the sub-script .bashrc? Something in there is causing your hang.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;in a script could . ./.bashrc be replaced with ./.bashrc ? &lt;BR /&gt;&lt;BR /&gt;It depends... The subtle difference is that . ./.bashrc runs within your current shell so any environment changes (variables etc) will remain when it finishes. ./.bashrc runs as a seperate child process so will not change the environment in your current shell at all.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Feb 2003 17:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-script-help/m-p/2914963#M108166</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-02-27T17:33:15Z</dc:date>
    </item>
  </channel>
</rss>

