I'm utterly confounded by this problem with my shell. Here is my
simple config.fish: <http://dpaste.com/226376/>. It sets my path like
this:

    set -x PATH $PATH ~/scripts ~/bin

Now when I launch a new shell:

~ > echo $PATH
/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin
/usr/games ~/scripts ~/bin
~ > ls -la ~/scripts/
total 36K
drwx------  2 seanh seanh 4.0K 2010-08-08 21:38 ./
drwx------ 55 seanh seanh  20K 2010-08-08 21:38 ../
-rwx------  1 seanh seanh   19 2010-08-08 21:38 foo*
~ > foo
fish: Unknown command “foo”
No command 'foo' found, did you mean:
 Command 'fio' from package 'fio' (universe)
 Command 'goo' from package 'goo' (universe)
 Command 'fop' from package 'fop' (universe)
 Command 'fox' from package 'objcryst-fox' (universe)
 Command 'xoo' from package 'xoo' (universe)
 Command 'zoo' from package 'zoo' (universe)
foo: command not found
~ > scripts/foo
foo
~ >

As you can see, ~/scripts is on my path. The directory exists, and
contains an executable file called foo. Typing scripts/foo runs the
file. But typing foo gives unknown command. This is true of every
script I put in ~/scripts, even though it's on my path.

Fish version 1.23.1 on Ubuntu. I have the same problem with ~/scripts
with other shells, sh and zsh on NetBSD.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to