ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: John Profic <profic@lrn.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] ./ in PATH
Date: Wed Sep 26 22:16:00 2001
Message-ID: <3BB21D14.4010107@lrn.ru> (raw)
In-Reply-To: <14712579128.20010926180925@beep.ru>

Vladimir Karpinsky wrote:

> Hello Mandrake-russian,
> Объясните пожалуйста мне такую штуку:
> когда-то для облегчения запуска программ из ./, я в своем(ей) .bashrc
> включил ./ в PATH. Все вроде было ничего, пока кто-то из знакомых,
> увидев это, не закричал со страшной силой: "Это делать нельзя ни в
> коем случае!" Но вот аргументировано объяснить почему это делать
> нельзя, он не смог. Я тогда-то убрал ЭТО на всякий случай, но
> неудовлетворенное любопытство гложет уже который год. Вопрос
> соответственно: можно ли ЭТО так делать или нет, если нет, то почему?

Где-то я читал развернутую дискуссию об этом :)
Только есть одно но, все предыдущие ораторы (во как загнул :)) исходили 
из того, что ./ находится в начале пути, а что если оно в конце? Ведь 
поиск идет от начала к концу? Или я не прав?
Тогда, даже если человек положит в /tmp/ls что либо, он не будет вызван, 
поскольку будет вызван стандартный ls :)
Мое IMHO для пользователя иметь ./ в PATH в конце всего т.е. в .bashrc
export PATH=$PATH:./
У root-а же не иметь вообще :)
-- 
Best regards,
  John Profic <profic@lrn.ru>
Written by Mozilla 0.9.4
using ASPLinux release 1.1 with ru_RU.CP1251,
system: kernel 2.4.10-xfs-p1; glibc 2.2.4; gcc 3.0.1; XFree86 4.1.0;





  parent reply	other threads:[~2001-09-26 22:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-26 17:58 Vladimir Karpinsky
2001-09-26 18:17 ` Igor Homyakov
2001-09-26 18:40   ` Peter V. Saveliev
2001-09-26 19:03     ` [mdk-re] [JT] " Igor Homyakov
2001-09-26 18:17 ` [mdk-re] " Peter V. Saveliev
2001-09-26 18:43   ` Re[2]: " Vladimir Karpinsky
2001-09-26 18:19 ` Gosha
2001-09-26 18:34 ` cornet
2001-09-26 22:16 ` John Profic [this message]
2001-09-28 20:43   ` [mdk-re] " Mikhail Zabaluev

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=3BB21D14.4010107@lrn.ru \
    --to=profic@lrn.ru \
    --cc=mandrake-russian@altlinux.ru \
    /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