This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Funny behavior with echo command in bash_login
- From: Greg Chicares <gchicares at sbcglobal dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 10 Aug 2008 21:53:10 +0000
- Subject: Re: Funny behavior with echo command in bash_login
- References: <20080810213324.GA1792@client-04>
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/