On Fri, Feb 19, 2010 at 10:31:26AM +0100, Ondřej Vašík wrote: > Hi, > > Pozsar Balazs wrote: > > New (hopefully better) version of the patch. > > > > dd: status=noinfo operand suppresses the transfer count information > > when the program exits. > > I think that option does not follow POSIX.
Yes, this would been an extension. What's the problem with that? Why would we limited by the features standardized by posix? > Similar thing was requested this week at > https://bugzilla.redhat.com/show_bug.cgi?id=566079 , I suggested some > wrapper script to achieve this. What I want is: do not print out record count etc, but do print out errors if there were. You cannot do that with wrapper scripts in any sane way. > dd POSIX says: > " > On completion, dd shall write the number of input and output blocks to > standard error. In the POSIX locale the following formats shall be used: > ... > In addition, when there is at least one truncated block, the number of > truncated blocks shall be written to standard error. In the POSIX > locale, the format shall be: > " > > With this option, it will not output POSIX-required informations on > stderr on completition and therefore it should not be possible to > supress those informations (at least with POSIXLY_CORRECT but doing > additionally this hack looks silly to me) This argument is nonsense. If I choose that dd should not behave posixly correct, then SURPRISE, it wont behave posixly correct and will suppress those lines. Please don't tell me that a check for POSIXLY_CORRECT should be added so if I pass both POSIXLY_CORRECT=1 and status=noinfo (oh what a fun!) it should give me an error about bad options... -- pozsy
