help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to use alias defined in calling shell?


From: Eduardo A . Bustamante López
Subject: Re: [Help-bash] How to use alias defined in calling shell?
Date: Sat, 23 May 2015 08:15:23 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, May 22, 2015 at 05:45:29PM -0500, Peng Yu wrote:
> In a bash script, I want to use an alias defined in the shell calling
> in this script? Is it possible? Thanks.
No, aliases are not exported. You'll have to define them in the script, and use
the 'expand_aliases' shopt.

-- 
Eduardo Bustamante
https://dualbus.me/



reply via email to

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