Skip to content

Wrong Backslash Added To .bashrc #27302

@farzadso

Description

@farzadso

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key?platform=linux

What changes are you suggesting?

In the link above, there is a section for the Linux platform claiming you should run the following command to add GPG_TTY to our .bashrc file.

[ -f ~/.bashrc ] && echo -e '\nexport GPG_TTY=\$(tty)' >> ~/.bashrc

This adds an extra backslash which is unnecessary and needs to be removed for it to work.

When running the script above, the result in the .bashrc file is as follows :

export GPG_TTY=\$(tty)

Additional information

I've tried reproducing it both on WSL2 and Git Bash and the results are the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions