Path: utzoo!utgpu!watmath!clyde!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.sources.wanted Subject: Re: "Safe" unshar Message-ID: <346@lakart.UUCP> Date: 27 Nov 88 19:08:44 GMT References: <440@rhesus.primate.wisc.edu> Organization: Lakart Corporation, Newton, MA Lines: 27 From article <440@rhesus.primate.wisc.edu>, by bin@primate.wisc.edu (Brain in Neutral): > From article <1240@vsi1.UUCP>, by lmb@vsi1.UUCP (Larry Blair): >> I'm looking for a version of unshar that does not execute the file it is >> unshar'ing. The version that I last pulled of the net ultimately passes >> the file to sh for execution. > > What is it supposed to do, then? Just print the commands it thinks it's > supposed to execute? What it does, is to look for lines of the form: sed 's/^X//' > file.xyz << FunkyStuff get the ^X, file.xyz and FunkyStuff out, open file.xyz for output, read the input shar till it finds a line FunkyStuff, and trim X off the start of every line. Just like the version I have does. If anyone is interested I can post it to comp.sources.misc, which I think is where I got it from (or maybe it came from comp.sources.unix). Comments Mr. Albery? or Mr. Salz? As an aside I can personally vouch that it doesn't need /bin/sh to operate: it has even been ported to CP/M. So there :-P ( :-) ) -- dg@lakart.UUCP - David Goodenough +---+ | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@harvard.harvard.edu +---+