From owner-freebsd-current@FreeBSD.ORG Mon Nov 1 18:30:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 629DC16A4CE; Mon, 1 Nov 2004 18:30:38 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C0AE43D1D; Mon, 1 Nov 2004 18:30:37 +0000 (GMT) (envelope-from jilles@stack.nl) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mailhost.stack.nl (Postfix) with ESMTP id 6FE7F1F1B7; Mon, 1 Nov 2004 19:30:36 +0100 (CET) Received: by turtle.stack.nl (Postfix, from userid 1677) id 4FABB1CCA4; Mon, 1 Nov 2004 19:30:36 +0100 (CET) Date: Mon, 1 Nov 2004 19:30:36 +0100 From: Jilles Tjoelker To: Giorgos Keramidas Message-ID: <20041101183035.GC22427@stack.nl> References: <000901c4bfdc$6d1c2d50$0200000a@redline> <20041101164117.M14827@mp2.macomnet.net> <20041101135250.GA41645@orion.daedalusnetworks.priv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041101135250.GA41645@orion.daedalusnetworks.priv> X-Operating-System: FreeBSD 5.2.1-RELEASE-p8 i386 User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org cc: Craig Reyenga Subject: Re: exports typo X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2004 18:30:38 -0000 On Mon, Nov 01, 2004 at 03:52:51PM +0200, Giorgos Keramidas wrote: > On 2004-11-01 16:41, Maxim Konovalov wrote: > > On Mon, 1 Nov 2004, 01:31-0500, Craig Reyenga wrote: > > > In /usr/src/usr.sbin/sysinstall/config.c: > > > > > > vsystem("echo '# Note that BSD's export synatx is \"host-centric\" vs. > > > Sun\'s \"FS-centric\" one.' >> /etc/exports"); > > > > > > 'Nuf said. > > > > Fixed about a month ago: > > > > revision 1.227 > > date: 2004/10/04 15:13:51; author: rse; state: Exp; lines: +1 -1 > > fix typo in generated /etc/exports: s/synatx/syntax/ > > A minor buglet still remains, IMHO: > > - vsystem("echo '# Note that BSD's export syntax is \"host-centric\" vs. Sun\'s \"FS-centric\" one.' >> /etc/exports"); > + vsystem("echo '# Note that BSD\'s export syntax is \"host-centric\" vs. Sun\'s \"FS-centric\" one.' >> /etc/exports"); In /bin/sh, the backslash is not special in single quotes. Try this (not tested either): > - vsystem("echo '# Note that BSD's export syntax is \"host-centric\" vs. Sun\'s \"FS-centric\" one.' >> /etc/exports"); > + vsystem("echo '# Note that BSD'"'"'s export syntax is > \"host-centric\" vs. Sun'"'"'s \"FS-centric\" one.' >> /etc/exports"); Jilles Tjoelker