Am 28.04.2012 05:05, schrieb Linda Walsh:
Maarten Billemont wrote:
On 26 Apr 2012, at 06:30, John Kearney wrote:
Am 26.04.2012 06:26, schrieb Linda Walsh:
I know I can get
a="abcdef" echo "${a[2:4]}" = cde
how do I do:
typeset -a a=(apple berry cherry date); then get:
echo ${a[1:2]} = "be
On 4/27/12 10:24 PM, Linda Walsh wrote:
> I thought this was fixed in 4.2, yet I'm still seeing it...
>
> when's this going to be fixed?
There are a couple of things wrong with your question. First, the name of
the shopt option is no_empty_cmd_completion. Second, you haven't
demonstrated a fail
On 4/26/12 8:11 AM, Greg Wooledge wrote:
> Bash uses "dynamic scoping", which is a somewhat controversial choice, and
> has led to a whole lot of confusion in the past. Most other shells use
> static scoping.
I really wish people would stop saying "most other shells," unless by that
they mean "k
On 4/23/12 4:56 AM, Clark Wang wrote:
> When I revisit this 2 years old thread I don't understand why following
> foo() function does not output the global var:
>
> $ cat foo.sh
> var=global
> foo()
> {
> local var=foo
> unset var
> echo foo: $var
> }
> bar_unset()
> {
> unset var