From: "Хихин Руслан" <hihin@rambler.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] strange $PATH
Date: Mon, 12 Mar 2007 09:43:13 +0300
Message-ID: <200703120943.23689@ruslandh> (raw)
In-Reply-To: <957265820703112323lad78267i94edd561050a3497@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2684 bytes --]
Здравствуйте Denis G. Samsonenko
В сообщении от 12 марта 2007 Denis G. Samsonenko написал(a):
> Если же этот самый xfce пускается из xdm, то он наследует от него
> тот
>
> самый странный PATH с двойным /usr/bin, отстутствующим
> /usr/local/bin
>
> и странным /usr/ucb. Т.е. на сколько я понимаю, где-то в xdm
> возникает
>
> такой странный PATH, который далее передаётся в WM.
Взглянул на код xdm
В ./configure там там действительно есть такой кусок :
"....
else
# The Solaris, AIX, and Digital Unix default echo programs unquote
# backslashes. This makes it impossible to quote backslashes using
# echo "$something" | sed 's/\\/\\\\/g'
#
# So, first we look for a working echo in the user's PATH.
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
IFS="$lt_save_ifs"
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null`
&&
test "X$echo_testing_string" = "X$echo_test_string"; then
echo="$dir/echo"
break
fi
done
IFS="$lt_save_ifs"
"
В configure.ac это :
"
# -DDEF_USER_PATH="$(DEF_USER_PATH)"
# Default values taken from DefaultUserPath setting in the
# old Imake *.cf files for each platform
if test -z "$DEF_USER_PATH" ; then
case $host_os in
dragonfly*)
DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:
${bindir}:/usr/local/bin"
;;
freebsd*)
DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:
${bindir}:/usr/gnu/bin:/usr/local/b
;;
netbsd*)
DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}"
;;
openbsd*|bsdi*)
DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}"
;;
solaris*)
DEF_USER_PATH="/usr/bin:${bindir}"
;;
*)
DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
;;
esac
fi
AC_DEFINE_DIR(DEF_USER_PATH, DEF_USER_PATH,
[Define to default PATH environment variable for user sessions])
"
Я так понимаю - это что-то из коммерческих *nix осталось.
Не знаю правда, исполняется-ли он или идёт по другой ветке (там if
вначале).
Похоже отрабатывается :
DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
У меня KDM, так что похоже это баг самого xdm
--
А ещё говорят так (fortune):
После своей смерти человек может жить только на земле.
-- А.Барбюс
________________________________________________________________________
С уважением Хихин Руслан
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-03-12 6:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-11 13:33 Denis G. Samsonenko
2007-03-11 15:51 ` Хихин Руслан
2007-03-11 15:59 ` Denis G. Samsonenko
2007-03-12 5:10 ` Хихин Руслан
2007-03-12 5:29 ` Denis G. Samsonenko
2007-03-12 6:06 ` Denis G. Samsonenko
2007-03-12 6:09 ` Хихин Руслан
2007-03-12 6:23 ` Denis G. Samsonenko
2007-03-12 6:43 ` Хихин Руслан [this message]
2007-03-12 16:02 ` Denis G. Samsonenko
2007-03-11 17:04 ` Victor
2007-03-11 17:22 ` Denis G. Samsonenko
2007-03-11 22:44 ` Dmitry V. Levin
2007-03-12 1:25 ` Denis G. Samsonenko
2007-03-12 3:28 ` Denis G. Samsonenko
2007-03-12 4:11 ` Dmitry Lebkov
2007-03-12 4:58 ` Denis G. Samsonenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703120943.23689@ruslandh \
--to=hihin@rambler.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git