Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Newline before . in .profile, if .profile doesn't end on newline #1428

@ghost

Description

Steps to Reproduce

Installing rye:

$ curl -sSf https://rye.astral.sh/get | bash
This script will automatically download and install rye (latest) for you.
######################################################################## 100.0%
Welcome to Rye!

This installer will install rye to /home/user/.rye
This path can be changed by exporting the RYE_HOME environment variable.

Details:
  Rye Version: 0.42.0
  Platform: linux (x86_64)

✔ Continue? · yes
✔ What should running `python` or `python3` do when you are not inside a Rye managed project? · Run the old default Python (provided by your OS, pyenv, etc.)
Installed binary to /home/user/.rye/shims/rye
Bootstrapping rye internals
Downloading cpython@3.12.7
Checking checksum
Unpacking
Downloaded cpython@3.12.7
Updated self-python installation at /home/user/.rye/self

The rye directory /home/user/.rye/shims was not detected on PATH.
It is highly recommended that you add it.
✔ Should the installer add Rye to PATH via .profile? · yes
Added to PATH.
note: for this to take effect you will need to restart your shell or run this manually:

    source "$HOME/.rye/env"

For more information read https://rye.astral.sh/guide/installation/

All done!

I have performed the installation twice from the same snapshot. The result can be reproduced.

Expected Result

end of ~/.profile:

export PATH="$PATH:/home/user/.local/share/JetBrains/Toolbox/scripts"
. "$HOME/.rye/env"

Actual Result

end of ~/.profile:

export PATH="$PATH:/home/user/.local/share/JetBrains/Toolbox/scripts". "$HOME/.rye/env"

Version Info

$ rye --version
rye 0.42.0
commit: 0.42.0 (b8f472e15 2024-10-21)
platform: linux (x86_64)
self-python: cpython@3.12.7
symlink support: true
uv enabled: true

Stacktrace

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions