From owner-freebsd-current@FreeBSD.ORG Mon Nov 1 19:55:48 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 3D57316A4F7; Mon, 1 Nov 2004 19:55:48 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4150C43D49; Mon, 1 Nov 2004 19:55:47 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-b226.otenet.gr [212.205.244.234]) iA1Jti4h004909; Mon, 1 Nov 2004 21:55:45 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iA1JtdIJ002322; Mon, 1 Nov 2004 21:55:40 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iA1JtdS9002321; Mon, 1 Nov 2004 21:55:39 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 1 Nov 2004 21:55:39 +0200 From: Giorgos Keramidas To: Jilles Tjoelker Message-ID: <20041101195539.GB2127@gothmog.gr> References: <000901c4bfdc$6d1c2d50$0200000a@redline> <20041101164117.M14827@mp2.macomnet.net> <20041101135250.GA41645@orion.daedalusnetworks.priv> <20041101183035.GC22427@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041101183035.GC22427@stack.nl> cc: freebsd-current@freebsd.org 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 19:55:48 -0000 On 2004-11-01 19:30, Jilles Tjoelker wrote: > On Mon, Nov 01, 2004 at 03:52:51PM +0200, Giorgos Keramidas wrote: > > > > 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"); This, or the bash-like syntax of: vsystem("echo '# Note that BSD'\\''s export syntax...' >> /etc/exports"); Good catch, Jilles :-)