On Wed, Nov 11, 2009 at 3:23 PM, Peter O'Gorman <[email protected]> wrote: > On 11/11/2009 01:55 PM, [email protected] wrote: >> Can someone on this list help me with the following problem with bash? >> >> A simple bash script of mine reads: >> >> #!/bin/bash >> echo {1..3} >> >> When I run it, it prints {1..3}, not 1 2 3 as I expect. My version of bash >> is 4.0.33(1), and running "ls -l /bin/bash" gives >> >> -rwxr-xr-x 1 root wheel 581636 Dec 13 2006 /bin/bash
/bin/bash is not 4.0.33(1), then. 4.0.33 is much more recent than 2006! You must have be running a different bash when you check the version - /sw/bin/bash, maybe? If you put that in your script (e.g. #!/sw/bin/bash instead of #!/bin/bash), it should work. Or you should update to a newer version of OS X. Snow Leopard still doesn't have 4.x in /bin, but it does have 3.2.48, which is new enough for brace ranges to work. -- Mark J. Reed <[email protected]> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
