.bashrc .profile .bash_profile

Brandon Allbery allbery at kf8nh.com
Fri Oct 2 21:23:38 PDT 2009

On Oct 2, 2009, at 14:49 , Harald Hanche-Olsen wrote:
> + Brandon Allbery <allbery at kf8nh.com>:
> If you run vi and type ":!ls", vi will spawn a noninteractive shell to
>> run "ls".  Noninteractive shells are also used by "make", "port", and
>> numerous other commands.
> Note, however, that these invoke /bin/sh and not bash. Even if /bin/sh

Actually, we've both just lied.  vi is a special case; for "!" and  
":!" it specifically runs $SHELL, and does so "pseudo-interactively"  
so it will pick up aliases and local variable declarations  
from .cshrc / .bashrc / .zshenv etc. as appropriate so you can use  
them in commands.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091003/401678ae/attachment.bin>

More information about the macports-users mailing list