Date: Sun, 26 Feb 1995 21:40:00 +0100 (MET) From: guido@gvr.win.tue.nl (Guido van Rooij) To: current@FreeBSD.org Subject: broken sh behaviour (*with* patch) Message-ID: <199502262040.VAA01283@gvr.win.tue.nl>
next in thread | raw e-mail | index | archive | help
While we're at it, here is the patch ;-) -Guido --- /usr/src/bin/sh/expand.c.orig Sat Sep 24 04:57:34 1994 +++ /usr/src/bin/sh/expand.c Sun Feb 26 21:06:38 1995 @@ -402,8 +402,10 @@ STPUTC(lastc, dest); } } - if (lastc == '\n') { + p--; + while (lastc == '\n') { STUNPUTC(dest); + lastc = *--p; } if (in.fd >= 0) close(in.fd);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502262040.VAA01283>