|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
what' the command that permit to know which shell i'm using? thanks
|
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Mar 7, 5:09 pm, "Patrick" <patrick.mor...@gmail.com> wrote:
> what' the command that permit to know which shell i'm using? thanks echo $SHELL |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 7 Mar, 13:34, "swami" <sivaswamim...@gmail.com> wrote:
> On Mar 7, 5:09 pm, "Patrick" <patrick.mor...@gmail.com> wrote: > > > what' the command that permit to know which shell i'm using? thanks > > echo $SHELL ok thank you |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"swami" wrote in message ... > On Mar 7, 5:09 pm, "Patrick" wrote: >> what' the command that permit to know which shell i'm using? thanks > > echo $SHELL [...] $SHELL identifies your default shell ... % echo $SHELL /bin/bash % ps -p $$ PID TTY TIME CMD 21531 pts/3 00:00:00 zsh Dimitre |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Mar 7, 7:47 am, "Radoulov, Dimitre" <cichomit...@gmail.com> wrote:
> "swami" wrote in message ... > > On Mar 7, 5:09 pm, "Patrick" wrote: > >> what' the command that permit to know which shell i'm using? thanks > > > echo $SHELL > > [...] > > $SHELL identifies your default shell ... > > % echo $SHELL > /bin/bash > % ps -p $$ > PID TTY TIME CMD > 21531 pts/3 00:00:00 zsh > > Dimitre $0 can also be used.. [root@comp2]~# echo $SHELL /bin/bash [root@comp2]~# ksh # echo $SHELL /bin/bash # echo $0 ksh |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
"Kalyan Manchikanti" wrote in message ... > On Mar 7, 7:47 am, "Radoulov, Dimitre" wrote: >> "swami" wrote in message ... >> > On Mar 7, 5:09 pm, "Patrick" wrote: >> >> what' the command that permit to know which shell i'm using? thanks >> >> > echo $SHELL >> >> [...] >> >> $SHELL identifies your default shell ... >> >> % echo $SHELL >> /bin/bash >> % ps -p $$ >> PID TTY TIME CMD >> 21531 pts/3 00:00:00 zsh [...] > $0 can also be used.. [...] > # echo $SHELL > /bin/bash > # echo $0 > ksh But not with all shells: oss053% echo $SHELL /bin/ksh oss053% ps -p $$ PID TTY TIME CMD 3913 pts/14 0:00 csh oss053% echo $0 No file for $0 Dimitre |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On Mar 8, 3:46 pm, "Radoulov, Dimitre" <cichomit...@gmail.com> wrote:
> "Kalyan Manchikanti" wrote in message ... > > On Mar 7, 7:47 am, "Radoulov, Dimitre" wrote: > >> "swami" wrote in message ... > >> > On Mar 7, 5:09 pm, "Patrick" wrote: > >> >> what' the command that permit to know which shell i'm using? thanks > > >> > echo $SHELL > > >> [...] > > >> $SHELL identifies your default shell ... > > >> % echo $SHELL > >> /bin/bash > >> % ps -p $$ > >> PID TTY TIME CMD > >> 21531 pts/3 00:00:00 zsh > [...] > > $0 can also be used.. > [...] > > # echo $SHELL > > /bin/bash > > # echo $0 > > ksh > > But not with all shells: > > oss053% echo $SHELL > /bin/ksh > oss053% ps -p $$ > PID TTY TIME CMD > 3913 pts/14 0:00 csh > oss053% echo $0 > No file for $0 > > Dimitre- Hide quoted text - > > - Show quoted text - Right..It worked for most shells (atleast the ones I tried ksh,bash,sh,zsh,tcsh) . csh is the only one that doesnt like $0. $strings /bin/csh | grep \$0 No file for $0 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Mar 7, 4:09 am, "Patrick" <patrick.mor...@gmail.com> wrote:
> what' the command that permit to know which shell i'm using? thanks echo $SHELL |
|
![]() |
| Outils de la discussion | |
|
|