From owner-cvs-usrbin Thu Aug 28 17:53:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA01137 for cvs-usrbin-outgoing; Thu, 28 Aug 1997 17:53:20 -0700 (PDT) Received: from itojun.csl.sony.co.jp (root@itojun.csl.sony.co.jp [133.138.1.134]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA01123; Thu, 28 Aug 1997 17:53:08 -0700 (PDT) From: itojun@itojun.org Received: from localhost (itojun@localhost [127.0.0.1]) by itojun.csl.sony.co.jp (8.8.5/3.3W3) with ESMTP id JAA10114; Fri, 29 Aug 1997 09:50:17 +0900 (JST) To: Wolfram Schneider Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-usrbin@freebsd.org, Ulrich Drepper , joerg_wunsch@uriah.heep.sax.de Subject: Re: cvs commit: src/usr.bin/shar shar.sh X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 References: In-reply-to: Wolfram Schneider 's message of 28 Aug 1997 23:09:53 +0200. X-Mailer: comp (MHng project) version 1997/08/04 03:38:46, by Jun-ichiro Itoh MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-ID: Date: Fri, 29 Aug 1997 09:50:14 +0900 Message-ID: <10111.872815814@itojun.csl.sony.co.jp> Sender: owner-cvs-usrbin@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> Modified files: >> usr.bin/shar shar.sh >> Log: >> To cope with shell archive file generated by GNU sharutils 4.2. >> (it assumes that shar will bark if there's invalid argument specified) >The patch is not complete. shar(1) still exit with value >zero even a file is not readable. Sorry my mistake. I've applied one more patch. itojun -- Index: shar.sh =================================================================== RCS file: /home/ncvs/src/usr.bin/shar/shar.sh,v retrieving revision 1.2 diff -r1.2 shar.sh 44,45c44,45 < if [ ! -e $i ]; then < echo "$i does not exist" 1>&2 --- > if [ ! \( -d $i -o -r $i \) ]; then > echo "$i inaccessible or not exist" 1>&2 75c75 < sed 's/^/X/' $i --- > sed 's/^/X/' $i || exit