This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.5.21: problem with source command in bash


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

Attachment: cygcheck.out
Description: cygcheck.out

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]