Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Finder]Solaris has older find command, S2.2 will not run. #7061

Closed
@ahundiak

Description

@ahundiak

By default, Sun (well Oracle) Solaris has it's own find command which does not support gnu find options such as -noleaf or -regexptype. So S2.2 does not work out of the box.

A simple patch to Finder::Shell with a check for PHP_OS=sunos will fix the problem. I can prepare one if need be.

However, I think the problem is more generic. It's same issue as when you attempt to do browser detection. You still never know if the system will support a command until you test for it. In the case of solaris, you could install a gnu find command in which case all would be well.

I think an actual version test for find (or gfind) would be better than os sniffing.

I see that there was also a proposal to make a finder factory service. That would allow the option of specifying which adapter to use. Makes things real simple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions