delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/21/14:46:57

X-Spam-Check-By: sourceware.org
Message-ID: <n2m-g.doceli.3vvca1n.1@buzzy-box.bavag>
From: Bas van Gompel <cygwin DOT buzz AT bavag DOT tmfweb DOT nl>
Subject: Re: Call for testing Cygwin snapshot
References: <20051130171137 DOT GE2999 AT calimero DOT vinschen DOT de> <n2m-g DOT doanr0 DOT 3vvau2b DOT 1 AT buzzy-box DOT bavag> <20051221054648 DOT GA30866 AT trixie DOT casa DOT cgf DOT cx>
Reply-To: cygwin mailing-list <cygwin AT cygwin DOT com>
Organisation: Ehm...
User-Agent: slrn/0.9.8.1 (Win32) Hamster/2.1.0.0 KorrNews/4.2
To: cygwin AT cygwin DOT com
In-Reply-To: <20051221054648.GA30866@trixie.casa.cgf.cx>
Lines: 63
Date: Wed, 21 Dec 2005 20:46:34 +0100 (MET)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Op Wed, 21 Dec 2005 00:46:48 -0500 schreef Christopher Faylor
in <20051221054648 DOT GA30866 AT trixie DOT casa DOT cgf DOT cx>:
:  On Wed, Dec 21, 2005 at 05:16:34AM +0100, Bas van Gompel wrote:
[Testing freshly built from a CVS-checkout on Dec 20...]

: > This is on win 95 again...

: > I commonly source a file containing among other things: ''
: > /usr/sbin/sshd
: > ''. With this build, when logging in (using ''
: > ssh <machine-name>
: > ''), a new console pops up. It didn't before. When using ''
: > ssh <machine-name> bash -li
: > '' two consoles pop up, and typing ''
: > tty
: > '' on the resultant prompt reports ''not a tty''.


: > If I can help by providing more info, let me know.

:  Could retype that without the strange quoting and maybe provide a little

What do you mean when you write: ``strange quoting''?

:  more explanation about what you mean by "source a file", i.e., provide
:  step by step instructions for duplicating the problem?

On a bash-prompt started from cygwin.bat I type ``
. startsshd
'', where startsshd contains: ``
#!/bin/bash

sshd_pid=`ps |grep -i /usr/sbin/sshd |sed 's, *\([^ ]*\).*,\1,'`

if test -z "$sshd_pid" ; then
 /usr/sbin/sshd ;
 sshd_pid=`ps |grep -i /usr/sbin/sshd |sed 's, *\([^ ]*\).*,\1,'` ;
 PS1='sshd='$sshd_pid';'$PS1 ;
 trap 'sshd_pid=`ps |grep -i /usr/sbin/sshd |sed '\''s, *\([^ ]*\).*,\1,'\''`;if
 test -n "$sshd_pid"; then kill $sshd_pid; else echo sshd not running!; fi' 0 ;
else
 echo sshd already running';' pid=$sshd_pid';' ;
fi
''.

Then from another console or another machine, login as I described
before. Now on the (w85) machine, one (ssh <machine>) or two
(ssh <machine> bash -li) extra blank consoles appear. If in the
2nd case (ssh <machine> bash -li), I type ``tty'' at the prompt
from the console/machine where I logged in, it reports back:
``not a tty'', instead of the usual /dev/ttyN.


Need more info? Ask.


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   /    /   really is |   and false bits entirely.    | mail for
  ) |  |  /    /    a 72 by 4 +-------------------------------+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."    | me. 4^re

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019