From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16313 invoked from network); 25 Jan 2009 08:16:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Jan 2009 08:16:12 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 49841 invoked from network); 25 Jan 2009 08:16:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jan 2009 08:16:05 -0000 Received: (qmail 13958 invoked by alias); 25 Jan 2009 08:16:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26424 Received: (qmail 13947 invoked from network); 25 Jan 2009 08:15:59 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Jan 2009 08:15:59 -0000 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by bifrost.dotsrc.org (Postfix) with ESMTP id 9EF6D80271F0 for ; Sun, 25 Jan 2009 09:15:55 +0100 (CET) Received: by fg-out-1718.google.com with SMTP id e21so2926695fga.37 for ; Sun, 25 Jan 2009 00:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FUs8V8gaXy+W4HXiuRiZ1JMezCyzMjILQ9GOQhFPA9s=; b=Vd/EEm9pqM/po85XxqoZ4DE8ifFm9AWKa3FnMbM4yMVBNmncbALHSyj6xzKXX5QgpM WzTR1MBHVq7DlYIjdJoPgChfs8ktswvRzBJlvUMEJ6q4Ks5aNLUcVg8ytXG6CZr2d/OD +K8rCF0ij5IZxZYlnSxNlah57Rsp9D2h0HRE8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=q/eqBsv4rnanNhPT5kgRqhNqEmi9eb5hAIcqKRBTdd3SFRoxtIiZGHDdiT+Vr3yZ26 MaEo0eTmOv7oAHiqjMAGUk9vlyN2ruPz+tXbDqRiWwM6qeYkON1yWoMtap/NLfAbWF86 RNb6xgj1zMQF6gdhUcVIjER6SGQb3NVxdDsT0= MIME-Version: 1.0 Received: by 10.86.51.10 with SMTP id y10mr830614fgy.51.1232871355074; Sun, 25 Jan 2009 00:15:55 -0800 (PST) In-Reply-To: <090124151113.ZM24112@torch.brasslantern.com> References: <200901161939.54651.arvidjaar@newmail.ru> <090116102934.ZM22119@torch.brasslantern.com> <200901241859.30029.arvidjaar@gmail.com> <090124151113.ZM24112@torch.brasslantern.com> Date: Sun, 25 Jan 2009 09:15:55 +0100 Message-ID: <2d460de70901250015h45711d21i41c52cd829e3d46d@mail.gmail.com> Subject: Re: sourcing a sh file in zsh From: Richard Hartmann To: Bart Schaefer Cc: zsh-workers@sunsite.dk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/8900/Sun Jan 25 03:40:27 2009 on bifrost X-Virus-Status: Clean On Sun, Jan 25, 2009 at 00:11, Bart Schaefer wrote: > emulate sh -c 'source file.sh' While a command and eval are not the same, -c might make more sense as it's more natural to read. > (2) is a nit. Mainly it affects whether emulate accepts only one argument > to be eval'd. emulate sh -c 'foo' -c 'bar' might be an option, but I wonder if people would use that. Richard PS: Having `emulate` return the current emulation mode is a neat idea.