Hanma writes:
> What means ''grep: illegal option -- q
> Usage: grep -hblcnsviw pattern file . . .
> grep: illegal option -- q
> Usage: grep -hblcnsviw pattern file . . ."
> 
> it don't works. There is message "./install.sh[1756]: cd: 
> usr/share/icons/hicolor: [No such file or directory]
> cp: cannot access usr/share/icons/hicolor/48x48/apps/opera.png
> cp: cannot access usr/share/icons/hicolor/32x32/apps/opera.png
> cp: cannot access usr/share/icons/hicolor/22x22/apps/opera.png"

It means that the person who wrote the script assumed that 'grep'
would take a -q option.  That's true for the POSIX standards-
conforming grep (/usr/xpg4/bin/grep) and for GNU grep
(/usr/gnu/bin/grep), but unfortunately not true for /usr/bin/grep on
Solaris.

The problem is in this part of the 'install.sh' script (lines
1194-1197):

manifest_contains ()
{
    grep -q "$1"'$' Manifest.md5
}

Changing that "grep" to "ggrep" should fix the problem.

(For what it's worth, lack of support of -q in the default
/usr/bin/grep is just a bug, not an intentional feature.)

-- 
James Carlson, Solaris Networking              <[email protected]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to