tech-userlevel archive

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

Re: shell quoting



> In the function there is, the "set -- $names" (where $names is unquoted)
> will expand whatever "names" has been set to
I must be missing something.

f() {
	local foo=$1
	local bar="$1"
	test "$foo" != "$bar" && echo 'You win!'
}

How do you win that?


Home | Main Index | Thread Index | Old Index