Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Conversation

@michaelforney
Copy link
Contributor

POSIX says

The -escape sequences in Escape Sequences and Associated Actions ( '\', '\a', '\b', '\f', '\n', '\r', '\t', '\v' ) shall be supported. The results of using any other character, other than an octal digit, following the are unspecified. Also, if there is no character following the , the results are unspecified.

Instead, just use -- to separate options and operands, since tr(1)
is required to conform to the Utility Syntax Guidelines.

POSIX says

    The <backslash>-escape sequences in Escape Sequences and
    Associated Actions ( '\\', '\a', '\b', '\f', '\n', '\r', '\t',
    '\v' ) shall be supported. The results of using any other
    character, other than an octal digit, following the <backslash>
    are unspecified. Also, if there is no character following the
    <backslash>, the results are unspecified.

Instead, just use `--` to separate options and operands, since tr(1)
is required to conform to the Utility Syntax Guidelines.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@michaelforney
Copy link
Contributor Author

Alternatively, the two tr invocations could be replaced with tr 'a-z-' 'A-Z_', which seems to be how it is done elsewhere in the file.

@michaelforney
Copy link
Contributor Author

@alexcrichton Ping. If you have a minute, could take a quick look at this?

Alternatively, the two tr invocations could be replaced with tr 'a-z-' 'A-Z_', which seems to be how it is done elsewhere in the file.

I pushed a new commit that does this.

@alexcrichton
Copy link
Member

Thanks for the PR here, but unfortunately I don't have the time to help shepherd this change through. This is a pretty ossified script at this point and it would require much more energy than I have available to change it. Others may be interested in helping out with review though!

@Mark-Simulacrum
Copy link
Member

The changes here look good. I'm not sure they'll hold up with Unicode input, but I'm guessing that's already the case today.

@bors r+

@Mark-Simulacrum Mark-Simulacrum merged commit 6168d96 into rust-lang:master Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants