* Substring magic
@ 2006-03-25 8:02 Meino Christian Cramer
2006-03-25 18:18 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Meino Christian Cramer @ 2006-03-25 8:02 UTC (permalink / raw)
To: zsh-users
Hi,
I got confused by this:
#> ddd="-f"
#> echo $ddd
-f
#> echo $ddd[1,2]
-f
#> echo $ddd[2,2]
f
#> echo $ddd[1,1]
#>
Why is there no "-" ???
Keep hacking!
mcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Substring magic
2006-03-25 8:02 Substring magic Meino Christian Cramer
@ 2006-03-25 18:18 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2006-03-25 18:18 UTC (permalink / raw)
To: zsh-users
On Mar 25, 9:02am, Meino Christian Cramer wrote:
}
} #> ddd="-f"
} #> echo $ddd[1,1]
}
} #>
}
} Why is there no "-" ???
Because "echo -" means something to echo, but "echo -f" doesn't.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-25 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-25 8:02 Substring magic Meino Christian Cramer
2006-03-25 18:18 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).