Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ut-ngp.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!drutx!houxe!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!ut-sally!ut-ngp!werner From: werner@ut-ngp.UUCP Newsgroups: net.news.group Subject: bug in SS/US shell-script, posted some months ago Message-ID: <682@ut-ngp.UUCP> Date: Sun, 10-Jun-84 11:56:52 EDT Article-I.D.: ut-ngp.682 Posted: Sun Jun 10 11:56:52 1984 Date-Received: Mon, 11-Jun-84 00:46:11 EDT Organization: Comp. Center, Univ. of Texas at Austin Lines: 24a while ago, someone posted the shell-script below to provide the capability to subscribe or unsubscribe to a news-group with a command. If you should ever give the command SS without an argument, your .newsrc will get trashed completely. I can't give you a fix, even though I assume it is simple to the UN*X wizzard, which I am not. (it needs some checking for the presence of parameters) - but I want to warn you all ASAP, rather than make you wait until I figure it out with the help of some manuals. ===================== source of US/SS, as posted earlier ==================== case `basename "$0"` in SS) C=":";; *) C="!";; esac SEDCMD=`echo $* | sed 's#[^ ][^ ]*#-e "/^&[:!]/s/[:!]/$C/w /dev/tty"#g'` TMP=/tmp/rc$$ trap "rm $TMP" 2 eval "sed $SEDCMD <${NEWSRC=$HOME/.newsrc} >$TMP" mv $TMP $NEWSRC ====================== end of US/SS ==========================================