bug-bash
[Top][All Lists]
Advanced

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

function invoking alias fails if defined in same conditional


From: gregrwm
Subject: function invoking alias fails if defined in same conditional
Date: Fri, 16 Mar 2012 15:56:05 -0500 (CDT)

a function invoking an alias works, unless they are defined within the same 
conditional, eg:

$ if true;then
>    alias aseparate='echo aseparate'
> fi
$ if true;then
>          fseparate    ()(aseparate)
> fi
$ if true;then
>    alias atogether='echo atogether'
>          ftogether    ()(atogether)
> fi
$ aseparate
aseparate
$ fseparate
aseparate
$ atogether
atogether
$ ftogether
bash: atogether: command not found



reply via email to

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