ww111697
asked on
execlp("echo","echo","$SHELL",NULL")
in the following code, why $SHELL and *.c will not be expanded by Unix shell?
int main()
{ if (fork()==0)
execlp("echo","echo","$SHE LL",NULL);
else
execlp("echo","echo","*.c" ,NULL);
}
int main()
{ if (fork()==0)
execlp("echo","echo","$SHE
else
execlp("echo","echo","*.c"
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It is very good. Thank you very much
ASKER