You are not logged in.
I'm using a posix system for 3 months now, but i'm learning everyday.
$ cat /etc/profile
# /etc/profile
#Set our umask
umask 022
# Set our default path
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Source global bash config
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
Offline
Ok, we're then back at
strace zsh -l 2>&1 | grep -E '(open|stat)' | grep -E '(profile|zshrc|locale)'
Also please preemtively
stat /etc/profile.d
stat /etc/profile.d/locale.sh
Offline
&stat /etc/profile.d; stat /etc/profile.d/locale.sh
File: /etc/profile.d
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 804h/2052d Inode: 655366 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-12-11 03:07:34.000000000 +0000
Modify: 2017-03-02 09:31:50.709746642 +0000
Change: 2017-03-02 09:31:50.709746642 +0000
Birth: -
File: /etc/profile.d/locale.sh
Size: 940 Blocks: 8 IO Block: 4096 regular file
Device: 804h/2052d Inode: 656612 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-03-02 09:31:50.000000000 +0000
Modify: 2016-12-05 23:43:55.000000000 +0000
Change: 2017-03-02 09:31:50.709746642 +0000
If i run the the command on the firt X11 session (the one with broken unicode)
$ strace zsh -l 2>&1 | grep -E '(open|stat)' | grep -E '(profile|zshrc|locale)'
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
stat("/etc/zsh/zprofile.zwc", 0x7ffc8dcfc020) = -1 ENOENT (No such file or directory)
stat("/etc/zsh/zprofile", {st_mode=S_IFREG|0644, st_size=37, ...}) = 0
open("/etc/zsh/zprofile", O_RDONLY|O_NOCTTY) = 3
stat("/home/thor/.zprofile.zwc", 0x7ffc8dcfc020) = -1 ENOENT (No such file or directory)
stat("/home/thor/.zprofile", {st_mode=S_IFREG|0644, st_size=76, ...}) = 0
open("/home/thor/.zprofile", O_RDONLY|O_NOCTTY) = 3
^C
stat("/etc/zsh/zshrc.zwc", 0x7ffc8dcfc020) = -1 ENOENT (No such file or directory)
stat("/etc/zsh/zshrc", 0x7ffc8dcfc0b0) = -1 ENOENT (No such file or directory)
open("/etc/zsh/zshrc", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
stat("/home/thor/.zshrc.zwc", 0x7ffc8dcfc020) = -1 ENOENT (No such file or directory)
stat("/home/thor/.zshrc", {st_mode=S_IFREG|0644, st_size=2958, ...}) = 0
open("/home/thor/.zshrc", O_RDONLY|O_NOCTTY) = 3
lstat("/usr/share/zsh/site-functions/_localectl", {st_mode=S_IFREG|0644, st_size=3548, ...}) = 0
lstat("/usr/share/zsh/functions/Completion/Base/_comp_locale", {st_mode=S_IFREG|0644, st_size=572, ...}) = 0
lstat("/usr/share/zsh/functions/Completion/Unix/_locale", {st_mode=S_IFREG|0644, st_size=2870, ...}) = 0
lstat("/usr/share/zsh/functions/Completion/Unix/_locales", {st_mode=S_IFREG|0644, st_size=349, ...}) = 0
lstat("/usr/share/zsh/functions/Completion/Unix/_localedef", {st_mode=S_IFREG|0644, st_size=3091, ...}) = 0
lstat("/usr/share/zsh/functions/Completion/X/_x_locale", {st_mode=S_IFREG|0644, st_size=120, ...}) = 0
Offline
open("/etc/zsh/zprofile", O_RDONLY|O_NOCTTY) = 3
stat("/home/thor/.zprofile.zwc", 0x7ffc8dcfc020) = -1 ENOENT (No such file or directory)
cat /etc/zsh/zprofile
should read
emulate sh -c 'source /etc/profile'
so "open("/etc/zsh/zprofile", O_RDONLY|O_NOCTTY) = 3" should be followed by "stat/open /etc/profile" calls?
=>
cat /etc/zsh/zprofile
?
Offline
Well i'm sorry to say you that i just broken mùy archlinux and i had to install it again so we won't have the anwer.
Offline