Skip to content

File-existent tests #74

@rburkey2005

Description

@rburkey2005

While I understand that you probably cannot parse and convert every possible expression that appears in a shell-script conditional like

if [ ...expression...]
then
    ... statements...
fi

it seems to me that the tests "-f filename" and "! -f filename" occur so frequently that it's worth detecting them and converting them into "exist filename" and "not exist filename" respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions