shanenin Posted September 11, 2005 Report Share Posted September 11, 2005 (edited) I was just messing around with bash, and noticed what seemed to be odd behaviorshane@mainbox ~ $ echo {a,d}ooaoo dooshane@mainbox ~ $ echo {a,}ooaoo ooshane@mainbox ~ $ echo {,a}oooo aooshane@mainbox ~ $ echo {a}oo{a}ooI guess I would have thought `echo {a}oo` would have produced aoo Edited September 12, 2005 by shanenin Quote Link to post Share on other sites
shanenin Posted September 11, 2005 Author Report Share Posted September 11, 2005 this is from man bashA correctly-formed brace expansion must contain unquoted opening and closing braces, and at least one unquoted comma or a valid sequence expression.it still seems unlogical(in my mind) :-) Quote Link to post Share on other sites
jcl Posted September 11, 2005 Report Share Posted September 11, 2005 You're right, it's brain-damaged. Hadn't noticed it before. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.