Re: [wmii] Two wmii.rc issues

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat, 3 May 2008 11:56:40 -0400

On Sat, May 03, 2008 at 11:44:03AM +0200, Juan Pablo Aroztegi wrote:
>/var/tmp/portage/sys-devel/bc-1.06-r6/temp/environment: line 1:
>*=urxvt: command not found

It seems like something does
env >$temp/environment; . $temp/environment.

Really, this is a bug in their code. Unfortunately, there's no
way to unset an envorinment variable in rc (Yes, it's lame.
Complane to Tom, if you'd like, but it won't help). I could
always switch to the Unix rc port, and earn the neverending ire
of some Plan 9 folks, though.

>/usr/lib/portage/bin/ebuild.sh: line 1658: /bin/sort: Argument list too long
>/usr/lib/portage/bin/ebuild.sh: line 1658: /bin/tr: Argument list too long
>/usr/lib/portage/bin/misc-functions.sh: line 433: /usr/bin/find:

These are because rc stores functions in its environment. I'll
add code to wi_runcmd to unset them; you're not the first to
have this trouble.

Something like:

fn `{env | sed -n 's/^fn#([^=]+).*/\1/p'}

Or, you could use zsh, which automagically strips environment
variables that it doesn't like.

-- 
Kris Maglione
You don't have to be crazy to work here
but it sure helps!!!!!!!
PGP: http://suckless.org/~jg/pubkey.pgp
SHA1 (pubkey.pgp) = 2d464f9dbb186bee6f4faa88e2f6c5802bcfd935

Received on Sat May 03 2008 - 17:57:13 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:40:47 UTC