From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5269 invoked by alias); 29 Apr 2013 05:25:29 -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: 17791 Received: (qmail 8121 invoked from network); 29 Apr 2013 05:25:26 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=I4hNYMesRa5aHJdLOGQWcrIhO8Vi3JhxVQI0eOV+dwU=; b=AHBNkdmdUZI+4jOUcj8CvIcALhaACh0sy/Q7fUTtosfoNkrQK6NUxtFVGGqrzJEslI W9LLggaphXNQ8xQqOBQxlQvP2JxqHPKjdqtZJNN+jLt7FS3/VeLXHFIshvsBABzbpjCK UhbiLidx45GHlavrcmigpNlryZaaxyp1ePQ3OB8O5uo+L4CbuFFBaQaON3frYMdouG5H 3uPlzlf3GhWmVP4loeoeqctKQkWR0pX81ExD9XxEZWFayxwKrYbpP8VNVnKglqV/OxVy Ntcky/LY+OhAEvvylUxyAglEGSL3WRWVy/S0Y3cDMPpP+qVFJ1WLIVdCxZ/Pj5GDeo32 NL3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eatnumber1.com; s=google; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=I4hNYMesRa5aHJdLOGQWcrIhO8Vi3JhxVQI0eOV+dwU=; b=ZUFBC4R2IvytZOgMwzn9D2Mq0P+zizVWYAnK8JmqI5TvgxtkxUPM+mpBnOheQaDQt8 1nti/b+oFmTTceZZHnZaOMFDikY6YtE3Dk2tSktXkOlkcZBcLXnxLu7EYHJslZcrT/bX duOjzPB6bsdw9JfOVMu9FU2paY71AVku+FGlU= X-Received: by 10.50.107.106 with SMTP id hb10mr119592igb.25.1367213120942; Sun, 28 Apr 2013 22:25:20 -0700 (PDT) MIME-Version: 1.0 Sender: eatnumber1@gmail.com In-Reply-To: <130426180127.ZM18989@torch.brasslantern.com> References: <130426180127.ZM18989@torch.brasslantern.com> From: Russell Harmon Date: Sun, 28 Apr 2013 22:25:00 -0700 X-Google-Sender-Auth: IgjIW6YPPcauGG6kd_ZAicRlhwI Message-ID: Subject: Re: Augmenting a Sticky Emulation Mode To: Bart Schaefer Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=e89a8f643b6e68445b04db791cec --e89a8f643b6e68445b04db791cec Content-Type: text/plain; charset=UTF-8 Works great, thanks. I notice however that the following crashes zsh: emulate -R sh -o braceexpand -c 'foo() {; setopt; }' (specifically, setting braceexpand this way causes the crash) -- Russell Harmon On Fri, Apr 26, 2013 at 6:01 PM, Bart Schaefer wrote: > On Apr 26, 2:40pm, Russell Harmon wrote: > } > } Is it possible to augment a sticky emulation mode with additional > options? > > Yes, but it requires version 5.0.x. > > } Specifically, I'd like the something like the following to return zero: > } emulate -R sh -c 'setopt kshglob; function foo() {; setopt; }'; foo | > grep kshglob > > emulate -R sh -o kshglob -c 'foo() {; setopt; }'; foo | grep kshglob > --e89a8f643b6e68445b04db791cec--