At 15:18 12-11-2010 -0800, Adrian Petrescu wrote:
I believe the "~" shorthand is something that the shells expand, not something the kernel inherently knows about. Indeed, I doubt the kernel knows anything about something that high-level at all. But there may be some standard function to do this translation.

Well, the kernel knows for instance which devices are mounted, and does not leave it to the shell too figure out that /C: actually means /dev/sda1 when you mounted the latter on /C:. In my mind this was a similar thing, where you have to look in the password file rather than in the mount table.

But even if it is no kernel funtion, it could of course be implemented in the library call for fopen.

_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-xboard

Reply via email to