Mark J. Reed wrote: > On Wed, Nov 11, 2009 at 3:23 PM, Peter O'Gorman <pe...@pogma.com> wrote: >> On 11/11/2009 01:55 PM, drjl...@netonecom.net 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.
In Leopard's /bin/bash, which is version 3.2.17 and was last updated in 2008 with 10.5.3, it works, too. Jonathan's /bin/bash from December 2006 is Tiger's bash version 2.05b.0. -- Martin ------------------------------------------------------------------------------ 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 Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users