Mail Archives: cygwin/2005/12/21/14:46:57
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 -