<?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: Special char in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250922#M658506</link>
    <description>Perhaps someone has added the "set -f" command to root's ~/.profile?&lt;BR /&gt;&lt;BR /&gt;"set -f" disables "file name generation", also known as "pathname expansion" - and that includes wildcard character processing.&lt;BR /&gt;&lt;BR /&gt;The /etc/profile and ~/.profile are executed only when the shell is invoked as a _login_ shell: reloading the shell within the same session does not re-run those login scripts.&lt;BR /&gt;&lt;BR /&gt;All the exported environment variables and ulimit settings are automatically inherited by the new "child" process from its parent, so running the login scripts is not necessary to have them at correct settings in the "child" shell. But all the non-inheritable shell settings (aliases, shell functions, "set" settings etc.) will be lost. This explains why the wildcard processing works normally in the reloaded shell.&lt;BR /&gt;&lt;BR /&gt;There is a special environment variable $ENV that can be used to make non-login ("child") shells execute a script at start-up. But it is not set by default, and surprisingly many sysadmins don't know about it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Tue, 10 Aug 2010 08:12:22 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-08-10T08:12:22Z</dc:date>
    <item>
      <title>Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250917#M658501</link>
      <description>&lt;!--!*#--&gt;Hi All..&lt;BR /&gt;&lt;BR /&gt;# ls&lt;BR /&gt;f1     f2     f3     f4     f5     r4     t1     t2     t3     t4     t5     t6     test1  test3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ll t*&lt;BR /&gt;t* not found&lt;BR /&gt;&lt;BR /&gt;# ll t?&lt;BR /&gt;t? not found&lt;BR /&gt;&lt;BR /&gt;# ls t*    &amp;lt;&amp;lt;&amp;lt;&amp;lt; wildcard not working&lt;BR /&gt;t* not found&lt;BR /&gt;&lt;BR /&gt;It is NOT treating "*" as a wildcard but as a normal character. &lt;BR /&gt;&lt;BR /&gt;Entry for root in passwd file:&lt;BR /&gt;root:EvTwA3Xd/eKd2:0:3::/:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;But when i reload the shell &lt;BR /&gt;# /sbin/sh&lt;BR /&gt;# ll t*  &amp;lt;&amp;lt;&amp;lt;&amp;lt; work fine&lt;BR /&gt;&lt;BR /&gt;How can I correct this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks..</description>
      <pubDate>Tue, 10 Aug 2010 05:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250917#M658501</guid>
      <dc:creator>WW451512</dc:creator>
      <dc:date>2010-08-10T05:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250918#M658502</link>
      <description>what happens if you try: # ll | grep ^t</description>
      <pubDate>Tue, 10 Aug 2010 05:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250918#M658502</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-08-10T05:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250919#M658503</link>
      <description>WW451512,&lt;BR /&gt;To see the files with special charcter you can open in vi in set list mode and you can find the files those got special character, that doesn't show up in normal ls -l.&lt;BR /&gt;&lt;BR /&gt;1.# ls -l &amp;gt; list.txt&lt;BR /&gt;2.# vi list.txt&lt;BR /&gt; : set list&lt;BR /&gt;&lt;BR /&gt;3. Delete &amp;amp; modification of filenames you can do with find command with inum option.&lt;BR /&gt;To see inode numbers to corresponding files you can use # ls -lai &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2010 05:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250919#M658503</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-08-10T05:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250920#M658504</link>
      <description>WW, I think I misunderstood the problem in the earlier reply,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But when i reload the shell &lt;BR /&gt;# /sbin/sh&lt;BR /&gt;# ll t*  &amp;lt;&amp;lt;&amp;lt;&amp;lt; work fine&lt;BR /&gt;&lt;BR /&gt;- Seems to be problem with your shell.&lt;BR /&gt;- After login check the shell, # echo $SHELL&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 10 Aug 2010 05:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250920#M658504</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-08-10T05:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250921#M658505</link>
      <description>&lt;!--!*#--&gt;Following commands were ran in given order:&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;/sbin/sh&lt;BR /&gt;&lt;BR /&gt;# ll t*&lt;BR /&gt;t* not found&lt;BR /&gt;&lt;BR /&gt;but, when I do:&lt;BR /&gt;# /sbin/sh  &amp;lt;&amp;lt;&amp;lt;&amp;lt; reload the same shell&lt;BR /&gt;# ll t*&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Aug  8 15:27 t1&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Aug  8 15:27 t2&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Aug  8 15:27 t3&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Aug  8 15:27 t4&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Aug  8 15:27 t5&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Aug  8 15:27 t6&lt;BR /&gt;--  --&lt;BR /&gt;--  --   &lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;/sbin/sh&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2010 06:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250921#M658505</guid>
      <dc:creator>WW451512</dc:creator>
      <dc:date>2010-08-10T06:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250922#M658506</link>
      <description>Perhaps someone has added the "set -f" command to root's ~/.profile?&lt;BR /&gt;&lt;BR /&gt;"set -f" disables "file name generation", also known as "pathname expansion" - and that includes wildcard character processing.&lt;BR /&gt;&lt;BR /&gt;The /etc/profile and ~/.profile are executed only when the shell is invoked as a _login_ shell: reloading the shell within the same session does not re-run those login scripts.&lt;BR /&gt;&lt;BR /&gt;All the exported environment variables and ulimit settings are automatically inherited by the new "child" process from its parent, so running the login scripts is not necessary to have them at correct settings in the "child" shell. But all the non-inheritable shell settings (aliases, shell functions, "set" settings etc.) will be lost. This explains why the wildcard processing works normally in the reloaded shell.&lt;BR /&gt;&lt;BR /&gt;There is a special environment variable $ENV that can be used to make non-login ("child") shells execute a script at start-up. But it is not set by default, and surprisingly many sysadmins don't know about it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 10 Aug 2010 08:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250922#M658506</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-08-10T08:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250923#M658507</link>
      <description>&amp;gt;MK: Perhaps someone has added the "set -f" command to root's ~/.profile?&lt;BR /&gt;&lt;BR /&gt;Ah.  You can check by:&lt;BR /&gt;set -o&lt;BR /&gt;&lt;BR /&gt;You should either see -f or noglob.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;$ENV ... surprisingly many sysadmins don't know about it.&lt;BR /&gt;&lt;BR /&gt;Hmm, that was one of the first things I learned in Real Shell Programming 101.  :-)&lt;BR /&gt;First that you copy it from someone else, then exactly what that arcane command did.</description>
      <pubDate>Tue, 10 Aug 2010 10:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250923#M658507</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-10T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Special char</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250924#M658508</link>
      <description>Thanks Matti &amp;amp; Dennis.&lt;BR /&gt;&lt;BR /&gt;Checked /etc/profile and found an entry of "set -f" in the end.&lt;BR /&gt;&lt;BR /&gt;Also "set -o" confirmed the noglob was 'on'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That was a fantastic catch..thanks again.</description>
      <pubDate>Tue, 10 Aug 2010 13:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-char/m-p/5250924#M658508</guid>
      <dc:creator>WW451512</dc:creator>
      <dc:date>2010-08-10T13:29:53Z</dc:date>
    </item>
  </channel>
</rss>

