Date: Thu, 02 Jan 2003 15:16:54 -0800 From: Tim Kientzle <kientzle@acm.org> To: Paul Schenkeveld <fb-hackers@psconsult.nl> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? Message-ID: <3E14C866.1040306@acm.org> References: <1041540674.3e14a642d30b5@webmail1.isg.siue.edu> <4967.1041540976@critter.freebsd.dk> <20030102230154.A8638@psconsult.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
Paul Schenkeveld wrote: > If people think that -q is a good option for printenv, I can come up > with a patch for the standard printenv. Opinions? Some form of unambiguous output from printenv would be nice. I would suggest quoting both the variable name and the value just to be on the safe side. Even better: modify 'env' to support that format as input. Then you could use, e.g., printenv -q >saved_environment to record the environment and then use env - -r saved_environment <command> to recreate that environment. Tim Kientzle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E14C866.1040306>