PMA Errors

Jasper Frumau jasperfrumau at gmail.com
Wed Aug 18 23:14:32 PDT 2010


On Wed, Aug 18, 2010 at 11:10 PM, Ryan Schmidt <ryandesign at macports.org>wrote:

>
> On Aug 18, 2010, at 13:20, Jasper Frumau wrote:
>
> > On Wed, Aug 18, 2010 at 10:07 PM, Ryan Schmidt wrote:
> >
> >> I guess "!" has special meaning. You could try:
> >>
> >> grep -r -- ':q!' .
> >>
> >> (where "." is the directory you want to search)
> >>
> >
> > Thank!
> >
> > jaspersmbp:www jasper$ grep -r -- ':q!' phpmyadmin
> > phpmyadmin/config.inc.php:??5:q!
> > jaspersmbp:www jasper$ cd phpmyadmin
> > jaspersmbp:phpmyadmin jasper$ sudo vim config.inc.php
> >
> >
> > Found the culprit as you expected. Did not exit properly using vim. All
> good now. Thanks a lot Ryan! So I guess "--" makes grep look for ! instead
> of using its special meaning?
>
> Well, "--" means "treat everything that follows as a filename / directory,
> not a flag, even if it begins with a dash" so that wasn't really very
> relevant here after all.
>

I understand now. Thanks.


>
> You started by using double quotes, in which special characters like "!"
> get interpreted.


Like PHP I guess. Makes sense now.


> ("!" is special to Bash, not to Grep.) Since you didn't want that, using
> single quotes is the solution to suppress the special meaning.
>
> You also weren't specifying what to search, hence stdin was being searched,


being standard input as far as I have found out. So it started looking for
any input.


> hence grep's warning that you asked for a recursive search (which is
> applicable only to directories) but you didn't specify any directories.
>

OK. Thanks a lot for teaching me something new Ryan. I appreciate it a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100819/7694dce1/attachment.html>


More information about the macports-users mailing list