extfs/iso9660.in

Roland Illig roland.illig at gmx.de
Wed Oct 27 19:43:06 UTC 2004


Leonard den Ottolander wrote:
> Hi Roland,
> 
> On Wed, 2004-10-27 at 18:42, Roland Illig wrote:
> 
>>+$ISOINFO -l -i "$1" | sed -e 's,\[[ ]*[0-9][0-9]*[ ]*[0-9][0-9]*\][ ]*,,' | @AWK@ '
> 
> 
> Wouldn't it be better to fix this inside the awk script? Or parse the
> whole thing with sed? It seems a bit redundant to use both awk and
> sed...
> 
> Otherwise you might want to replace the above with this (sorry for the
> line wrap):
> +$ISOINFO -l -i "$1" | sed -e 's,\[[ ]*[0-9]+[ ]+[0-9]+\][ ]*,,' | @AWK@

No, that's not portable. Of course, the GNU sed can do it, but the 
Solaris sed doesn't. The SUSv3 only requires the *, not the +.

http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html
section 9.3.3

Roland



More information about the mc-devel mailing list