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

something strange with rsh/ssh + bash/tcsh is happening. Please advise



Dear DDs,

Please advise since I am not sure against which package to file a bug.
First I mentioned weird behavior with hostname and filed a bug against
it (look below in the quotes). Apparently it might be not a bug of
hostname at all...  There is something else weird is happening

*> rsh node19 '/bin/echo 1111; /bin/echo 123'
1111
123
> rsh node19 /bin/sh -c '/bin/echo 1111; /bin/echo 123'

123
*> rsh node19 /bin/tcsh -c '/bin/echo 1111; /bin/echo 123'

123
*> ssh node19 /bin/tcsh -c '/bin/echo 1111; /bin/echo 123'

123

So it eats 1 output line in those cases for some reason...  no matter if
it is ssh vs rsh, or tcsh vs bash

and in the case with hostname it seems that command line parameter is
not provided. Am I doing something wrong? Where to look for help/bug
fix?

Thank you in advance


On Wed, Dec 28, 2005 at 12:47:10PM -0500, Yaroslav Halchenko wrote:
> Package: hostname
> Version: 2.91
> Severity: normal

> *> rsh localhost hostname -i
> 10.0.0.1
> *>  /bin/sh -c 'hostname -i'
> 10.0.0.1
> BUT
> *> rsh localhost /bin/sh -c 'hostname -i'
> ravana

> It used to be working properly before (2 month ago update) so it is
> probably caused by rsh or bash (since last changelog entry of hostname
> is of 29 Aug), but I believe that such behavior should not happen.

> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.13.4
> Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

> Versions of packages hostname depends on:
> ii  libc6                         2.3.5-9    GNU C Library: Shared libraries an

> hostname recommends no packages.

> -- no debconf information


> --Yarik



-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]


Attachment: pgpQHt5Yos9jJ.pgp
Description: PGP signature


Reply to: