Skip to content

Avoid $RM, $CP and $MV definition in funclib.sh #9

Description

@praiskup

It has been reported that those variables cause problems, for example:
https://savannah.gnu.org/support/index.php?108987

The problem is naming: The '$RM' name does not clearly say the semantics of the variable (is that rm -rf, is that rm -f or rm -r, or plain /bin/rm only?). Scripts sourcing funclib.sh or using bootstrap can override those variables with command with slightly different semantics not compatible with semantics we expect in boostrap project. What's worse there are users exporting those variables in environment...

I tend to remove those variables from funclib.sh .. and if some of those is really needed, we can have something like FL_RM (FuncLib) instead of plain RM. There might be potential users of those variables now .. but to me, it looks like it is still worth braking it now, when there is relatively small userbase. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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