VI4IO / io-500-dev

IO-500
37 stars 22 forks source link

pfind is wrongly escaped #37

Closed JulianKunkel closed 5 years ago

JulianKunkel commented 5 years ago

The find is not properly escaped for bash execution: $ find -name 01 may match a file in the current directory that is called, e.g., test01test If that happens find becomes: $ find -name test01test That leads to 0 found result.

JulianKunkel commented 5 years ago

Note that a hit in the past had serious performance implications as find first checks for filename, only if that matches a stat() is executed.