Hi, on all systems (even those that claim to be POSIX compliant), the following code:
echo usr/src/bla | sed -e 's,[^/]*,..,g' will print ../../.. If I use /usr/xpg4/bin/sed on Solaris instead, I get: ..../..../.. any ideas? BTW: as: echo usr/src/bla | /usr/xpg4/bin/sed -e 's,[^/]*,..,' prints ../src/bla I asume that /usr/xpg4/bin/sed forgets to increment the "dot" location in case of "g"lobal commands. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code