From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12231 invoked from network); 17 Aug 2005 10:09:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Aug 2005 10:09:13 -0000 Received: (qmail 32468 invoked from network); 17 Aug 2005 10:09:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Aug 2005 10:09:06 -0000 Received: (qmail 861 invoked by alias); 17 Aug 2005 10:08:56 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9327 Received: (qmail 850 invoked from network); 17 Aug 2005 10:08:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Aug 2005 10:08:56 -0000 Received: (qmail 31379 invoked from network); 17 Aug 2005 10:08:56 -0000 Received: from unknown (HELO vrs.michael-prokop.at) (81.223.126.153) by a.mx.sunsite.dk with SMTP; 17 Aug 2005 10:08:50 -0000 Received: from localhost (unknown [81.223.126.153]) by vrs.michael-prokop.at (Postfix) with ESMTP id 5645A103F6 for ; Wed, 17 Aug 2005 12:08:50 +0200 (CEST) Date: Wed, 17 Aug 2005 12:08:49 +0200 From: Michael Prokop To: Zsh Users Subject: Re: setopt noclobber in /proc-filesystem Message-ID: <2005-08-17T12-04-01@devnull.michael-prokop.at> Reply-To: Michael Prokop Mail-Followup-To: Zsh Users References: <2005-08-15T13-09-25@devnull.michael-prokop.at> <20050815145854.GB46146@dan.emsphone.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7gLe/sNPhR777EPF" Content-Disposition: inline In-Reply-To: <20050815145854.GB46146@dan.emsphone.com> X-URL: http://www.michael-prokop.at/ X-Operating-System: Debian GNU/Linux - 2.6.11-grml on a i686 X-Registered-Linux-User: 224337 X-Crypto: GnuPG/1.2.3 http://www.gnupg.org X-GPG-Key-ID: 0x37E272E8 X-GPG-Key: http://www.michael-prokop.at/gpg X-GPG-Fingerprint: 04AE E62C 9502 CD34 A7DA 857B D8DF 53FB 37E2 72E8 User-Agent: mutt-ng devel-r316 (Debian) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 --7gLe/sNPhR777EPF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Dan Nelson [20050815 17:15]: > In the last episode (Aug 15), Michael Prokop said: > > % setopt noclobber > > % echo foo > /proc/sys/kernel/hotplug > > zsh: file exists: /proc/sys/kernel/hotplug > > Is there any chance to use option 'noclobber' but allow writing to > > /proc-filesystem anyway? I do know that there exists 'setopt > > clobber' ;-) and "echo ... >| /proc/..." as well but other users > > might not know this. > > I'd like to ship zsh on my live-cd-system with 'setopt noclobber' > > enabled but would like to avoid that users think the behaviour in > > /proc-fs is a bug. Any ideas? > sysctl -w kernel.hotplug=3Dfoo Hehe, I'd like to find a solution for the zsh-echo->/proc. ;) *I* do know that I can use sysctl and 'echo >|...' but other users do *not*. Therefore I need a solution where something like echo 3 > /proc/acpi/sleep works out-of-the-box. regards, -mika- --=20 ,'"`. http://www.michael-prokop.at/ ( grml.org -=BB Linux for texttool-users and sysadmins `._,' http://www.grml.org/ --7gLe/sNPhR777EPF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDAwyx2N9T+zficugRAhA4AJ9/cdTCIFAEQhs0o8jG7yQ2oJnr3gCeNKco 2EvkIWRasLG4t8BYs04Vp3A= =E8gy -----END PGP SIGNATURE----- --7gLe/sNPhR777EPF--