Skip to content

Prevent Concat from stopping at first error? #26

@udhos

Description

@udhos

I am trying to use script.Concat() to implement 'cat':

        if _, err := script.Slice(flagSet.Args()).Concat().Stdout(); err != nil {
                fmt.Printf("cat: %v\n", err)
                status = 5
        }

Full code: https://github.com/udhos/conbox/blob/master/applets/cat/run.go

However I would like to tell Concat() to keep trying other files in case of failure.

Can we make the behavior configurable?

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