From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linserver.romuald.net.eu.org ([63.228.150.209]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1FSLkE-0002Zj-00 for ; Sat, 08 Apr 2006 18:17:26 -0400 Received: (qmail 16393 invoked by uid 1000); 8 Apr 2006 15:16:56 -0700 Date: Sat, 8 Apr 2006 15:16:56 -0700 From: Gregory Nowak To: speakup@braille.uwo.ca Subject: help with a bash script please Message-ID: <20060408221656.GB16356@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline X-PGP-Key: http://www.romuald.net.eu.org/pubkey.asc User-Agent: Mutt/1.5.11+cvs20060126 X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.7 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 22:17:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all. I'm having trouble with an if statement in a bash script I'm writing. What I want to do, is to check if a file doesn't have read permission. What I'm doing is: if !([ -r filename]) However, bash says that the command [-r is not found on line number. Can someone please tell me what I'm doing wrong, and show me how to do what I want to do properly? Thanks in advance. Greg - -- web site: http://www.romuald.net.eu.org gpg public key: http://www.romuald.net.eu.org/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) - -- Free domains: http://www.eu.org/ or mail dns-manager@EU.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEODZY7s9z/XlyUyARAgVJAKCyow1QR5lo7DjsNxUfAavCO86gFQCgmC+i S58rlWJzeICulyaj9sKfono= =QG4s -----END PGP SIGNATURE-----