Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

allow "acbuild script" read from stdin #273

@dimas

Description

@dimas

I believe it is a convention that tools that accept file names can be given "-" to indicate stdin so "cat -" is the same as just "cat" (because for cat, stdin is the default source) but the fact is you can specify it explicitly.

Right now "acbuild script -" complains that it cannot find file "-".

Supporting stdin would allow use here-doc / here-text notations and embed ACB scripts into shell scripts

acbuild --debug script - <<END_TEXT

copy $SRC /temp
run -- bash /temp/something.sh
run -- rm -rf /temp

END_TEXT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions