[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Path modification

>>>>> "Moshe" == Moshe Zadka <moshez@zadka.site.co.il> writes:

    Moshe> Ummmm.....that doesn't strike you as a weird error message? 
    Moshe> Especially since the shell thinks "mh" *is* a valid
    Moshe> completion? I expect things that are valid completions to
    Moshe> work. 

I agree with this.

Especially for directories (it should be easy to check if a executable
file is just a directory or really is executable).

Symlinks might be slightly harder (but still possible all the same):


[620] [snoopy:bam] ~ >X11 
zsh: permission denied: X11
[621] [snoopy:bam] ~ >which X11
X11 not found

I assume it is looking for 

[622] [snoopy:bam] ~ >ls -l /usr/bin/X11 
lrwxrwxrwx    1 root     root           12 Dec 29 16:43 /usr/bin/X11 -> ../X11R6/bin/

(IMHO if the shell can find /usr/bin/X11, which should also find it
too, but I guess that might break things. However, I guess the fact
that which knows it is not an executable clearly shows that the shell
should be able to work it out for tab completion, too).
Brian May <bam@debian.org>

Reply to: