www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/21/19:48:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=aYPnaN6Y4QM0JxGwu0CfFbiWTVzqRLqBl9owBnwZsFzjz3sDkzh6qD5Tfvx07MVCO0sGttazGfWQBGxyh2ZPSoBKlpQ6O9f3mL3fKDAdayYF7yrKq5FN1IbYD6utPLOZEUGwszcod2r2EBM+mzlidECWxldv4v3+jUoYI3UvjA0=
Message-ID: <4d211735041021164839ba2ac3@mail.gmail.com>
Date: Thu, 21 Oct 2004 16:48:25 -0700
From: Philip Nemec <pnemec AT gmail DOT com>
Reply-To: Philip Nemec <pnemec AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: .bashrc not called for non-interactive ssh sessions
Mime-Version: 1.0
X-IsSubscribed: yes

As best as I can tell from the archives and man pages, ~/.bashrc
should be called when starting an ssh session - both interactive and
non-interactive.  Tests on my Linux box behave as expected:

ssh linuxbox
ssh linuxbox pwd
ssh cygwinbox

But ssh cygwinbox pwd does *not* call ~/.bashrc...

From the bash man page:

       Bash attempts to determine when it is being run  by  the  remote  shell
       daemon,  usually  rshd.  If bash determines it is being run by rshd, it
       reads and executes commands from ~/.bashrc, if that file exists and  is
       readable.  It will not do this if invoked as sh.  The --norc option may
       be used to inhibit this behavior, and the --rcfile option may  be  used
       to  force  another  file to be read, but rshd does not generally invoke
       the shell with those options or allow them to be specified.

--
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