Skip to main content

I always thought that PS1PS1 was an environment variable... But when I check the default .bashrc.bashrc of ubuntuUbuntu and check for PS1.PS1 with

catgrep PS1 /etc/skel/.bashrc | grep PS1

Therethere is no export PS1.

If there is no export, doesn'tdoes it mean that it isn't an environment variable  ?

I always thought that PS1 was an environment variable... But when I check the default .bashrc of ubuntu and check for PS1.

cat /etc/skel/.bashrc | grep PS1

There is no export PS1.

If there is no export, doesn't it mean that it isn't an environment variable  ?

I always thought that PS1 was an environment variable. But when I check the default .bashrc of Ubuntu and check for PS1 with

grep PS1 /etc/skel/.bashrc

there is no export PS1.

If there is no export, does it mean that it isn't an environment variable?

Became Hot Network Question
Source Link
bob dylan
  • 2k
  • 4
  • 24
  • 33

Is PS1 really an environment variable?

I always thought that PS1 was an environment variable... But when I check the default .bashrc of ubuntu and check for PS1.

cat /etc/skel/.bashrc | grep PS1

There is no export PS1.

If there is no export, doesn't it mean that it isn't an environment variable ?