From nobody@FreeBSD.org  Fri Nov 26 08:02:15 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7E87F16A4D0
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Nov 2004 08:02:15 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5369843D5D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Nov 2004 08:02:15 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iAQ82FiG081973
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Nov 2004 08:02:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iAQ82FjP081972;
	Fri, 26 Nov 2004 08:02:15 GMT
	(envelope-from nobody)
Message-Id: <200411260802.iAQ82FjP081972@www.freebsd.org>
Date: Fri, 26 Nov 2004 08:02:15 GMT
From: Shen <shxxb@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.conf: Syntax error: Unterminated quoted string
X-Send-Pr-Version: www-2.3

>Number:         74402
>Category:       conf
>Synopsis:       /etc/rc.conf: Syntax error: Unterminated quoted string
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 26 08:10:18 GMT 2004
>Closed-Date:    Fri Nov 26 09:33:25 GMT 2004
>Last-Modified:  Fri Nov 26 22:50:20 GMT 2004
>Originator:     Shen
>Release:        4.10
>Organization:
Esai network
>Environment:
IA
>Description:
Added some lines in /etc/rc.conf file, but made the mistake use a ' instead of a ", during boot processing, the error is: 

/etc/rc.conf: 79: Syntax error: Unterminated quoted string
Enter full path name of shell or RETURN for /bin/sh:

Now the problem is even entered /bin/sh, still do not have any function can change this configration file, even "vi" is not available


>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: "David G. Lawrence" <dg@dglawrence.com>
To: Shen <shxxb@hotmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/74402: /etc/rc.conf: Syntax error: Unterminated quoted string
Date: Fri, 26 Nov 2004 01:07:32 -0800

 > >Description:
 > Added some lines in /etc/rc.conf file, but made the mistake use a ' instead of a ", during boot processing, the error is: 
 > 
 > /etc/rc.conf: 79: Syntax error: Unterminated quoted string
 > Enter full path name of shell or RETURN for /bin/sh:
 > 
 > Now the problem is even entered /bin/sh, still do not have any function can change this configration file, even "vi" is not available
 
    Do this:
 
    mount -a
    vi /etc/rc.conf
 
 -DG
 
 David G. Lawrence
 President
 Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
 TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175
 The FreeBSD Project - http://www.freebsd.org
 Pave the road of life with opportunities.

From: Gerhard Meier <gemei2@web.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/74402: /etc/rc.conf: Syntax error: Unterminated quoted string
Date: Fri, 26 Nov 2004 10:18:37 +0100

 On Fri, Nov 26, 2004 at 08:02:15AM +0000, Shen wrote:
 > /etc/rc.conf: 79: Syntax error: Unterminated quoted string
 > Enter full path name of shell or RETURN for /bin/sh:
 > 
 > Now the problem is even entered /bin/sh, still do not have any function can change this configration file, even "vi" is not available
 
 After entering the single user mode, only your root filesystem
 is mounted. If /usr (vi lives in /usr/bin) is a separate
 filesystem, you have to mount it first. Try
 
 # mount -a -t ufs
 # /usr/bin/vi /etc/rc.conf
 
 /GM
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Fri Nov 26 09:32:48 GMT 2004 
State-Changed-Why:  
Good advice has been given in followups.  Please do not file a bug 
report for this kind of thing in future. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74402 

From: Parv <parv@pair.com>
To: Shen <shxxb@hotmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/74402: /etc/rc.conf: Syntax error: Unterminated quoted string
Date: Fri, 26 Nov 2004 17:44:20 -0500

 in message <200411260802.iAQ82FjP081972@www.freebsd.org>,
 wrote Shen thusly...
 >
 > Added some lines in /etc/rc.conf file, but made the mistake use a
 > ' instead of a "
 
 I suppose in either case the quotes, single or double, were balanced.
 That is, you eneded up w/ something like...
 
   var='value'
 
 
 ...and neither of the below two...
 
   var="value'
   var='value"
 
 
 > , during boot processing, the error is: 
 > 
 > /etc/rc.conf: 79: Syntax error: Unterminated quoted string
 > Enter full path name of shell or RETURN for /bin/sh:
 > 
 > Now the problem is even entered /bin/sh, still do not have any
 > function can change this configration file, even "vi" is not
 > available
 
 There is (s)ed (when vi usage is impossible), but before that at least
 / partition will need to be mounted read/write.
 
 
   - Parv
 
 -- 
 
>Unformatted:
