Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 1999 00:40:02 -0700 (PDT)
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13980: Parameter expansion pattern removal bug in sh 
Message-ID:  <199909270740.AAA65108@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13980; it has been noted by GNATS.

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Robert Webb <robert@webbhead.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13980: Parameter expansion pattern removal bug in sh 
Date: Mon, 27 Sep 1999 09:36:16 +0200

 On Sun, 26 Sep 1999 07:26:48 MST, Robert Webb wrote:
 
 > The last two echos output garbage in place of the trailing pattern
 > which was removed.
 
 The /bin/sh in both 3.2-STABLE and 4.0-CURRENT produce the expected
 results:
 
 $f=/tmp/user/wpage.html
 ${f%.*}=/tmp/user/wpage
 ${f%/*}=/tmp/user
 ${f%"/wpage.html"}=/tmp/user
 
 "$f"=/tmp/user/wpage.html
 "${f%.*}"=/tmp/user/wpage
 "${f%/*}"=/tmp/user
 "${f%"/wpage.html"}"=/tmp/user
 
 Time to upgrade? :-)
 
 Ciao,
 Sheldon.
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909270740.AAA65108>