delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/07/04:39:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 07 Apr 2008 01:38:39 -0700
From: "Joel M. Baldwin" <qumqats AT outel DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Getting started with bash
Message-ID: <D9C5C745FD957899B39D7759@[192.168.1.20]>
In-Reply-To: <47F9DA5E.3060904@hollo.dk>
References: <1207553471 DOT 24669 DOT ezmlm AT cygwin DOT com> <47F9DA5E DOT 3060904 AT hollo DOT dk>
X-Mailer: Mulberry/4.0.4 (Win32)
MIME-Version: 1.0
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

--On Monday, April 07, 2008 10:25 AM +0200 Michael Holm <hollo AT hollo DOT dk> 
wrote:

> Hi,
>
> I have read a lot of documents, but i really cant get this issue solved :(
> All i want is to be able to execute bash scripts from a windows
> desktop.. what i do now is..
>
>
> a batch script:
> c:\cygwin\bin\bash c:\cygwin\example.sh
>
> this is my bash script.
>
> example.sh
> ls -l
>
>
> but i get the following output:
> command not found.
>
> i hope that someone can give me a hit... all i have done is:
> install cygwin, made my batch script.. and made my bash script.. do i
> need to set any environment vars or something?
>
> mvh
> Michael Holm

Add the -l option to bash.
i.e. "man bash" for an explanation

This makes it a login shell which must cause the PATH variable to be set.


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