[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE? request for an "undefined" attribute for functions
From: |
Eric Blake |
Subject: |
Re: RFE? request for an "undefined" attribute for functions |
Date: |
Mon, 02 Aug 2010 12:16:44 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1 |
On 08/02/2010 12:15 PM, Bernd Eggink wrote:
> Am 02.08.2010 19:15, schrieb Andreas Schwab:
>> Bernd Eggink<monoped@sudrala.de> writes:
>>
>>> eval "function $name
>>
>> Don't use function, use "$name ()" instead.
>
> What's wrong with function??
'function name' is a bash extension while 'name()' is POSIX. If you use
standard POSIX instead of bash extensions, then your approach will more
easily port to other POSIX shells.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
Re: RFE? request for an "undefined" attribute for functions, Chet Ramey, 2010/08/02