Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site uvm-cs.UUCP Path: utzoo!linus!decvax!dartvax!uvm-gen!uvm-cs!hartley From: hartley@uvm-cs.UUCP (Stephen J. Hartley) Newsgroups: net.unix-wizards Subject: /bin/sh feature? Message-ID: <274@uvm-cs.UUCP> Date: Fri, 6-Jul-84 17:19:32 EDT Article-I.D.: uvm-cs.274 Posted: Fri Jul 6 17:19:32 1984 Date-Received: Sun, 8-Jul-84 00:19:48 EDT Organization: University of Vermont Lines: 14 Here is a "feature" of /bin/sh that tripped me up for a while. A beer to the first wizard to figure this one out (you have to come to Burlington, VT to collect, though). The following shell script does nothing, prints no messages, and changes no files: : Daily uucp script : assumes you have subdirectories. : modified to save another day's LOGFILE SPOOL=/usr/spool/uucp mv $SPOOL/LOGFILE.old $SPOOL/LOGFILE.older mv $SPOOL/LOGFILE $SPOOL/LOGFILE.old -- "If that's true, then I'm the Pope!" Stephen J. Hartley USENET: decvax!dartvax!uvm-gen!uvm-cs!hartley The University of Vermont