[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] help
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] help |
Date: |
Mon, 7 Mar 2016 08:13:43 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Sun, Mar 06, 2016 at 11:43:23PM -0500, Dave Rutherford wrote:
> > time=$1
>
> You should quote "$1" there, because you should almost
> always quote when something is user-supplied.
When writing a simple assignment like this, the right hand side does
not need to be quoted. There won't be any word splitting or filename
expansions here. This is a special case.
Quoting won't hurt, though.