-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/24/14, 7:36 AM, Tim Friske wrote: > Hi, > > as I see it the "source" built-in is perfect for embedding a sourced > Bash script into the sourcing one while preserving as much of the > environment, specifically the positional and special parameters, as > possible. > > What I am missing is the "import" built-in that passes only the > explicitly given arguments from the importing to the imported Bash script.
It seems like this functionality would be best provided using an option to source/dot or (less desirably) a global flag. I will put it on the list of potential features for the next version. Chet - -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlP8plEACgkQu1hp8GTqdKu0vwCfaFef/XZLN2BPyfXGLRJ0EUA8 +xcAn2RxegEYDxEfEzZzf1+xOT+QdUdQ =s4Hs -----END PGP SIGNATURE-----