[ALUG] kubuntu apt-get not installed

elc elc at freeola.net
Fri Jun 15 22:27:56 BST 2007


Tried
'type echo' and got
'echo is a shell built in'

Tried also
'which echo' and got
'/bin/echo'

this doesn't mean anything to me, - hope it means something to you

> On 13-Jun-07 08:07:29, Jon Dye wrote:
>   
>> > (Ted Harding) wrote:
>>     
>>> >> On 13-Jun-07 07:02:04, Brett Parker wrote:
>>>       
>>>  
>>
>> > Try "type echo" instead of "which echo"
>> > 
>> > JD
>>     
>
> And, now that you point that out,
>
>   type -a echo
>
> gives you the lot:
>
> $ type -a echo
> echo is a shell builtin
> echo is /bin/echo
>
> $ type -a type
> type is a shell builtin
>
> Which raises an interesting question: If "type -a" can find everything
> (including binaries), it must be making implicit reference to a PATH
> which presumably is the user's $PATH by default (though neither
> "help type" nor "man bash" is explicit about this). You can of course
> set a search-path with option "-P" to "type".
>
> So, since "type" is a shell built-in, it should work for elc whatever
> the PATH situation is. Therefore, going back to the "missing" commands,
> if elc enters, for instance,
>
> type -a ls
>
> and gets:
>
> $ type -a ls
> bash: type: ls: not found
>
> while "type -aP /bin ls" gives
>
> $type -aP /bin ls
> /bin/ls
>
> this is presumably a pretty sure-fire diagnostic of PATH problems.
>
> Best wishes to all,
> Ted.
>
>   



More information about the main mailing list