At 03:59 PM 1/23/2002 -0600, Charles Steinkuehler wrote:

>Oops!  I was testing under bash...apparently echo has a somewhat broken 
>echo
>command (as it seems like you already found out).

Yes, I had noticed that little annoyance. But I just did some more testing
and discovered you can double escape the "\" and that apparently works in
both bash and ash.

   echo -e -n "\b\\\\"

It apparently will also work in your "for" loop from your previous message.

   for i in \\\\ \| / - ; do
     echo -e -n "\b$i"
   ...

That gets ticker down to 130 bytes. I am always amazed at what can be done
with shell scripting.

Reply via email to