bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in echo when trying to print "**********************************


From: Eric Blake
Subject: Re: Bug in echo when trying to print "******************************************************************************************"
Date: Mon, 25 Jun 2007 19:29:54 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Robert Thompson on 6/25/2007 7:00 PM:
> I am using CentOS5. In a virtual console when I type the command:
>                                             echo
> "*********************************************************"

What shell are you using?  You probably got your shell's builtin echo
instead of coreutils, since you did not invoke it with an absolute path.
That said, it seems like you aren't pasting the exact command you actually
tried.  echo "*" echoes a single asterisk, "echo *" is a glob character,
interpreted by your shell as all files in the current directory, passed as
multiple arguments to echo, each of which are then echoed, giving the
output you demonstrated.  This is not a bug in echo, but probably a
misunderstanding on your part about shell quoting rules.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGgGwR84KuGfSFAYARAh3XAJ9+w4PH3aJivAVrTeWeE2myQJdEUQCeO10F
KeIA++QUir+EXkKC4PxG6wo=
=5tzi
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]