www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/23/07:33:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_HR
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <6BFA9AF2C7556E42AFF3F187ECAB07B802F9CFCB@bespdc01.mediaxim.local>
References: <1E3D6F97-F938-420C-A5F7-C6446EC27F32 AT intersystems DOT com> <CA+sc5mkcWZZcskBqSCgKJqzTh1-CwbyF_Z83Bsox2zPMtk5v9A AT mail DOT gmail DOT com> <1883CD3D-75CE-4289-A5F9-317DE2ED7F28 AT intersystems DOT com> <CA+sc5m=E78GFTYnTaOgjLOs-99OupJs1TA3aE_-AjdgGYo5F1Q AT mail DOT gmail DOT com> <FEF31C20-5357-4D61-A272-CE75404C3A88 AT intersystems DOT com> <6BFA9AF2C7556E42AFF3F187ECAB07B802F9CFCB AT bespdc01 DOT mediaxim DOT local>
Date: Mon, 23 Apr 2012 07:33:07 -0400
Message-ID: <CA+sc5m=chMhD7VdPAuoaE0XEiOjt4QtfiZkc8dQN-Fg7dM-5ag@mail.gmail.com>
Subject: Re: cygwin 1.7.13-1: can't execute shell scripts on samba share
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q3NBXTG1012891

On Mon, Apr 23, 2012 at 7:02 AM, Michel Bardiaux <MBardiaux AT mediaxim DOT be> wrote:
> [snip]
>
>> lgiambro AT lorien ~
>> $ cat len.sh
>> #!/bin/sh
>> echo it works
>
> And man sh states " --norc Do  not  read  and  execute the personal
> initialization file ~/.bashrc if the
>              shell is interactive.  This option is on by default if the
> shell  is  invoked
>              as sh."
> Which eliminates bashrc as a possible culprit.

bash as sh will use ~/.profile in interactive and -login mode.  My
guess is the remote disk handler is causing Cygwin to not see the file
as executable.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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


- Raw text -


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