Re: Safe sourcing of rc files

2000-04-27 Thread Sheldon Hearn
On Thu, 27 Apr 2000 16:21:56 +0800, Adrian Chadd wrote: > Nope, feel free and go ahead to commit something. I don't mind either > way. Excellent. I've committed the function to defaults/rc.conf and the calls to it from the various rc scripts. I realize that this is something we want backport

Re: Safe sourcing of rc files

2000-04-27 Thread Adrian Chadd
On Thu, Apr 27, 2000, Sheldon Hearn wrote: > > > On Wed, 26 Apr 2000 22:31:27 +0200, Neil Blakey-Milner wrote: > > > Unless someone comes back with negative feedback, I'll be pushing for a > > commit for this (and all that depend on this change) on the weekend. > > > > Consider this a request

Re: Safe sourcing of rc files

2000-04-27 Thread Sheldon Hearn
On Wed, 26 Apr 2000 22:31:27 +0200, Neil Blakey-Milner wrote: > Unless someone comes back with negative feedback, I'll be pushing for a > commit for this (and all that depend on this change) on the weekend. > > Consider this a request for review and comment. My intention is to commit the patc

Re: Safe sourcing of rc files

2000-04-27 Thread Doug Barton
Neil Blakey-Milner wrote: > > On Wed 2000-04-19 (16:51), Neil Blakey-Milner wrote: > > I have another idea: We make a sh script named "rcsource" or whatever, > > which we source when we want to have the rc environment, stealing your > > code maliciously: > > > > /-- > > sourcercs_sourced_files=

Re: Safe sourcing of rc files

2000-04-26 Thread Neil Blakey-Milner
On Wed 2000-04-19 (16:51), Neil Blakey-Milner wrote: > I have another idea: We make a sh script named "rcsource" or whatever, > which we source when we want to have the rc environment, stealing your > code maliciously: > > /-- > sourcercs_sourced_files= > sourcercs ( ) { > local rc_conf_

Re: Safe sourcing of rc files

2000-04-19 Thread Adrian Chadd
On Wed, Apr 19, 2000, Neil Blakey-Milner wrote: > On Mon 2000-04-10 (00:10), Doug Barton wrote: > > +if [ -z "${sourcercs_defined}" ]; then > > +sourcercs_defined=yes > > +sourcercs ( ) { > > +local sourced_files > > +for i in ${rc_conf_files}; do >

Re: Safe sourcing of rc files

2000-04-19 Thread Richard Wackerbarth
On Wed, 19 Apr 2000, Neil Blakey-Milner wrote: > I have another idea: We make a sh script named "rcsource" or whatever, > which we source when we want to have the rc environment, [snip] > One possible extension may be a specifier of a preprocessor for a file: > > preprocessor__etc_defaults_rc.c

Re: Safe sourcing of rc files

2000-04-19 Thread Neil Blakey-Milner
On Mon 2000-04-10 (00:10), Doug Barton wrote: > +if [ -z "${sourcercs_defined}" ]; then > +sourcercs_defined=yes > +sourcercs ( ) { > +local sourced_files > +for i in ${rc_conf_files}; do > +case "${sourced_files}" in > +

Re: Safe sourcing of rc files

2000-04-10 Thread Richard Wackerbarth
On Mon, 10 Apr 2000, Doug Barton wrote: > > Since the move to /etc/defaults/rc.conf, one of the consistent examples > of foot-shooting is the user blindly copying that file to /etc/rc.conf > without reading the warning at the end not to do this, or at least to > delete the bit at the end that

Safe sourcing of rc files

2000-04-10 Thread Doug Barton
Since the move to /etc/defaults/rc.conf, one of the consistent examples of foot-shooting is the user blindly copying that file to /etc/rc.conf without reading the warning at the end not to do this, or at least to delete the bit at the end that does the recursive sourcing of /etc/rc.conf an