Closed rhn closed 1 year ago
Arguments to pipelines need to be declared. Try this:
l = (| dir: ls (dir) |)
l foo
dir: declares the argument. "ls dir" won't work, that looks for a directory named "dir". "ls (dir)" causes the value of the dir variable to be returned, which is "foo" in that invocation on the second line.
The pipeline example shows how to use data items passed by the previous part of the pipeline, but doesn't allow specifying arguments:
This makes creating custom commands limited.