Re: [SLUG] fullname program

From: Eben King (eben1@tampabay.rr.com)
Date: Sun Nov 09 2003 - 17:23:47 EST


On Sun, 9 Nov 2003, Paul M Foster wrote:

> On Sat, Nov 08, 2003 at 01:52:43AM -0500, Eben King wrote:
>
> > On Sat, 8 Nov 2003, Paul M Foster wrote:
> >
> > > I've never been able to find this, and I've always wanted it. In Linux,
> > > there are the basename and the dirname programs. Very handy. I want a
> > > "fullname" program. You'd feed it a relative or absolute filename, and
> > > it would give you back the fully qualified filename. This ought to be
> > > doable in C, maybe using the inode number returned from a stat(2) call,
> > > but I can't find a routine to discern the full path from an inode
> > > number.
> > >
> > > Anyway, anyone know of a program like this, or what I might have to do
> > > to build one (in C)?
> >
> > which(1)? type (in some whells)?
> >
>
> I know about which. It won't work for (for example) a file called
> "admin.txt" in the root directory, when you're sitting in that
> directory.

slocate?

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

A: Because it looks dumb and is hard to read. Q: Why is top-posting wrong? -- from lots42@xxx.com

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:36:34 EDT