Date: Wed, 13 Jan 1999 01:03:10 +0900 (JST) From: dcs@newsguy.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/9459: loader still doesn't escape characters Message-ID: <199901121603.BAA00358@daniel.sobral>
index | next in thread | raw e-mail
>Number: 9459
>Category: kern
>Synopsis: set prompt=\${currdev} won't produce expected results
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 12 08:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Daniel C. Sobral
>Release: FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:
Current as of Jan 12, three stage loader.
>Description:
Though my previous PR was closed, the patch applied was a
modified one. And while I agree with almost all changes, a single
one of them prevent character escape from working.
>How-To-Repeat:
set prompt=\${currdev} on loader's prompt, or any
variations thereof.
>Fix:
Apply the following fix:
--- interp_parse.c 1999/01/12 15:53:53 1.1.1.1
+++ interp_parse.c 1999/01/12 15:55:00
@@ -103,7 +103,7 @@
if ((*p == '\\') && p[1]) {
p++;
PARSE_FAIL(i == (PARSE_BUFSIZE - 1));
- buf[i] = *p++;
+ buf[i++] = *p++;
} else if (isquote(*p)) {
quote = quote ? 0 : *p;
++p;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901121603.BAA00358>
