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]

Re: Funny behavior with echo command in bash_login


On 2008-08-10 21:33Z, Joe's wrote:
> 
> echo ********************************************
[...results in...]
> Data Mail max_mem.c mbox msmtp.log procmail.log tmp
> 
> Look at the last line, bash seen interpreted my echo
> command in last line as ls command, that not suppose to be.

See "shell expansions" in the bash manual.

> Finally I able to fix using slash in front of *

A more robust way is to quote it:
  echo '***'
See "quoting" in the bash manual.

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