Skip to content

Watch: spaces in command are not preserved #135

@cptaffe

Description

@cptaffe

When invoking Watch with arguments which contain spaces, the arguments are not preserved. For example, this command works as expected in an rc session:

% printf '%s %s %s\n' 1 2 3
1 2 3

But when run through Watch:

Watch printf '%s %s %s\n' 1 2 3

We would expect the argument parsing rc does when invoking Watch to be preserved, however the first string is split again:

Image

To avoid this, Watch will need to quote any arguments with whitespace so that they are parsed correctly by rc again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions