<?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: No carriage return using temp parameter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-carriage-return-using-temp-parameter/m-p/3237520#M714591</link>
    <description>Everybody has found this out at some time.&lt;BR /&gt; &lt;BR /&gt;It is because of your shell's $IFS variable.  This is the internal field seperator for the shell which by default includes a carriage return.  In other words, the shell sees the carriage return as a seperator between "tokens" or words.  The solution goes soemthing like this&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;V_TEMPDIR=/usr/local/etc&lt;BR /&gt;&lt;BR /&gt;TMPIFS=$IFS&lt;BR /&gt;IFS=" "&lt;BR /&gt;&lt;BR /&gt;V_PRTDIR=`ll $V_TEMPDIR`&lt;BR /&gt;print $V_PRTDIR&lt;BR /&gt;&lt;BR /&gt;IFS=$TMPIFS</description>
    <pubDate>Fri, 02 Apr 2004 00:55:56 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2004-04-02T00:55:56Z</dc:date>
    <item>
      <title>No carriage return using temp parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-carriage-return-using-temp-parameter/m-p/3237519#M714590</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Don't understand why there is no carriage return for the temp parameter set in a script. Below is the example:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;V_TEMPDIR=/usr/local/etc&lt;BR /&gt;V_PRTDIR=`ll $V_TEMPDIR`&lt;BR /&gt;print $V_PRTDIR&lt;BR /&gt;&lt;BR /&gt;Any pointer or work around is appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;YC&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 22:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-carriage-return-using-temp-parameter/m-p/3237519#M714590</guid>
      <dc:creator>yc_2</dc:creator>
      <dc:date>2004-04-01T22:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: No carriage return using temp parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-carriage-return-using-temp-parameter/m-p/3237520#M714591</link>
      <description>Everybody has found this out at some time.&lt;BR /&gt; &lt;BR /&gt;It is because of your shell's $IFS variable.  This is the internal field seperator for the shell which by default includes a carriage return.  In other words, the shell sees the carriage return as a seperator between "tokens" or words.  The solution goes soemthing like this&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;V_TEMPDIR=/usr/local/etc&lt;BR /&gt;&lt;BR /&gt;TMPIFS=$IFS&lt;BR /&gt;IFS=" "&lt;BR /&gt;&lt;BR /&gt;V_PRTDIR=`ll $V_TEMPDIR`&lt;BR /&gt;print $V_PRTDIR&lt;BR /&gt;&lt;BR /&gt;IFS=$TMPIFS</description>
      <pubDate>Fri, 02 Apr 2004 00:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-carriage-return-using-temp-parameter/m-p/3237520#M714591</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-02T00:55:56Z</dc:date>
    </item>
  </channel>
</rss>

