Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: allow zsh to source a script and then become interactive
- X-seq: zsh-users 22667
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: allow zsh to source a script and then become interactive
- Date: Fri, 14 Apr 2017 16:14:45 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=wrbCRO1Cz0hHjwkhQBvuaUvpA5XIX5S9kzPChPBJqo8=; b=xSVgs7ya/3LTic4mBhkreluQp8jrSdm4k+91FZj95bcNlrqIGATpR9nkvixOUqJcGq xQfeyG6ks08dugOkLPjt/qD2yCmk9dVruo35ddq/B8KDql2qXNKr/ba66ltWEL92UlY8 M2VOhd9+Jp42gPqzsWr8+z+ktM7K7FNoSQ3PRoi8iA+Gn4JD9sIKNzTPnW3k0nwPNvqN y7nIX+0RqjTcdmiOfYLsVOYdQyiros/OJop3CZNtSAnWp07GUxGsm4+VGU8yMa8g3Fy/ 3aoKxL7WCbP+JMePoV/eWYDzyxkhOhJP1PZbnnyxn3S5S4HmVlRFP4BcYtK39sHFL8bW xxeg==
- In-reply-to: <4642151492209711@web5m.yandex.ru>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20170414165548.GA13756@teapot.bifb.org> <4642151492209711@web5m.yandex.ru>
On Apr 15, 1:41am, Nikolay Aleksandrovich Pavlov (ZyX) wrote:
}
} I tried to play with
} `ENV==(<<< $'emulate zsh\necho abc') ARGV0=sh zsh`,
} but apparently this does not work: e.g. I do not see `$path` variable
} in this case, though I do see `abc`. Guess $ENV is too late to
} switch emulation mode and have all necessary initialization steps be
} performed.
Using "emulate" only changes setopts, it doesn't re-initialize other
state that would be in place before the startup files are sourced.
Good idea, though -- it might work for Anthony's case. I'd recommend
"emulate -R zsh" for more thorough option reset.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author