Article View: pl.comp.sys.sun.admin
Article #14411Re: jak dodać wartość do PATH?
From: Szymon Sokół
Date: Sat, 25 Aug 2007 11:21
Date: Sat, 25 Aug 2007 11:21
32 lines
2445 bytes
2445 bytes
On Sat, 25 Aug 2007 12:37:18 +0200, heniek wrote:
> Piotr KUCHARSKI pisze:
>> A jakiego masz shella? :)
Stawiam na /bin/sh, skoro działa PATH=cokolwiek - w csh by nie działało.
> heh, pojęcia nie mam :) jak to można sprawdzić? zauważyłem, że coś
> takiego działa: PATH=/usr/bin:/.....
> gdy wpiszę: # echo $PATH to widać dodane wpisy
No i bardzo dobrze...
> ale gdy wpiszę: # which gcc
> to wyświetla się, ze nie mogło znaleźć gcc i wyświetla ścieżki z PATH
> bez nowych ścieżek.
No to sobie przeczytaj man which, ten fragment powinien dać Ci do myślenia:
BUGS
Only aliases and paths from ~/.cshrc are used; importing
from the current environment is not attempted. Must be exe-
cuted by csh(1), since only csh knows about aliases.
Natomiast właściwe pytanie brzmi: a jak się wpisze:
gcc -v
to co się dzieje? Wypisuje wersję gcc, czy
gcc: not found
--
Szymon Sokół (SS316-RIPE) -- Network Manager B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F
Free speech includes the right not to listen, if not interested -- Heinlein H
Technical Details
Message-ID:
<lztenfgkyqya$.dlg@falcon.sloth.hell.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mailReferences:
<fal8nt$jv0$3@inews.gazeta.pl> <famvdc$16$1@inews.gazeta.pl> <fano0c$f3e$1@absolut.sgh.waw.pl> <fap0p0$gat$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail
From: Szymon Sokół
<szymon@bastard.operator.from.hell.pl>
Newsgroups: pl.comp.sys.sun.admin
Subject: Re: jak dodać wartość do PATH?
Date: Sat, 25 Aug 2007 13:21:26 +0200
Organization: Guy Fawkes Society
Lines: 32
Sender: szymon@news.agh.edu.pl
Message-ID: <lztenfgkyqya$.dlg@falcon.sloth.hell.pl>
References: <fal8nt$jv0$3@inews.gazeta.pl> <famvdc$16$1@inews.gazeta.pl> <fano0c$f3e$1@absolut.sgh.waw.pl> <fap0p0$gat$1@inews.gazeta.pl>
NNTP-Posting-Host: chello087206082132.chello.pl
Mime-Version: 1.0
X-Trace: news.agh.edu.pl 1188041439 23562 87.206.82.132 (25 Aug 2007 11:30:39 GMT)
X-Complaints-To: abuse@agh.edu.pl
NNTP-Posting-Date: Sat, 25 Aug 2007 11:30:39 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1 Hamster/2.1.0.11
X-Face: K)"xK'S)kh&"#lZC#phcV0ZzA!#D/_D@4F=f\~~=kS9q[DU3CRx}OtX&h,rWbG(_+=oA_Zr ?sSy]x:oYR#^knZ8]X;N5uZ$$-9pp;yd];gz^.*{Ql8'ZzeCk-iHBIy$ka~-.]A{7u{=)j(l[y,DT$ K|5@Snh#a>QLl1"2_:JP~1#%+_s-6oplu&yoek<rCaG&
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit