A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1544 ====================================================================== Reported By: calestyo Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1544 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: Resolution Proposed Name: Christoph Anton Mitterer Organization: User Reference: Section: uudecode Page Number: 3357 Line Number: 113061-113063 Interp Status: --- Final Accepted Text: https://austingroupbugs.net/view.php?id=1544#c5711 ====================================================================== Date Submitted: 2022-01-08 03:21 UTC Last Modified: 2022-03-01 11:45 UTC ====================================================================== Summary: uudecode: standardise or at least reserve - as another special symbol for decoding to stdout ======================================================================
---------------------------------------------------------------------- (0005722) geoffclare (manager) - 2022-03-01 11:45 https://austingroupbugs.net/view.php?id=1544#c5722 ---------------------------------------------------------------------- Suggested new resolution: Page and line numbers are for Issue 8 draft 2.1 On page 3275 line 111239 change:<blockquote>The <i>uudecode</i> utility shall scan the input file, searching for data compatible with one of the formats specified in <i>uuencode</i>, and attempt to create or overwrite the file described by the data (or overridden by the <b>−o</b> option). The pathname shall be contained in the data or specified by the <b>−o</b> option.</blockquote>to:<blockquote>The <i>uudecode</i> utility shall scan the input file, searching for data compatible with one of the formats specified in <i>uuencode</i>, and determine the pathname for the output file from the <b>-o</b> option if given, otherwise from the input data. If the pathname for the output file is either of the magic cookies <b>−</b> or <b>/dev/stdout</b>, <i>uudecode</i> shall write the decoded file to standard output, otherwise it shall attempt to create or overwrite the file named by the pathname.</blockquote> On Page 3275 line 111259 change:<blockquote><b>/dev/stdout</b></blockquote>to:<blockquote><b>-</b> or <b>/dev/stdout</b></blockquote> Change page 3276 lines 111285-111287 from:<blockquote>If the file data header encoded by <i>uuencode</i> is <b>−</b> or <b>/dev/stdout</b>, or the <b>−o /dev/stdout</b> option overrides the file data, the standard output shall be in the same format as the file originally encoded by <i>uuencode</i>. Otherwise, the standard output shall not be used.</blockquote>to:<blockquote>If the pathname specified for the output file is <b>−</b> or <b>/dev/stdout</b>, the standard output shall be in the same format as the file originally encoded by <i>uuencode</i>. Otherwise, the standard output shall not be used.</blockquote> On page 3276, after line 111305, Application Usage, add a paragraph:<blockquote>In order to create an output file named <b>-</b> it needs to be specified as, for example, <b>-o ./-</b>, since <b>-</b> alone is considered a special name by <i>uudecode</i>.</blockquote> On Page 3276 lines 111314-111318, delete:<blockquote>In early drafts, the [−o outfile] option-argument allowed the use of − to mean standard output. The symbol − has only been used previously in POSIX.1-202x as a standard input indicator. The standard developers did not wish to overload the meaning of − in this manner.</blockquote> On page 3278 at line 111357 change:<blockquote><b>/dev/stdout</b></blockquote>to:<blockquote><b>-</b> or <b>/dev/stdout</b></blockquote> On page 3281 after line 111490 add a new paragraph:<blockquote>Since <i>uudecode</i> treats a <i>decode_pathname</i> of <b>-</b> to mean decode to standard output, in order to specify that a file named <b>-</b> is to be created, <i>decode_pathname</i> should be specified as <b>./-</b>.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2022-01-08 03:21 calestyo New Issue 2022-01-08 03:21 calestyo Name => Christoph Anton Mitterer 2022-01-08 03:21 calestyo Section => uudecode 2022-01-08 03:21 calestyo Page Number => N/A 2022-01-08 03:21 calestyo Line Number => N/A 2022-01-10 10:08 geoffclare Note Added: 0005584 2022-01-10 15:16 calestyo Note Added: 0005586 2022-01-11 00:19 alanc Note Added: 0005592 2022-02-24 09:24 Don Cragun Page Number N/A => 3357 2022-02-24 09:24 Don Cragun Line Number N/A => 113061-113063 2022-02-24 09:24 Don Cragun Interp Status => --- 2022-02-24 15:51 shware_systems Note Added: 0005707 2022-02-24 16:01 calestyo Note Added: 0005708 2022-02-24 16:26 geoffclare Note Added: 0005709 2022-02-24 16:39 calestyo Note Added: 0005710 2022-02-24 17:33 geoffclare Note Added: 0005711 2022-02-24 17:35 geoffclare Final Accepted Text => https://austingroupbugs.net/view.php?id=1544#c5711 2022-02-24 17:35 geoffclare Status New => Resolution Proposed 2022-02-24 21:34 calestyo Note Added: 0005712 2022-02-24 23:23 kre Note Added: 0005713 2022-02-25 03:08 calestyo Note Edited: 0005712 2022-02-25 03:13 calestyo Note Added: 0005715 2022-02-25 10:07 geoffclare Note Added: 0005717 2022-02-25 10:08 geoffclare Note Edited: 0005717 2022-02-25 15:46 kre Note Added: 0005718 2022-03-01 11:45 geoffclare Note Added: 0005722 ======================================================================