bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BASH_SUBSHELL count not counting?


From: Roger
Subject: BASH_SUBSHELL count not counting?
Date: Mon, 29 Aug 2011 16:24:35 -0800
User-agent: Mutt/1.5.21 (2010-09-15)

Within GNU Screen session & VTE:

address@hidden ~ $ bash

0 ;-)
address@hidden ~ $ ps -ax |tail
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
30840 pts/6    Ss     0:00 /bin/bash - /home/roger/bin/bashnoprofile_ionice.sh
30842 pts/5    S+     0:00 bash --noprofile
30844 pts/7    Ss+    0:00 su -
30845 pts/6    S      0:00 bash --noprofile
30848 pts/8    Ss     0:00 /bin/bash - /home/roger/bin/bashnoprofile_ionice.sh
30849 pts/8    S+     0:00 bash --noprofile
30920 ?        S      0:00 [kworker/1:2]
30981 pts/6    S      0:00 bash <-- New bash shell within a bash shell
30995 pts/6    R+     0:00 ps -ax
30996 pts/6    S+     0:00 tail

0 ;-)
address@hidden ~ $ echo $BASH_SUBSHELL
0

0 ;-)
address@hidden ~ $ exit
exit

0 ;-)
address@hidden ~ $

-- 
Roger
http://rogerx.freeshell.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]