On Fri, 8 Aug 2003 01:41:30 -0500
Steven Elling <[EMAIL PROTECTED]> wrote:

> 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.  
> >
> > 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 -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
> 

Coolness.  Lots of stuff in the shell I'm not aware of.  I seldom get
past updating X init scripts or the occasional find ... do ... done
loops.


-- 
Collins Richey - Denver Area
if you fill your heart with regrets of yesterday and the 
worries of tomorrow, you have no today to be thankful for.



--
[EMAIL PROTECTED] mailing list

Reply via email to