Thank you very much.
It is good to read the answers of a historical expert!
On Wed, Apr 30, 2014 at 02:04:02PM -0700, Viktor Szépe wrote:
> I am surprised of these different values:
>
> echo "MAIN $BASHPID" ; echo "first $BASHPID" >&2 | echo "subshell $BASHPID"
> MAIN 30551
> subshell 8514
> first 8513
>
> Why neither side of the pipe has pid 30551?
> Why are TWO new sub
I am surprised of these different values:
echo "MAIN $BASHPID" ; echo "first $BASHPID" >&2 | echo "subshell $BASHPID"
MAIN 30551
subshell 8514
first 8513
Why neither side of the pipe has pid 30551?
Why are TWO new subshells needed?
On Wed, Apr 30, 2014 at 04:39:28PM -0400, Chet Ramey wrote:
> On 4/30/14, 4:34 PM, Viktor Szépe wrote:
> > echo first $$ >&2 | bash -c 'echo second $$'
> > first 30551
> > second 28057
> >
> > but
> >
> > eval 'echo first $$' >&2 | eval 'echo second $$'
> > first 30551
> > second 30551
>
> $$ d
On 4/30/14, 4:34 PM, Viktor Szépe wrote:
> echo first $$ >&2 | bash -c 'echo second $$'
> first 30551
> second 28057
>
> but
>
> eval 'echo first $$' >&2 | eval 'echo second $$'
> first 30551
> second 30551
$$ doesn't change in a subshell environment. It changes in your first
example because y
echo first $$ >&2 | bash -c 'echo second $$'
first 30551
second 28057
but
eval 'echo first $$' >&2 | eval 'echo second $$'
first 30551
second 30551
2014. április 30., szerda 19:51:25 UTC+2 időpontban Greg Wooledge a következőt
írta:
> On Wed, Apr 30, 2014 at 07:27:27AM -0700, Viktor Sz�pe wrote:
>
> > [root@szerver:/var/www:16:26:19:593] pushd zsolt-nezzan | cut -d' ' -f1
>
> > /var/www/zsolt-nezzan
>
>
>
> pushd needs to operate on th
On Wed, Apr 30, 2014 at 07:27:27AM -0700, Viktor Szépe wrote:
> [root@szerver:/var/www:16:26:19:593] pushd zsolt-nezzan | cut -d' ' -f1
> /var/www/zsolt-nezzan
pushd needs to operate on the current shell, rather than in a child
process. When you use a pipeline, as you did here, each command in th
[root@szerver:/var/www:16:26:19:593] pushd zsolt-nezzan | cut -d' ' -f1
/var/www/zsolt-nezzan
[root@szerver:/var/www:16:26:41:594]
but
[root@szerver:/var/www:16:26:41:594] pushd zsolt-nezzan
/var/www/zsolt-nezzan /var/www
[root@szerver:/var/www/zsolt-nezzan:16:27:00:595]
Please help me.
On 4/30/14, 2:49 AM, Curious Costanza wrote:
> I'm a newcomer to the bug-bash mailing list; I apologize in advance if this
> isn't the appropriate forum for this type of question. I suspect this isn't a
> bug, but I'm very confused about the purpose of the -C option for the compgen
> builtin. As
I'm a newcomer to the bug-bash mailing list; I apologize in advance if this
isn't the appropriate forum for this type of question. I suspect this isn't a
bug, but I'm very confused about the purpose of the -C option for the compgen
builtin. As the warning message states, it's not working as I ex
11 matches
Mail list logo