Skip to content

Regression >=0.10: Behavior with empty string #63

Closed
@akiradeveloper

Description

@akiradeveloper

This code panics with "No such file or directory" with version 0.10 or above.

use cmd_lib::*;
fn main() {
    dbg!(run_cmd!(ls));
    let options = "";
    dbg!(run_cmd!(ls $options));
}

I think ls "" should be interpreted as ls in this library.

Is this your intention? and is there some workaround?

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