summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1995-01-09 20:00:54 +0000
committerpaul <paul@FreeBSD.org>1995-01-09 20:00:54 +0000
commit27f1f0b76a6f3b2fc14e7a233cd8a30fdbe9b635 (patch)
tree43480de715c9f9629607b12eec9ef1bfdbf81853
parentce3903884a66033cf80dc5516dec2ae1601991a1 (diff)
downloadFreeBSD-src-27f1f0b76a6f3b2fc14e7a233cd8a30fdbe9b635.zip
FreeBSD-src-27f1f0b76a6f3b2fc14e7a233cd8a30fdbe9b635.tar.gz
Fix a bug with handling backslash escapes inside some quotes.
Should solve our problems with edit-pr.
-rw-r--r--bin/sh/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index f3b9bcf..d890595 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: parser.c,v 1.3 1994/09/24 02:58:08 davidg Exp $
*/
#ifndef lint
@@ -1181,7 +1181,7 @@ parsebackq: {
while ((c = pgetc ()) != '`') {
if (c == '\\') {
c = pgetc ();
- if (c != '\\' && c != '`' && c != '$'
+ if (c != '`' && c != '$'
&& (!dblquote || c != '"'))
STPUTC('\\', out);
}
OpenPOWER on IntegriCloud