[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading mysql data stream into array
From: |
Greg Wooledge |
Subject: |
Re: Reading mysql data stream into array |
Date: |
Fri, 6 May 2011 12:34:42 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, May 06, 2011 at 06:22:25PM +0200, Dirk wrote:
> I was fooled by "echo $SHELL" returning "/bin/bash", but when I manually
> call "/bin/bash" before running the above command (it is not a script
> yet), it works.
>
> What the heck is going on here ... (!x****mpf)
The $SHELL variable does not indicate what shell you are actually using.
It tells programs like vi what shell to *launch* when you do a shell
escape.
The most reliable way I've found so far to see what shell you are
actually in is: ps -p $$
This works in both Bourne- and C-shell family shells, and it works with
both BSD- and SysV-based ps commands.