[Desktop] 重新加载/etc/profile文件报错
Tofloor
poster avatar
187******78
deepin
2023-05-19 04:15
Author

错误如下图:
image.png

具体内容如下:

/etc/profile: system-wide .profile file for the Bourne shell (sh(1))

and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "id -u" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin"
fi
export PATH

if [ "$PS1" ]; then
if [ "​BASH" ] && [ "BASH" != "/bin/sh" ]; then

The file bash.bashrc already sets the default PS1.

PS1='\h:\w$ '

if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "id -u" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi

if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. "$i"
fi
else
. "$i" >/dev/null
done
unset i
fi
tty | egrep -q tty[1-6] && export LC_ALL=C

Reply Favorite View the author
All Replies
raspbian
deepin
2023-05-19 05:42
#1
import (
	"fmt"
)

func main() {
	fmt.Println("写个代码块让想帮你的人看清楚不好吗")
}

Reply View the author
187******78
deepin
2023-05-20 00:41
#2
raspbian
import (
	"fmt"
)

func main() {
	fmt.Println("写个代码块让想帮你的人看清楚不好吗")
}

confused

,捣乱

Reply View the author
忘记、过去
deepin
2023-05-20 02:45
#3

屏幕截图 2023-05-19 184413.png

P.S. 楼上说得对,传代码请用编辑栏提供的代码块功能......

Reply View the author