[Top][All Lists]

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

Re: Feature request: Add "import" built-in.

From: Greg Wooledge
Subject: Re: Feature request: Add "import" built-in.
Date: Mon, 25 Aug 2014 08:04:14 -0400
User-agent: Mutt/

On Sun, Aug 24, 2014 at 01:36:38PM +0200, Tim Friske wrote:
> I currently emulate the behavior I seek for with the following function:
> function _import {
>   local -r file="$1"
>   set -- "${@:2}"
>   source "$file" "$@"
> }

How is this different from source, exactly?  You're passing all of the
same arguments.  Your function is identical to:

_import() {
    source "$@"

reply via email to

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