On Thursday 07 August 2003 21:50, Collins Richey wrote: > On Thu, 7 Aug 2003 21:13:05 -0500 > > Steven Elling <[EMAIL PROTECTED]> wrote: > > On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote: > > > At 03:55 PM 8/7/2003 -0600, Collins Richey wrote: > > > >On Thu, 07 Aug 2003 15:19:12 -0400 > > > > > > > >"Dr. Robert M. Fuhrer" <[EMAIL PROTECTED]> wrote: > > > > > What about "typeset -f"? > > > > > > > >No man entry for this. What does 'typeset' do. > > > > > > Sorry; it's a bash built-in. It displays the definitions of > > > all the user-defined functions bash currently knows about. > > > > BASH has a built-in help function. Type help by itself to get a list > > of all the built-ins or in your case "help typeset" to get specific > > help on typeset. Real handy in my opinion. > > Thanks. True enough, but how ya gonna know it's a bash function if ya > never saw if before?
Use the built-in function type. Or, use help and look through the list but this is less efficient. ~ $> type typeset typeset is a shell builtin ~ $> type cat cat is /bin/cat ~ $> type ls ls is aliased to `ls $LS_OPTIONS' ~ $> type -a ls ls is aliased to `ls $LS_OPTIONS' ls is /bin/ls ls is /usr/bin/ls Here is a nice trick. Want to know which package the executables tic, tack and toe belong to? Just do the following (those a backtick not single quotes): ~ $> epm -qf `type -p tic` ncurses-5.3-r1 ~ $> epm -qf `type -p tac` textutils-2.1 ~ $> epm -qf `type -p toe` ncurses-5.3-r1 -- [EMAIL PROTECTED] mailing list
