I'm trying to create a C program that emulates a Bash shell.
For the cd file instruction I use chdir("file") but it isn't correct because chdir() always resolves symlinks while cd doesn't by default.
I'm looking for a way to get a function that changes the current working directory without resolving symlinks.