mcandre / stank

stank: analyzers for determining whether files smell like rotten POSIX shell scripts, or faintly rosy like Ruby and Python scripts
Other
53 stars 0 forks source link

stank: -print0 (like find) #104

Open mcandre opened 4 years ago

mcandre commented 4 years ago

Offer a -print0 option to emit results using a NULL 0x00 separator rather than a line terminator separator. This helps recursive commands like:

stank . | xargs shellcheck

to work more reliably for file paths with spaces.

The new command would look more like:

stank -print0 . | xargs -0 shellcheck

Regards #103