<?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: backticks doesn't work in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744640#M68665</link>
    <description>I agree with Harmut,&lt;BR /&gt;the HOSTNAME=$(hostname)&lt;BR /&gt;method is much cleaner (and does work with ksh)&lt;BR /&gt;&lt;BR /&gt;Bill</description>
    <pubDate>Fri, 14 Jun 2002 06:33:41 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2002-06-14T06:33:41Z</dc:date>
    <item>
      <title>backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744634#M68659</link>
      <description>Hi there&lt;BR /&gt;&lt;BR /&gt;It looks like a little problem with backquotes (backticks)&lt;BR /&gt;If I insert the following command &lt;BR /&gt;   echo `uname -n`&lt;BR /&gt;the result is &lt;BR /&gt;   uname -n&lt;BR /&gt;instead of the real hostname. So i suggest that there is a problem with the command substitution in correlation with backquotes. &lt;BR /&gt;&lt;BR /&gt;Any hint to resolve this prob&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;BR /&gt;Reinhard&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2002 06:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744634#M68659</guid>
      <dc:creator>Reinhard Bayer</dc:creator>
      <dc:date>2002-06-14T06:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744635#M68660</link>
      <description>What shell are you using?&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 14 Jun 2002 06:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744635#M68660</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-06-14T06:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744636#M68661</link>
      <description>try echo 'uname -n' ie back tick sloping left to right works for me with posix shell</description>
      <pubDate>Fri, 14 Jun 2002 06:24:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744636#M68661</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-06-14T06:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744637#M68662</link>
      <description>just noticed looking at this post in different browsers show's different styles of back tick ..... in netscape 6.* my answer looks the same as yours !</description>
      <pubDate>Fri, 14 Jun 2002 06:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744637#M68662</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-06-14T06:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744638#M68663</link>
      <description>Reinhard,&lt;BR /&gt;&lt;BR /&gt;echo `uname -n` works for me.  I get my hostname.&lt;BR /&gt;&lt;BR /&gt;Funky keyboard? cat some backticks to a file, do an od, and compare to an ascii table.  Are you really typing backticks?  Foreticks 'uname -n' or quotes would act as you describe.&lt;BR /&gt;&lt;BR /&gt;Otherwise, something funky in your shell config changing the meaning of delimiters?&lt;BR /&gt;&lt;BR /&gt;greg.</description>
      <pubDate>Fri, 14 Jun 2002 06:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744638#M68663</guid>
      <dc:creator>Greg Martin</dc:creator>
      <dc:date>2002-06-14T06:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744639#M68664</link>
      <description>Backticks are a pain to me, because they are so hard to distinguish from all the other quotes.&lt;BR /&gt;So i prefer:&lt;BR /&gt; echo $(uname -n)&lt;BR /&gt;&lt;BR /&gt;Works with posix-shell and maybe in ksh too.&lt;BR /&gt;&lt;BR /&gt;Hartmut</description>
      <pubDate>Fri, 14 Jun 2002 06:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744639#M68664</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-06-14T06:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744640#M68665</link>
      <description>I agree with Harmut,&lt;BR /&gt;the HOSTNAME=$(hostname)&lt;BR /&gt;method is much cleaner (and does work with ksh)&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 14 Jun 2002 06:33:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744640#M68665</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-06-14T06:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744641#M68666</link>
      <description>sorry there's a typo. The result isn't &lt;BR /&gt;  uname -n&lt;BR /&gt;it's &lt;BR /&gt;  `uname -n`&lt;BR /&gt;&lt;BR /&gt;Duncan: It's the same behavior in POSIX and Korn Shell.&lt;BR /&gt;&lt;BR /&gt;Alex: The back ticks are the right one, from top left to right bottom&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2002 06:51:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744641#M68666</guid>
      <dc:creator>Reinhard Bayer</dc:creator>
      <dc:date>2002-06-14T06:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744642#M68667</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What shell are you using?&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;# sh&lt;BR /&gt;# echo `uname -a`&lt;BR /&gt;&lt;BR /&gt;what is the output you get?&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 14 Jun 2002 07:02:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744642#M68667</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-14T07:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744643#M68668</link>
      <description>Hi Steven&lt;BR /&gt;&lt;BR /&gt;The output is still the same: `uname -n`&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2002 07:22:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744643#M68668</guid>
      <dc:creator>Reinhard Bayer</dc:creator>
      <dc:date>2002-06-14T07:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744644#M68669</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could your server have been rootkit'ed? ;-)&lt;BR /&gt;&lt;BR /&gt;In any case, check the environment:&lt;BR /&gt;&lt;BR /&gt;# sh&lt;BR /&gt;# env&lt;BR /&gt;# set&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 14 Jun 2002 07:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744644#M68669</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-14T07:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: backticks doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744645#M68670</link>
      <description>The backtick (also known as the grave accent) is deprecated--a fancy name for obsolete. Check the man pages for sh-posix and ksh under Command Substitution.  The backticks are a real pain because they are so easy to misinterpret, especially with the wide variety of fonts and displays. Consider what happens on a browser when the desired font is not available: another one is substituted, and some (really bad) fonts display apostrophes as well as grave accents exactly the same way.&lt;BR /&gt;&lt;BR /&gt;As mentioned the preferred way (even bash says 'the old way') is to replace all command substitutions with the $(...) construct. This also makes nesting of commands very simple (no escaping necessary). Now your specific problem may be due to keyboard mapping. All that the shell cares about is the character bitpattern you typed. To decode what the shell sees, do this:&lt;BR /&gt;&lt;BR /&gt;xd&lt;BR /&gt;`'&lt;BR /&gt;(then type CTRL-D)&lt;BR /&gt;0000000 6027 0a00&lt;BR /&gt;0000003&lt;BR /&gt;&lt;BR /&gt;What this incantation does is to run the hex decoder program (xd), then you press various keys, followed by CTRL-D which terminates input. xd then displays 6027 which is the hex values for the two characters. 60 is the grave accent (backtick, backqoute, reverse apostrophe, etc) and 27 is the single quote or apostrophe. 0a is the CR or Retrun key and 00 is the marker for the end of an ASCII file.&lt;BR /&gt;&lt;BR /&gt;HINT: man ASCII</description>
      <pubDate>Fri, 14 Jun 2002 10:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backticks-doesn-t-work/m-p/2744645#M68670</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-06-14T10:57:07Z</dc:date>
    </item>
  </channel>
</rss>

