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

Re: built-in bash functions



On Sat, Sep 23, 2000 at 02:51:27PM -0400, Michael P. Soulier wrote:
> On Sat, Sep 23, 2000 at 01:56:01PM -0400, Joey Tsai wrote:
> 
> > Yes, there are some utilities built into bash, but ls is not one of them.  ls
> > belongs to package "fileutils".
> > 
> > But since you mention it,
> > 
> > [corban][12:55pm][~] $ type type
> > type is a shell builtin
> 
>     Strange that it wouldn't show up on a type -p then. I'll have to re-read
> that part of the manpage. 

just to spice up this:

[eb@socrates eb]$ cat /usr/bin/which
#!/bin/bash
unalias -a
unset -- "$@" &> /dev/null
enable -n -- "$@" &> /dev/null
type -p "$@"
[eb@socrates eb]$

i found this rather interesting since debian is the only distribution
(ive seen anyway) where which is a shell script instead of a compiled
binary.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpLPZeHTzLTq.pgp
Description: PGP signature


Reply to: