From: "Tyler Littlefield" <compgeek13@gmail.com>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: help with a bash script please
Date: Sat, 8 Apr 2006 17:30:11 -0600 [thread overview]
Message-ID: <001901c65b64$64b9e740$6501a8c0@grandmasfury> (raw)
In-Reply-To: <20060408221656.GB16356@localhost.localdomain>
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" <greg@romuald.net.eu.org>
To: <speakup@braille.uwo.ca>
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
prev parent reply other threads:[~ UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
Gregory Nowak
` Raul A. Gallegos
` Garrett Klein
` Lorenzo Taylor
` Tyler Littlefield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001901c65b64$64b9e740$6501a8c0@grandmasfury' \
--to=compgeek13@gmail.com \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).