View Single Post
  #8   (View Single Post)  
Old 24th September 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

CS, you'll just have to excuse those of us who test their scripts against shells who have yet to be certified as passing the standard, and prefer common-dialect portability over requiring the latest and greatest standards without real need of those features. Ditto for any C99 versus C89 debates. I'm a practical man not a theologian.

As to the OP, all I see is issues relating to $(), ``, and escaping, and wouldn't mind if the OP tried a more direct way of phrasing it.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote