I am facing a prblem with bash invocation.
I am invoking bash using execvp() function call. but after executing this the default current directory is /dev.
I want to change it to $HOME. I tried to use --rcfile option and from that file I was trieng to issue command "cd $HOME".
The problem is it is not reading that file itself i guess, because the command inside the file is not getting executed.
Please let me know how can i solve this problem.
Hoope u'll reply soon.
Thank you in advance.