bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alias for commands broken in bash 2.05.0


From: william
Subject: Re: alias for commands broken in bash 2.05.0
Date: Tue, 7 Aug 2001 19:07:22 EDT

Paul,
Thanks!  I'll give that a try.
I have used shell functions in some of my personal scripts.
William
   From owl486.scs.com!rachael.scs.com!multivac.cwru.edu!prj Tue Aug  7 
18:52:16 2001
   From: Paul Jarc <address@hidden>
   Date: Tue, 07 Aug 2001 18:52:19 -0400

   address@hidden writes:
   >> aliases are not exectued within scripts.
   > what am I supposed to do instead?

   Rewrite them as shell functions.  Functions work for interactive and
   non-interactive shells.
   alias abc=pwd
   abc() { pwd ${1+"$@"}; }
   paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]