[Top][All Lists]

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

Re: conditional aliases are broken

From: Eric Blake
Subject: Re: conditional aliases are broken
Date: Mon, 15 Aug 2011 16:59:29 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11

On 08/15/2011 04:40 PM, Sam Steingold wrote:
* Andreas Schwab<address@hidden>  [2011-08-15 22:04:04 +0200]:

Sam Steingold<address@hidden>  writes:

Cool.  Now, what does this imply?

    "For almost every purpose, shell functions are preferred over aliases."

so, how do I write

alias a=b

as a function?
(remember that arguments may contain spaces&c)

a() { b "$@"; }

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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