From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EadJQ-0006Gs-7k for garchives@archives.gentoo.org; Fri, 11 Nov 2005 18:07:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jABI5jXN021061; Fri, 11 Nov 2005 18:05:45 GMT Received: from mail1.astercity.net (mail1.aster.pl [212.76.33.23]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jABHvgtP006191 for ; Fri, 11 Nov 2005 17:57:42 GMT Received: from dione.secured.pl (saturn.secured.pl [82.210.169.235]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail1.astercity.net (sendmail) with ESMTP id 55664BEC9 for ; Fri, 11 Nov 2005 18:57:42 +0100 (CET) From: Peper To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] [OT] Bash scripting 2 Date: Fri, 11 Nov 2005 18:57:40 +0100 User-Agent: KMail/1.8.92 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511111857.40664.peper@aster.pl> X-Archives-Salt: 01fd56bd-9617-4ccc-ad66-e434013c8b75 X-Archives-Hash: c0ec168dfc44fc83982408735122dafc Hello, How can i check whether i can create or overwrite a file? For example: If /etc/conf.d/net cannot be overwritten or created it return false. Overwriting test would be -w /etc/conf.d/net, but how can i check if i can create this file? I could check whether i can create new files in /etc/conf.d, but how can i get /etc/conf.d/ from /etc/conf.d/net ? -- Best Regards, Peper -- gentoo-user@gentoo.org mailing list