[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to supply a string with space in it as parameter to a function?
From: |
Andres P |
Subject: |
Re: How to supply a string with space in it as parameter to a function? |
Date: |
Wed, 23 Jun 2010 20:31:31 -0430 |
On Wed, Jun 23, 2010 at 8:23 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
> Why printf is better than echo? Is this because printf is more robust than
> echo?
Because if a string that is to be printed happens to be an echo flag, such
as -n or -e, there's no straight forward way of escaping it such as
with printf %s.
Andres P