Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh functions not playing nice.
- X-seq: zsh-users 17592
- From: Russell Harmon <russ@xxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: zsh functions not playing nice.
- Date: Sat, 19 Jan 2013 12:51:02 -0500
- Cc: zsh-users@xxxxxxx
- 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=
- In-reply-to: <50FAD0AF.60506@eastlink.ca>
- 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: <50FAD0AF.60506@eastlink.ca>
- Sender: eatnumber1@xxxxxxxxx
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 <rayandrews@xxxxxxxxxxx>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.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author