[Pythonmac-SIG] Running Python scripts without full paths
Paul Berkowitz
berkowit@silcom.com
Sat, 30 Nov 2002 13:23:25 -0800
On 11/30/02 1:08 PM, "Nicholas Riley" <njriley@uiuc.edu> wrote:
> Great! So tcsh is changing your path, probably because of something
> in one of the startup files. Try setting the "execute this command"
> box in Terminal's Preferences temporarily to '/bin/tcsh -V' and see
> what it prints - somewhere in there will be a path change, I hope.
> It'll be in one of tcsh's startup files - check the tcsh man page for
> a list.
That was easier said than done, too. Terminal Prefs kept reverting, but I
got it to stick in the end. OK. there's a lot there, including this snippet:
---------------------------------
set host = `hostname`
set host = `echo $host | tr A-Z a-z`
set user=`whoami`
setenv HOST "${host}"
setenv USER "${user}"
---------------------------------
and somewhat later on:
--------------------------------
if ( ! $?ENV_SET ) then
if ( -r "${default_tcsh_initdir}/environment" && ( $?prompt || $?XSESSION )
) then
source "${default_tcsh_initdir}/environment"
setenv ENV_SET
umask 022
if ( -r "${tcsh_initdir}/environment.mine" ) then
endif
else
if ( $?interactive ) then
if ( "${version}" =~ "tcsh"* ) bindkey "^R" i-search-back
endif
if ( -r "${tcsh_initdir}/rc.mine" ) source "${tcsh_initdir}/rc.mine"
if ( $?interactive ) then
if ( -r "${default_tcsh_initdir}/aliases" && ! $?noalias ) then
source "${default_tcsh_initdir}/aliases"
---------------------------------------------
later again:
----------------------------------
complete printenv 'p/1/e/'
complete set 'c/*=/f/' 'p/1/s/=' 'n/=/f/'
complete unset 'p/*/s/'
complete setenv 'p/1/e/'
complete unsetenv 'p/*/e/'
-----------------------------------
Later, there seems to be an entire history of everything I have ever typed
in the shell! Do you need to see the whole thing?
--
Paul Berkowitz