View Single Post

   
  #3 (permalink)  
Old 02-15-2008, 05:10 PM
J. L. Schilling
 
Posts: n/a
Default Re: UW7: strange return code of mkdir(1)

> Klaus Heinz wrote:
> >
> > I have noticed that 'mkdir -p a/b/c/d' creates the missing

> directories
> > but returns '2' if either a, b, c or d exists beforehand (Unixware
> > 7.1.1).
> >
> > Is this expected behaviour on Unixware or has this changed in later
> > versions?


This was incorrect behavior.

mkdir -p of an existing directory correctly returns 0 on UW 7.1.4
(the current release). This fix was first made in UW 7.1.2
(aka Open UNIX 8).

Jonathan Schilling
Reply With Quote