From owner-freebsd-hackers Thu Aug 22 05:12:20 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA09707 for hackers-outgoing; Thu, 22 Aug 1996 05:12:20 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA09700 for ; Thu, 22 Aug 1996 05:12:06 -0700 (PDT) Received: from campa.panke.de (anonymous234.ppp.cs.tu-berlin.de [130.149.17.234]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id NAA03060; Thu, 22 Aug 1996 13:47:54 +0200 Received: (from wosch@localhost) by campa.panke.de (8.6.12/8.6.12) id NAA00738; Thu, 22 Aug 1996 13:22:58 +0200 Date: Thu, 22 Aug 1996 13:22:58 +0200 From: Wolfram Schneider Message-Id: <199608221122.NAA00738@campa.panke.de> To: Michael Smith Cc: hackers@FreeBSD.org Subject: Quotes around variable values in /etc/sysconfig In-Reply-To: <199608211634.CAA11665@genesis.atrad.adelaide.edu.au> References: <199608211634.CAA11665@genesis.atrad.adelaide.edu.au> Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Michael Smith writes: > I missed Bruce's comment about quotes surrounding values in >sh config files like /etc/sysconfig - my question is basically >whether there is any reason (other than elegance) why all values could >not legitimately be quoted. 0) elegance 1) tradition 2) laziness [Bruce Evans, in an other mail] Quotes should be added as necessary. You always have to think about them because quoting may be required for metacharacters in the args. > Note that I'm not suggesting that this should be done for the >FreeBSD point of view; I'm just working on some tools to manage these >sort of files, and unconditionally quoting everything is easier 8) I remember a FAQ about unix shell(s). Wolfram