From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19962 invoked by alias); 19 Jan 2013 17:51:28 -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: 17592 Received: (qmail 20201 invoked from network); 19 Jan 2013 17:51:25 -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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.182 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=lIeiTmZMKR0+QrC4YCxTRqztAtqMRaP75/oi67Xs+eQ=; b=vmgUlAOFI1Tl9bmKnBCxvEPj0SCTV6S3E+I9iIHsQil5g/pOQea03NZfWCC90G0MRQ iEOehJ8rf+mlVA3lngONeOq4ahrliANcF3pbt+5H9LSGJUNgJeyBx389qtRyHuoWTiWm RMa1/jB8oistKfXXf4oW6gXlQVjBamzY3OQvWfMs9M280GQHkjhkOe/bcfjMNNmZPxym rD+DYUWS3s+ID5Vrg/9diimI6PE+odcZLUp6dSKXdz/OpV8iVk1ey2zQFPfDrOBPisNV tbrBW4AV7vbNTPIvbwXyapSNa7vRrXR0r7bGSRwXZj5sifOzkoqIQ18PVbZYOs6qfuic NEMQ== 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=lIeiTmZMKR0+QrC4YCxTRqztAtqMRaP75/oi67Xs+eQ=; b=jbfZNtx/v1YTmsXvmBCjpfOkGC0EAwgssn724clJ7wlXYrLMdzuTWYC+p8d34X5eCy v0XBvZVBaonsG2Ut1vDhZAmRAIrMx+Vb9WDlNkwV7XPMTR3FAGYtt8SRUmq+XBz3IIbX UYMNeE2tLHmNEP78BQddr/uFSExxVuXaQoQDA= X-Received: by 10.52.20.50 with SMTP id k18mr12393961vde.91.1358617882331; Sat, 19 Jan 2013 09:51:22 -0800 (PST) MIME-Version: 1.0 Sender: eatnumber1@gmail.com In-Reply-To: <50FAD0AF.60506@eastlink.ca> References: <50FAD0AF.60506@eastlink.ca> From: Russell Harmon Date: Sat, 19 Jan 2013 12:51:02 -0500 X-Google-Sender-Auth: MlUxhg3oLpOwM00QHhzHp09Ol7k Message-ID: Subject: Re: zsh functions not playing nice. To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=20cf3079b948430b5904d3a7e071 --20cf3079b948430b5904d3a7e071 Content-Type: text/plain; charset=UTF-8 Unfortunately, this is not possible. nice can only work on a per-process granularity, as it sets attributes of the affected process. Builtins and functions are run within the existing ZSH process. Scripts and binaries however, if run outside the existing ZSH process (e.g. not using the "source" builtin), can be niced, and should just work the way you wrote. -- Russell Harmon On Sat, Jan 19, 2013 at 11:58 AM, Ray Andrews wrote: > Gentlemen, > > I can't get this sort of thing to work: > > $ nice -n 20 some-zsh-function > > returns: > > "nice: some-zsh-function: No such file or directory. > > I can use 'nice' with any builtin or binary or script, just not with a > function. > How do I solve that? > > Thanks. > --20cf3079b948430b5904d3a7e071--