Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 4
    Note that the SO question is tagged zsh, the path array synchronised with $PATH is a zsh feature. Commented Aug 24, 2023 at 11:18
  • does it mean, that i can't split it in bash, or how i can do it? Commented Aug 24, 2023 at 11:24
  • ``` root@debian:/etc/default# source /etc/profile root@debian:/etc/default# echo $PATH / usr/local/bin:/usr/bin:/bin:/usr/local/games: /usr/games:/home/lm/.local/bin:/root/.local/bin ``` Commented Aug 24, 2023 at 11:26
  • Please edit your question and explain what you want here. Is it just about the format of your ~/.profile or /etc/profile files? Why do you want to split it into many lines, where do you want to have it split? Only in the files to make them easier to read? Only when you print the variable in a terminal? Commented Aug 24, 2023 at 11:51
  • Only in the files to make them easier to read Commented Aug 24, 2023 at 12:35