[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: What is the difference between a newline and a semi-colon?
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2014-05-30 18:52:56
Message-ID: 5388D388.1010605 () case ! edu
[Download RAW message or body]

On 5/30/14, 2:40 PM, Andreas Schwab wrote:
> Bruce Korb <bruce.korb@gmail.com> writes:
> 
>> Thanks, Eric & Chet.  I hope nobody ever needs to load up a set of
>> aliases within a Makefile script.
> 
> A non-interactive shell does not have aliases.

Not by default, if it's named `bash'.  However, since Posix  specifies
alias expansion, a shell in posix mode performs alias expansion whether
it's interactive or not.  You can also enable it with `shopt -s
expand_aliases'.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic