<?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: setting aliases in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234943#M890576</link>
    <description>Maybe you still have to assign the environment variable ENV to the file where your alias definitions reside, and export it.</description>
    <pubDate>Wed, 31 Mar 2004 04:38:03 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2004-03-31T04:38:03Z</dc:date>
    <item>
      <title>setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234941#M890574</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;I need to set an alias for a command, but it is not exported even when using -x. Here is what I have :&lt;BR /&gt;&lt;BR /&gt;#alias -x foo=yeah&lt;BR /&gt;#alias -x&lt;BR /&gt;autoload='typeset -fu'&lt;BR /&gt;command='command '&lt;BR /&gt;foo=yeah&lt;BR /&gt;functions='typeset -f'&lt;BR /&gt;history='fc -l'&lt;BR /&gt;integer='typeset -i'&lt;BR /&gt;local=typeset&lt;BR /&gt;nohup='nohup '&lt;BR /&gt;r='fc -e -'&lt;BR /&gt;stop='kill -STOP'&lt;BR /&gt;suspend='kill -STOP $$'&lt;BR /&gt;type='whence -v'&lt;BR /&gt;#sh&lt;BR /&gt;#alias&lt;BR /&gt;autoload='typeset -fu'&lt;BR /&gt;command='command '&lt;BR /&gt;functions='typeset -f'&lt;BR /&gt;history='fc -l'&lt;BR /&gt;integer='typeset -i'&lt;BR /&gt;local=typeset&lt;BR /&gt;nohup='nohup '&lt;BR /&gt;r='fc -e -'&lt;BR /&gt;stop='kill -STOP'&lt;BR /&gt;suspend='kill -STOP $$'&lt;BR /&gt;type='whence -v'&lt;BR /&gt;&lt;BR /&gt;Isn't my alias supposed to exist in subshells ?&lt;BR /&gt;And where are other aliases set ? (can't find them in profile)&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2004 04:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234941#M890574</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-03-31T04:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234942#M890575</link>
      <description>alias are set in .shrc or .kshrc. alias are availabe in subshells also.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Wed, 31 Mar 2004 04:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234942#M890575</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-03-31T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234943#M890576</link>
      <description>Maybe you still have to assign the environment variable ENV to the file where your alias definitions reside, and export it.</description>
      <pubDate>Wed, 31 Mar 2004 04:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234943#M890576</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-03-31T04:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234944#M890577</link>
      <description>From the sh-posix man page&lt;BR /&gt; &lt;BR /&gt;"Exported aliases remain in effect for subshells but must be reinitialized for separate invocations of the shell" &lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2004 04:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234944#M890577</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-31T04:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234945#M890578</link>
      <description>They don't seem to. I have aliases that are not set in .kshrc, .shrc, .profile, /etc/profile... and aliases do not appear in subshells (try to launch a new shell, and you'll see) even if I use "alias -x".</description>
      <pubDate>Wed, 31 Mar 2004 04:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234945#M890578</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-03-31T04:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234946#M890579</link>
      <description>Very trivial but&lt;BR /&gt;&lt;BR /&gt;Have you set the alias as below?&lt;BR /&gt;&lt;BR /&gt;alias dir=ls&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Wed, 31 Mar 2004 05:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234946#M890579</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-03-31T05:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234947#M890580</link>
      <description>Of course, I tried alias "dir"="ls". but when I launch sh, I don't see it anymore.&lt;BR /&gt;&lt;BR /&gt;I'll try to use ENV variable to set up aliases for each new shell (even if I think alias -x should have worked :)</description>
      <pubDate>Wed, 31 Mar 2004 05:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234947#M890580</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-03-31T05:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234948#M890581</link>
      <description>Hi tried myself&lt;BR /&gt;&lt;BR /&gt;alias -x jlo='pwd'&lt;BR /&gt;alias jlo2='ls -C1'&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;alias in current shell =&amp;gt; I have both in the list&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;sh : create new shell =&amp;gt; I have none of them&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;create a script that list the aliases.&lt;BR /&gt;when I run the script , this is a new process&lt;BR /&gt;I have jlo but not jlo2&lt;BR /&gt;&lt;BR /&gt;~~~~~~~~~~~~~~~~&lt;BR /&gt;&lt;BR /&gt;So this is exported for a process but not for a new shell&lt;BR /&gt;For this you need to setup your ENV variable :&lt;BR /&gt;ENV            If this parameter is set, parameter substitution is&lt;BR /&gt;                     performed on the value to generate the path name of the&lt;BR /&gt;                     script to be executed when the shell is invoked (see&lt;BR /&gt;                     the "Invocation" subsection).  This file is typically&lt;BR /&gt;                     used for alias and function definitions.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 31 Mar 2004 05:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234948#M890581</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-03-31T05:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234949#M890582</link>
      <description>Do your script to list aliases include a #!/bin/sh line ?</description>
      <pubDate>Wed, 31 Mar 2004 05:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234949#M890582</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-03-31T05:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234950#M890583</link>
      <description>I have following observation:&lt;BR /&gt;&lt;BR /&gt;alias set in .shrc are availabe in child shell where alias set at $prompt are not.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Wed, 31 Mar 2004 06:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234950#M890583</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-03-31T06:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234951#M890584</link>
      <description>I have a file alias.ksh which contains my aliases. When I log in I run . alias.ksh.&lt;BR /&gt;&lt;BR /&gt;The . before the command makes sure the aliases are available in the current shell.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Wed, 31 Mar 2004 07:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234951#M890584</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-03-31T07:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: setting aliases</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234952#M890585</link>
      <description>Let's say your aliases are stored in file .alias.ksh&lt;BR /&gt;&lt;BR /&gt;You need to add this line to your .profile : &lt;BR /&gt;export ENV=.alias.ksh&lt;BR /&gt;&lt;BR /&gt;With this it will work.</description>
      <pubDate>Thu, 01 Apr 2004 02:44:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-aliases/m-p/3234952#M890585</guid>
      <dc:creator>Chia-Wei</dc:creator>
      <dc:date>2004-04-01T02:44:29Z</dc:date>
    </item>
  </channel>
</rss>

