Operating System - HP-UX
1761300 Members
1866 Online
108901 Solutions
New Discussion

export command is not working

 
SOLVED
Go to solution
Steven Schweda
Honored Contributor

Re: export command is not working

> 1. How can I know what shell Im running
> with (I mean, is there any command that
> displays the shell)?

I had intended to suggest this a while ago,
but got distracted.

echo $0

dy # echo $0
bash
dy # /bin/sh
dy # echo $0
/bin/sh
dy # sh
dy # echo $0
sh

Apparently not good in every case, though:

dy # /bin/csh
# echo $0
No file for $0.