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

Re: built-in bash functions



On Sat, Sep 23, 2000 at 01:44:49PM -0400, Michael P. Soulier wrote:
>     Hey guys. When I do a type -p ls, nothing is output. which ls returns
> /bin/ls, but does the failure of the type -p signify that it's a shell
> built-in? If so, how does that work wrt installing a new version of ls? There
> are some tools built into bash, are there not?

Maybe you have ls aliased:

$ type -p ls
/bin/ls
$ alias ls='/bin/ls -l'
$ type  ls
ls is aliased to /bin/ls -l'
$ type -p type
$ type -a ls
ls is aliased to /bin/ls -l'
ls is /bin/ls

Mirek



Reply to: