From owner-freebsd-questions Wed Jan 5 14:31: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id F12A114D51 for ; Wed, 5 Jan 2000 14:31:01 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id XAA37333; Wed, 5 Jan 2000 23:31:00 +0100 (CET) (envelope-from olli) Date: Wed, 5 Jan 2000 23:31:00 +0100 (CET) Message-Id: <200001052231.XAA37333@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Subject: Re: Poss bug in /bin/sh? X-Newsgroups: list.freebsd-questions In-Reply-To: <8505d9$1mj1$1@atlantis.rz.tu-clausthal.de> User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eric J. Schwertfeger wrote in list.freebsd-questions: > On Wed, 5 Jan 2000, Oliver Fromme wrote: >> >From the sh(1) manpage: >> >> If the delimiter as specified on the initial line is quoted, >> then the here-doc-text is treated literally, otherwise the >> text is subjected to parameter expansion, command >> substitution, and arithmetic expansion (as described in the >> section on `Expansions''). > > I understand this, and should have been more specific. I'd expect shell > expansion in this case, and it obviously is expanding, given the output > below. What I don't expect is output of > > #define PTY_BSD_SCHEME_FIRST_CHARS "" > #define PTY_BSD_SCHEME_SECOND_CHARS "" > [...] Ah, now I understand. Sorry for the confusion. But I cannot reproduce your problem. I get "PQRSpqrs" as output, not "". I'm using FreeBSD 3.4-19991219-STABLE. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message