Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sourcing a sh file in zsh
- X-seq: zsh-workers 26427
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: Andrey Borzenkov <arvidjaar@xxxxxxxxx>
- Subject: Re: sourcing a sh file in zsh
- Date: Sun, 25 Jan 2009 11:25:34 +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=hii7gvuuvUx0+rGHJo4BJeCai27PzTTjr//B1lralHw=; b=V4Ds7ZiTU7qHxITYsBkicbIcaSGpgWd9mFuNJ0vYZPgzqPBXLHD/0Qiunh+J2GbrVx cafdE3kZaXKPCSJy9NirjAi4RYkrpwYiFQj8v3QKmzzUkDLf5OIxI6FQZsLKMCOT7Ef8 El2NSiy2YHzSYatZhAuitdpgY8zvRzsqDzhuQ=
- 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=qZfMWTqWCDLNslQinroUheHwC7lwP55wlSPs3ylg2O//ejyi99iX1eBKPtUKiY1bf8 lsGPuDodJq6r5Jx+w0JEmW6kqjKy9B5eGwK6YVhfvU9Sn85cSs495zbU9+riueEiY7V8 20JDG7ZL9m9zTRsXga1P4mYvOIg7HP5xgM7JI=
- In-reply-to: <200901251156.04815.arvidjaar@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <BD9D2405-AD6A-4336-9C8A-85149165B6B8@xxxxxxxxx> <20090124173836.64403fdc@pws-pc> <090124152643.ZM24163@xxxxxxxxxxxxxxxxxxxxxx> <200901251156.04815.arvidjaar@xxxxxxxxx>
On Sun, Jan 25, 2009 at 09:56, Andrey Borzenkov <arvidjaar@xxxxxxxxx> wrote:
> Actually you can always do
>
> foo=$(<<-\HERE
> function foo {
> ...
> }
> HERE)
> emulate -c sh $foo
The problem with that is that it's not immediately apparent that this
function is intended to be executed in a different emulation.
Bart's suggestion is a lot easier to read for a third party and will
thus create less errors.
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author