Re: fail to expand/assigned subshell output into a local variable

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

 



== 11/8/07, Oleg Verych ==
> == 11/8/07, Mike Frysinger ==
> > this code snippet incorrectly
>
> Why incorrectly? There's no assignments in the `local`.

... in the man page (and i didn't used that `feature' myself);

> It's a built-in, thus word splitting does its job,

thus, double quotes will prevent this...

> and incorrect names, that start with digits and have other than
> alpha-numeric symbols, are syntax errors.
>
> > fails under dash: $ { local f=$(date); } local: 5: 8: bad variable name
____
-
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux