I ran across a strange inconsistency today. What should
su -l -c 'echo $PATH'
return when run by an ordinary user (who happens to know the root
password) at the bash prompt? Under Mandriva and CentOS it returns the
user's path, but under Debian it returns root's path. I don't
understand the inconsistency or which response is correct, but that
would seem to make some shell scripts non-portable.
Adam
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) Vassar College
Dec 5 - SysAdmin Panel
Jan 9 - High Performance Computing
Feb 6 - February Meeting