On Wed, Mar 14, 2012 at 11:32 AM, Clark J. Wang <[email protected]> wrote:

>
> $ unalias -a
> $ alias foo=bar
> $ arr=( foo alias )    <-- no problem here though `foo' is an alias
> $ arr=( alias foo )
> foo: alias not found
> $
>
> Here the error message is caused by the first word in () being the `alias'
> command, not because `foo' is not an alias (and actually it is).
>

 Another example:

$ echo ${.sh.version}
Version JM 93u+ 2012-05-17
$ alias foo='echo hello world'
$ arr=(foo bar)
$ typeset -p arr
typeset -a arr=(echo hello world bar)
$
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to