Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sourcing a sh file in zsh
- X-seq: zsh-workers 26424
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: sourcing a sh file in zsh
- Date: Sun, 25 Jan 2009 09:15:55 +0100
- Cc: zsh-workers@xxxxxxxxxx
- 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=
- In-reply-to: <090124151113.ZM24112@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <BD9D2405-AD6A-4336-9C8A-85149165B6B8@xxxxxxxxx> <200901161939.54651.arvidjaar@xxxxxxxxxx> <090116102934.ZM22119@xxxxxxxxxxxxxxxxxxxxxx> <200901241859.30029.arvidjaar@xxxxxxxxx> <090124151113.ZM24112@xxxxxxxxxxxxxxxxxxxxxx>
On Sun, Jan 25, 2009 at 00:11, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author