All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
To: dash@vger.kernel.org
Subject: Inconsistent behaviour between 'jobs' and 'echo "$(jobs)"'
Date: Mon, 19 Jan 2015 19:01:53 +0100	[thread overview]
Message-ID: <54BD4691.7050906@ertelnet.rybnik.pl> (raw)

Hi,

I'm observing an inconsistent behaviour between:
  jobs
and
  echo "$(jobs)"

Here is the short example:

$ rpm -qv dash
dash-0.5.8-1.fc21.i686
$ /bin/dash
$ sleep 1000 &
$ jobs
[1] + Running                    sleep 1000
$ echo "$(jobs)"

$ echo `jobs`

$ jobs 2>/dev/null
[1] + Running                    sleep 1000
$

-- 
Have a nice day,
Damian

             reply	other threads:[~2015-01-19 18:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-19 18:01 Damian Wrobel [this message]
     [not found] ` <20150120084438.GA751@ein.free.fr>
2015-01-20 17:01   ` Inconsistent behaviour between 'jobs' and 'echo "$(jobs)"' Damian Wrobel
2015-01-20 19:07     ` Seb
2015-01-21 13:42     ` Seb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54BD4691.7050906@ertelnet.rybnik.pl \
    --to=dwrobel@ertelnet.rybnik.pl \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.