Skip to content

Add support for passing through parameters to another command (was: How to handle find -exec kind-of open-ended options?) #718

@rednoah

Description

@rednoah

Is there a way to parse open-ended parameters that may contain - or -- up until some predefined end-of-parameter-sequence marker or the end of the argument array?

e.g. If I wanted to do something like find -exec, how would I go about it?

find . -type d -exec ls -la {} +
find . -type d -exec ls -la {} \;
  • where ls -la {} is an arbitrary command-template called for a given set of files by my application in a child process.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions