From owner-cvs-usrbin Fri Aug 29 03:54:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA26431 for cvs-usrbin-outgoing; Fri, 29 Aug 1997 03:54:24 -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 DAA26406; Fri, 29 Aug 1997 03:54: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 TAA15709; Fri, 29 Aug 1997 19:51:38 +0900 (JST) To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: wosch@apfel.de (Wolfram Schneider), cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-usrbin@freebsd.org, drepper@ipd.info.uni-karlsruhe.de (Ulrich Drepper) 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: <19970829074749.WJ48805@uriah.heep.sax.de> In-reply-to: j@uriah.heep.sax.de (J Wunsch)'s message of Fri, 29 Aug 1997 07:47:49 +0200. <19970829074749.WJ48805@uriah.heep.sax.de> 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 19:51:32 +0900 Message-ID: <15706.872851892@itojun.csl.sony.co.jp> Sender: owner-cvs-usrbin@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Why not this way? >+ if [ -d "$i" ]; then >+ elif [ -f "$i" ]; then >+ else >+ echo "$i is neither file nor directory, not archived" 1>&2 I got no specific opinion right now on how to treat unreadable (and existing) file, so pls modify as you like... itojun