Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Substring magic



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



Messages sorted by: Reverse Date, Date, Thread, Author