Article View: comp.sources.bugs
Article #629patch to rcstest (from RCS)
From: rew
Date: Thu, 21 Mar 1991 03:00
Date: Thu, 21 Mar 1991 03:00
28 lines
1411 bytes
1411 bytes
On my machine the rcstest shell script failed because of a peculiarity in the
date(1) function. When given the -u option (which it doesn't understand) it
not only prints an error message to stderr but also prints the local date to
stdout. This causes the "date" variable to wind up with two dates in it.
The included patch fixes this.
Bob Wilber wilber@homxb.att.com
*** rcstest.old Wed Mar 20 20:19:48 1991
--- rcstest Wed Mar 20 20:18:54 1991
***************
*** 136,142 ****
done
me=${LOGNAME-${USER-`who am i | sed 's/ .*//; s/.*!//'`}} || exit 2
! date=`date -u 2>/dev/null || TZ=GMT date` || exit 2
set $date
case $2 in
Jan) m=01;; Feb) m=02;; Mar) m=03;; Apr) m=04;; May) m=05;; Jun) m=06;;
--- 136,142 ----
done
me=${LOGNAME-${USER-`who am i | sed 's/ .*//; s/.*!//'`}} || exit 2
! date=`date -u 2>/dev/null` || date=`TZ=GMT date` || exit 2
set $date
case $2 in
Jan) m=01;; Feb) m=02;; Mar) m=03;; Apr) m=04;; May) m=05;; Jun) m=06;;
Technical Details
Message-ID:
<20084@alice.att.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!ulysses!andante!alice!wilberShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!ulysses!andante!alice!wilber From: wilber@alice.att.com (rew) Newsgroups: comp.sources.bugs Subject: patch to rcstest (from RCS) Keywords: RCS Message-ID: <20084@alice.att.com> Date: 21 Mar 91 03:00:16 GMT Reply-To: wilber@homxb.att.com Organization: AT&T, Bell Labs Lines: 30