Martin, can you try to compile and run the attached test program? It should do pretty much what bash is doing when completing filenames.
gcc -o pwent_test pwent_test.c ./pwent_test
Martin, can you try to compile and run the attached test program? It should do pretty much what bash is doing when completing filenames.
gcc -o pwent_test pwent_test.c
./pwent_test