Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2015 00:34:23 +0100
From:      Polytropon <freebsd@edvax.de>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   Re: tcsh issue
Message-ID:  <20151204003423.6e95c19b.freebsd@edvax.de>
In-Reply-To: <56605CE0.4010105@hiwaay.net>
References:  <56605CE0.4010105@hiwaay.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 3 Dec 2015 09:22:18 -0553.75, William A. Mahaffey III wrote:
> 
> 
> I am having a puzzling problem w/ the tcsh shell locating a script that 
> I think it should be finding:
> 
> 
> [wam@devbox, TEST, 9:18:10am] 1399 % which beginbg
> beginbg: Command not found.
> [wam@devbox, TEST, 9:18:21am] 1400 % set
> _       which beginbg
> 
[...]
> path    (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin 
> /usr/local/bin /home/wam/bin)
[...]
> [wam@devbox, TEST, 9:18:25am] 1401 % lf /home/wam/bin
[...]
> BenchMarks.tgz        VectorExe.AMD64.new~* beginbg* 
[...]
> [wam@devbox, TEST, 9:18:38am] 1402 % which beginbg
> beginbg: Command not found.
> [wam@devbox, TEST, 9:18:49am] 1403 % uname -a
> FreeBSD devbox 9.3-RELEASE-p30 FreeBSD 9.3-RELEASE-p30 #0: Mon Nov 2 
> 10:11:50 UTC 2015 
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
> [wam@devbox, TEST, 9:19:55am] 1404 %
> 
> 
> i.e. the file 'beginbg' ( a shell script) appears in the file ~/bin 
> (/home/wam/bin) which is in the search path, yet the shell doesn't find 
> it .... Pilot error ? TIA for any clues & have a good one.

Just make sure permissions are okay (but it seems to be correct
from the completition list):

	% ls -la /home/wam/bin/beginbg

Also make sure the shell has "picked up" a new command. Use

	% rehash

to let the shell know about any new commands in $PATH.

And then read "Csh Programming Considered Harmful" written by
Tom Christiansen:

http://sc.tamu.edu/help/other/CshProgrammingConsideredHarmful.html

I'm just saying because I once wrote a C shell script to
automatically enumerate files... ;-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20151204003423.6e95c19b.freebsd>