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

Re: es 0.7: ^C at prompt



 > | PS.  Are there any plans to make it possible to get at the ~user mechanism in
 > | some way?  I have a machine that many people don't have logins on but that has
 > | access to their home directories via amd/NFS.  Thus a passwd file mechanism
 > | doesn't work for most people in the dept.  I'd like to (say) be able to define
 > | a function that gets called when doing ~ expansion.
 > 
 > Amd supports a home directory map, independent of the passwd file.
 > /u/schwartz then points to /home/groucho/schwartz, or whatever.  This
 > is a thing that goes so nicely in the OS, it's a shame to force it on
 > the shell, especially since other programs often want the short name
 > for users' homes.

I realize this.  We use it.  The point is that ~user means "the home directory
of user".  On our network this is always /homes/user which is fixed up by amd
to point to the right place.  If the user concerned is not in the passwd file
on my machine (as many aren't) then ~user as it currently is does not work
even though /homes/user is accessible from my machine.

Following the es principle of making shell mechanisms available, I'd like to
be able to say something like:

fn tilde { return /homes/ ^ $1 }

and have tilde called by es to do the expansion.  People who can use the
default mechanism (ie. all their users are in the passwd file) will not need
to define tilde.  ("tilde" may not be the best name, BTW.)

Not a big deal, but it'd be nice.

Tony