Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 1997 19:51:32 +0900
From:      itojun@itojun.org
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
Message-ID:  <15706.872851892@itojun.csl.sony.co.jp>
In-Reply-To: j@uriah.heep.sax.de (J Wunsch)'s message of Fri, 29 Aug 1997 07:47:49 %2B0200. <19970829074749.WJ48805@uriah.heep.sax.de>
References:  <19970829074749.WJ48805@uriah.heep.sax.de>

index | next in thread | previous in thread | raw e-mail

>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


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15706.872851892>