[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash completion with afs
From: |
Jörn Engel |
Subject: |
bash completion with afs |
Date: |
Fri, 25 Jun 2004 23:24:15 +0200 |
User-agent: |
Mutt/1.3.28i |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include
-I../bash/lib -g -O2
uname output: Linux limerick 2.6.6 #4 Wed May 19 16:56:06 CEST 2004 i686
GNU/Linux
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
Bash completion doesn't work properly with AFS. This could be
solved easily by configuring with --with-afs, but Matthias
wouldn't do this for debian, because:
/* We have to use access(2) to determine access because AFS does not
support Unix file system semantics. This may produce wrong
answers for non-AFS files when ruid != euid. I hate AFS. */
So it appears as if bash has to distinguish between files on
afs mount and others for decent non-buggy bash completion,
something along these lines:
read(/proc/mounts);
...
if (file_is_on_afs(path))
eaccess(path, mode);
else
access(path, mode);
Getting this right does mean a bit of work, so I'll politely
step back a bit and see if anyone else likes to do it. ;)
Jörn
--
If you're willing to restrict the flexibility of your approach,
you can almost always do something better.
-- John Carmack
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bash completion with afs,
Jörn Engel <=