Skip to content

How would I pipe commands with no hardcoding of command strings? #32

Description

@redragonx

Hi, I would like to know how you can combine commands without hardcoding the actual cmd in the macro?

Not sure how escaping works in these cases.

Rough Example:

        let post_cmd  = "grep 'blah' | another_cmd"
        let output_raw = self.someVarEval();

        let data = run_fun!(echo "$output_raw" | $post_cmd );

When I run the above in full code. I get the following output error:

No such file or directory (os error 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions