Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: setopt noclobber in /proc-filesystem



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=foo

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author