Afficher un message
Vieux 14/03/2008, 12h48   #9
Sven Mascheck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple shell commands using find's -exec

Stephane CHAZELAS wrote:

> find ... -exec ... {} \; # OK
> find ... -exec ... x{} \; # NOK


I had been curious upon an earlier posting of yours
and had looked at some implementations:

The traditional find requires {} to be a separate argument. POSIX hasn't
changed this. The new behaviour was introduced around 386BSD, according
to the FreeBSD manpage archive (haven't nailed it down better).

These variants for example accept an embedded {}:
· all traditional and free BSDs, BSDi/OS
· GNU (probably from the beginning)
· AST (probably from the beginning)
· busybox since 1.1.0-pre1, 20051003 (where -exec was implemented itself)
· OpenServer 6.0.0 (bin and posix)

but these don't accept it:
· SunOS 5.9
· IRIX 6.5.22
· HP-UX 11.11 / 11.31
· sfind-1.1
· OpenServer 6.0.0 (u95-find)
· EP/IX 2.2.1
--
<http://www.in-ulm.de/~mascheck/various/find/>
  Réponse avec citation
 
Page generated in 0,04392 seconds with 9 queries