patch to rcstest (from RCS)

rew wilber at alice.att.com
Thu Mar 21 13:00:16 AEST 1991


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 at 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;;



More information about the Comp.sources.bugs mailing list