V
vatsa
Hi all,
we can simply change value of PS1 from command prompt .
but I want to change the value of PS1 from within a c program. i tried
to
do that using getenv & putenv. but it is n't working... .
i even wrote 1 code to print all environment variables, among them PS1
wasn't there. but when i use "set" command on command prompt, it
displays PS1 too among other environment variables...
how to do it ?
regards
rahul
we can simply change value of PS1 from command prompt .
but I want to change the value of PS1 from within a c program. i tried
to
do that using getenv & putenv. but it is n't working... .
i even wrote 1 code to print all environment variables, among them PS1
wasn't there. but when i use "set" command on command prompt, it
displays PS1 too among other environment variables...
how to do it ?
regards
rahul