delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/04/17:19:14

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: 1.5.21: problem with source command in bash
Date: Wed, 04 Oct 2006 16:16:56 -0500
Lines: 27
Message-ID: <eg18c8$6r5$1@sea.gmane.org>
References: <52B67E1F32707847B44B4B7B1238E36303CDFEC0 AT xmbv3801>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
In-Reply-To: <52B67E1F32707847B44B4B7B1238E36303CDFEC0@xmbv3801>
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

Ring, Patrick wrote:
> I am having a problem with the "source" command in bash (3.1-9).
> When I try to source a file with aliases in it, the aliases get garbled
> so that they don't work.  When I type "alias" on the command line, I can
> see that it is incorrect.  Other commands also do not work, usually
> giving an error like "command not found".
> Example:
> Put the line
>    alias ls='ls -F'
> in a file called trysrc.  Inside bash, cd to the directory and type
>    source trysrc
>    alias
> I get the output
>    'lias ls='ls -F
> If I type 'ls', I get
>    ls:  invalid option --
> 
> If I type the alias command on the command line, it seems to work fine.
> I have also tried this on a second computer and get the same results.
> Thanks in advace for your help,

Have you RTFRA'd (for bash-3.1-9) and STFLA'd? It looks like doing these 
would solve your problem.

-- 
Matthew
This message will self destruct in five millennia.


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