Working patch attached.
Real problem was repetition symbol ‘+’. For BRE’s on OSX, you need ‘\{1,\}’ 
instead (weird, I know ;-)
Apart from that, I improved in a couple of ways:
- Use single quotes instead of double quotes, to avoid shell interpolation 
interference.
- Add ‘_’ to accepted character class.

I can confirm that works.


> On 20 Jan 2015, at 15:42, Sébastien Hinderer <[email protected]> 
> wrote:
> 
> Eliseo Martínez (2015/01/20 15:22 +0100):
>> Here it is. I’ve renamed it to depend.txt in order to attach it
>> without problems.
> 
> Thanks.
> 
> It seems the sed script does still not work properly on your system.
> 
> The commons/.depend file you have sent is generated by the following
> command:
> 
> /opt/local/bin/ocamldep -I ocamlextra -I ocollection  common.mli oarray.mli 
> oassoc.mli objet.mli ocollection.mli ograph_extended.mli ograph.mli 
> ograph_simple.mli osequence.mli oset.mli parser_combinators.mli commands.ml 
> common.ml common_extra.ml interfaces.ml objet.ml ocollection.ml seti.ml 
> oset.ml oassoc.ml osequence.ml ograph.ml ocollection/oseti.ml 
> ocollection/oseth.ml ocollection/osetb.ml ocollection/osetpt.ml 
> ocollection/oassocb.ml ocollection/oassoch.ml ocollection/oassoc_buffer.ml 
> ocollection/oassoc_cache.ml ocollection/oassocid.ml oarray.ml 
> ocollection/ograph2way.ml ograph_simple.ml ograph_extended.ml glimpse.ml 
> parser_combinators.ml | sed "s/bytes\.cm[a-z]\+//g" > .depend
> 
> Do you know sed enough to play a bit with this command in a terminal and
> see whether youcan make it produce a .depend where there is no occurence
> of bytes.cm something?
> A good test is to replace the "> .depend" in the command by "| grep
> bytes". If the sed bit works the modified command should display nothing
> at all.
> 
> Many thanks for your patience and cooperation!
> Sébastien.
> _______________________________________________
> Cocci mailing list
> [email protected]
> https://systeme.lip6.fr/mailman/listinfo/cocci

Attachment: fix-sed-on-osx.patch
Description: Binary data

_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to