Package: bash
Version: 4.2-1
Severity: important
Tags: upstream

The "&&" operator in bash seems to inhibit backgrounding when run over 
ssh. You can try it with the following:

  ssh localhost "cd /tmp && nohup sleep 10 >/dev/null 2>&1 &"

The above command will wait for sleep(1) to finish before returning. 
If it is run without ssh, it returns immediately. Furthermore, other 
shells such as dash and zsh will return immediately regardless of 
whether ssh is used.

A workaround in this case is to use "|| exit 1;" instead of "&&".


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files   6.5
ii  dash         0.5.7-2
ii  debianutils  4.2.1
ii  libc6        2.13-26
ii  libtinfo5    5.9-4

Versions of packages bash recommends:
ii  bash-completion  1:1.99-3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- Configuration Files:
/etc/bash.bashrc changed [not included]
/etc/skel/.bashrc changed [not included]

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to