(Sorry for the double-post, I saw your CC and replied privately before I
noticed that you did in fact send to the list also.)
Ramprasad wrote:
On Wed, 2006-10-11 at 02:38, mwoehlke wrote:
Anyone have any clever, VERY reliable tricks for detecting if the
current shell is bash?
Hope, i think you can get from `/proc/$$/exe' ?
That would only work on systems that have /proc/$$/exe. Some of the
systems I'm running on (HP-UX, for example) don't even have /proc.
(As a general comment to the replies I've seen:)
I guess I am looking for a test that only uses shell built-ins. Anything
else makes assumptions about the environment and system that can't
always be counted on.
--
Matthew
Will your shell have salvation? Only if it's Bourne Again.
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash