From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17734 invoked by alias); 26 Apr 2014 20:39:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18776 Received: (qmail 24624 invoked from network); 26 Apr 2014 20:39:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140426133854.ZM31734@torch.brasslantern.com> Date: Sat, 26 Apr 2014 13:38:54 -0700 In-reply-to: Comments: In reply to Martin Vaeth "Re: zsh-newuser-install" (Apr 26, 10:07am) References: <140416102727.ZM19090@torch.brasslantern.com> <534FE710.3020601@eastlink.ca> <140417123722.ZM22179@torch.brasslantern.com> <20140423165024.1480528a@pws-pc.ntlworld.com> <20140425172112.7bf50606@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: zsh-newuser-install MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Apr 26, 10:07am, Martin Vaeth wrote: } Subject: Re: zsh-newuser-install } } BTW: "emulate -L bash" would be useful to read some distribution's } or user's bash setup files. Main difference to emulate -L sh would be } setopt ksh_glob no_sh_glob brace_expand } and that [[ $var ]] is treated equivalent to [[ -n $var ]]: I've started a separate thread on zsh-workers about [[ $var ]]. Regarding bash emulation, as of recent zsh you can do this kind of thing: emulate sh -o ksh_glob +o sh_glob -o brace_expand -c '. ~/.bashrc' Functions loaded from .bashrc will retain the options set on the emulate command line.