<?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: Ksh Alias parameters. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634704#M42110</link>
    <description>use -x if you want the alias exported to sub-shells; maybe try eval if the alias is complex:&lt;BR /&gt;&lt;BR /&gt;alias -x lsl = "ls -l |$PAGER"&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;--&lt;BR /&gt;mark</description>
    <pubDate>Fri, 21 Dec 2001 15:15:16 GMT</pubDate>
    <dc:creator>Mark Greene_1</dc:creator>
    <dc:date>2001-12-21T15:15:16Z</dc:date>
    <item>
      <title>Ksh Alias parameters.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634701#M42107</link>
      <description>I wanted to pass parameters to an alias, but it gives errors.  Some had suggested to issue a set +u would do the trick, but so far no luck.&lt;BR /&gt;If someone has played around with the KSH aliases any help would be appreciated.</description>
      <pubDate>Fri, 21 Dec 2001 15:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634701#M42107</guid>
      <dc:creator>Pheroz Tengra</dc:creator>
      <dc:date>2001-12-21T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh Alias parameters.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634702#M42108</link>
      <description>#alias l='ls -l'&lt;BR /&gt;#l .profile&lt;BR /&gt;&lt;BR /&gt;.profile is an argument&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Dec 2001 15:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634702#M42108</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2001-12-21T15:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh Alias parameters.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634703#M42109</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have a look at this doc&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=b702515d182dcaee5e/screen=ckiDisplayDocument?docId=200000024670261" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=b702515d182dcaee5e/screen=ckiDisplayDocument?docId=200000024670261&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Fri, 21 Dec 2001 15:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634703#M42109</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-12-21T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh Alias parameters.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634704#M42110</link>
      <description>use -x if you want the alias exported to sub-shells; maybe try eval if the alias is complex:&lt;BR /&gt;&lt;BR /&gt;alias -x lsl = "ls -l |$PAGER"&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;--&lt;BR /&gt;mark</description>
      <pubDate>Fri, 21 Dec 2001 15:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634704#M42110</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2001-12-21T15:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh Alias parameters.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634705#M42111</link>
      <description>HI&lt;BR /&gt;If you define an alias&lt;BR /&gt;#10="ls -lR"&lt;BR /&gt;Then use&lt;BR /&gt;#10 /tmp   to list contents of /tmp&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Dec 2001 19:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634705#M42111</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-12-21T19:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ksh Alias parameters.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634706#M42112</link>
      <description>It would help if you provided an example and&lt;BR /&gt;the error message you get when you try it.&lt;BR /&gt;&lt;BR /&gt;As far as I know, ksh aliases can only be used&lt;BR /&gt;as the other posters described, i.e.&lt;BR /&gt; &lt;BR /&gt;   alias 'copy=cp'&lt;BR /&gt;&lt;BR /&gt;Now you can say:&lt;BR /&gt;&lt;BR /&gt;    copy this that&lt;BR /&gt;&lt;BR /&gt;and it behaves like:&lt;BR /&gt;&lt;BR /&gt;    cp this that&lt;BR /&gt;&lt;BR /&gt;Perhaps what you want is to be able to do&lt;BR /&gt;something like this:&lt;BR /&gt;&lt;BR /&gt;    copy this that&lt;BR /&gt;&lt;BR /&gt;and have it behave like:&lt;BR /&gt;&lt;BR /&gt;    cp this that the_other&lt;BR /&gt;&lt;BR /&gt;where "the_other" is hard-coded into the&lt;BR /&gt;alias.  I don't think ksh aliases can do that.&lt;BR /&gt;&lt;BR /&gt;Perhaps you should set up a function&lt;BR /&gt;(subroutine) in your .kshrc or .profile.&lt;BR /&gt;Then the function's arguments are&lt;BR /&gt;available in $*. Example:&lt;BR /&gt;&lt;BR /&gt;function copy {&lt;BR /&gt;    cp $* the_other&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;On the other hand, csh aliases can use !* construct.&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;    alias copy 'cp \!* the_other'&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Dec 2001 01:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-parameters/m-p/2634706#M42112</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2001-12-22T01:18:56Z</dc:date>
    </item>
  </channel>
</rss>

