From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nsfone.fone.net ([206.168.68.96]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1FSMtD-0003Ik-00 for ; Sat, 08 Apr 2006 19:30:47 -0400 Received: from mail2.fone.net (mail2.fone.net [206.168.68.165]) by nsfone.fone.net (8.13.6+Sun/8.12.10) with ESMTP id k38NSf3c015323 for ; Sat, 8 Apr 2006 17:28:41 -0600 (MDT) Received: from grandmasfury (ftcw30.ftc.fone.net [207.174.192.34]) by mail2.fone.net (8.12.10+Sun/8.12.10) with SMTP id k38NT63C000913 for ; Sat, 8 Apr 2006 17:29:08 -0600 (MDT) Message-ID: <001901c65b64$64b9e740$6501a8c0@grandmasfury> From: "Tyler Littlefield" To: "Speakup is a screen review system for Linux." References: <20060408221656.GB16356@localhost.localdomain> Subject: Re: help with a bash script please Date: Sat, 8 Apr 2006 17:30:11 -0600 Organization: Dataplus MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.3.0.1, Antispam-Data: 2006.04.08.155105 X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.7 Precedence: list Reply-To: Tyler Littlefield , "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 23:30:47 -0000 I am not the best, and haven't looked at bash, but try moving the ! to the inside of the parens. Thanks, ----- Original Message ----- From: "Gregory Nowak" To: Sent: Saturday, April 08, 2006 4:16 PM Subject: help with a bash script please > -----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----- > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup