[Toybox] Posix: failing by omission since 1988.

Rob Landley rob at landley.net
Fri Jun 21 13:44:03 PDT 2013


On 06/20/2013 12:27:46 PM, Felix Janda wrote:
> Rob Landley wrote:
> > The split command creates output files. If an output file exists,  
> does
> > it truncate it? Append to it? Fail? Posix doesn't say.
> 
> See XCU 1.1.1 System Interfaces - File Read, Write, and Creation.

Truncate then. (Good, that's what I did.)

> > If you split an empty file, does it create one empty output file,  
> or no
> > output files?
> 
> "The split utility shall read an input file and write one or more  
> output files."

So the implementation in ubuntu is nonconforming then?

> > What are the permissions of the new files?
> 
> See above.

Again, the implementation in ubuntu is nonconforming. (It copies the  
permissions from the source file.)

> Felix

Rob
 1371847443.0


More information about the Toybox mailing list