ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] кто не прав - скрипты в ~/bin
@ 2006-11-02  8:17 Artem Zolochevskiy
  2006-11-02  8:38 ` Evgenii Terechkov
  2006-11-02  8:50 ` Eugene Ostapets
  0 siblings, 2 replies; 4+ messages in thread
From: Artem Zolochevskiy @ 2006-11-02  8:17 UTC (permalink / raw)
  To: community

Что-то я не понимаю

Вот к примеру
set | grep PATH показывает что мой bin в $HOME самый первый стоит

пробую вот что сделать
[artem@alt ~]$ cat ~/bin/mc
#!/bin/sh
mcedit

ну и теперь мне кажется, что по mc (enter) должен вызываться на самом деле
mcedit. Где я не прав? Почему этого не происходит?

[artem@alt ~]$ which mc
/home/artem/bin/mc

[artem@alt ~]$ mc
запускает по прежнему mc :(

-- 
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] кто не прав - скрипты в ~/bin
  2006-11-02  8:17 [Comm] кто не прав - скрипты в ~/bin Artem Zolochevskiy
@ 2006-11-02  8:38 ` Evgenii Terechkov
  2006-11-02  8:50 ` Eugene Ostapets
  1 sibling, 0 replies; 4+ messages in thread
From: Evgenii Terechkov @ 2006-11-02  8:38 UTC (permalink / raw)
  To: ALT Linux Community

Artem Zolochevskiy пишет:

> пробую вот что сделать
> [artem@alt ~]$ cat ~/bin/mc
> #!/bin/sh
> mcedit
> ну и теперь мне кажется, что по mc (enter) должен вызываться на самом деле
> mcedit. Где я не прав? Почему этого не происходит?
> [artem@alt ~]$ which mc
> /home/artem/bin/mc
> [artem@alt ~]$ mc
> запускает по прежнему mc :(

Там один бинарник (mcedit и mcview это симлинки), смотрящий на своё
argv[0]. Так что всё штатно.

-- 
                                        С уважением, системный
                                        администратор ООО "Крастел",
                                        Терешков Евгений.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] кто не прав - скрипты в ~/bin
  2006-11-02  8:17 [Comm] кто не прав - скрипты в ~/bin Artem Zolochevskiy
  2006-11-02  8:38 ` Evgenii Terechkov
@ 2006-11-02  8:50 ` Eugene Ostapets
  2006-11-02  9:38   ` Artem Zolochevskiy
  1 sibling, 1 reply; 4+ messages in thread
From: Eugene Ostapets @ 2006-11-02  8:50 UTC (permalink / raw)
  To: ALT Linux Community

02.11.06, Artem Zolochevskiy<az zolochevskie.net> написал(а):
> Что-то я не понимаю
> Вот к примеру
> set | grep PATH показывает что мой bin в $HOME самый первый стоит
> [artem@alt ~]$ cat ~/bin/mc
> #!/bin/sh
> mcedit
>
> ну и теперь мне кажется, что по mc (enter) должен вызываться на самом деле
> mcedit. Где я не прав? Почему этого не происходит?
alias что показывает?:)

-- 
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] кто не прав - скрипты в ~/bin
  2006-11-02  8:50 ` Eugene Ostapets
@ 2006-11-02  9:38   ` Artem Zolochevskiy
  0 siblings, 0 replies; 4+ messages in thread
From: Artem Zolochevskiy @ 2006-11-02  9:38 UTC (permalink / raw)
  To: community

Eugene Ostapets wrote:

>> ну и теперь мне кажется, что по mc (enter) должен вызываться на самом
>> деле mcedit. Где я не прав? Почему этого не происходит?
> alias что показывает?:)
> 

ага, вот оно. это ж так очевидно :), когда носом ткнут :(

-- 
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-02  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02  8:17 [Comm] кто не прав - скрипты в ~/bin Artem Zolochevskiy
2006-11-02  8:38 ` Evgenii Terechkov
2006-11-02  8:50 ` Eugene Ostapets
2006-11-02  9:38   ` Artem Zolochevskiy

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