problem with wrapper script since updating

Bug #476382 reported by Andrew Elwell
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pdsh (Debian)
Fix Released
Unknown
pdsh (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: pdsh

I have been using pdsh for several ubuntu releases, and had set in my environment PDSH_RCMD_TYPE=ssh
which worked fine.

post upgrade to 9.10 I get:

aelwell@pcitgdaelwell:~$ pdsh -l root -w lxbrf27[06-10] hostname
exec: 6: -a: not found

and unsetting PDSH_RCMD_TYPE I get a different error:
exec: 14: -a: not found

problem is caused by the wrapper script /usr/bin/pdsh using
#! /bin/sh (which is dash)
rather than
#! /bin/bash

editing the shebang line worked.

ProblemType: Bug
Architecture: i386
Date: Fri Nov 6 12:28:16 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: openafs fglrx
Package: pdsh 2.18-1
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: pdsh
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Andrew Elwell (andrew-elwell) wrote :
Revision history for this message
Andrew Elwell (andrew-elwell) wrote :

--- pdsh.orig 2009-11-06 13:20:37.807901550 +0100
+++ pdsh 2009-11-06 12:32:45.703919331 +0100
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash

 # If PDSH_RCMD_TYPE is set don't check default
 if test $PDSH_RCMD_TYPE; then

olive (olivier.fraysse)
Changed in pdsh (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Elwell (andrew-elwell) wrote :

upgraded to Lucid (10.04) and this bug is fixed -
Q - What should happen to the status? how should it be updated?

aelwell@pcitgtelwell:~$ head `which pdsh`
#! /bin/bash

# If PDSH_RCMD_TYPE is set don't check default
if test $PDSH_RCMD_TYPE; then
  exec -a pdsh /usr/bin/pdsh.bin "$@"
fi

# If a default is set run with it.
if test -f /etc/pdsh/rcmd_default; then
  PDSH_RCMD_TYPE=`cat /etc/pdsh/rcmd_default`
aelwell@pcitgtelwell:~$ dpkg -l pdsh
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================-=================-==================================================
ii pdsh 2.18-5 Efficient rsh-like utility, for using hosts in par

Changed in pdsh (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.