A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1892 ====================================================================== Reported By: calestyo Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1892 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Christoph Anton Mitterer Organization: User Reference: Section: 2.7 Redirection Page Number: 2493 Line Number: 80966, ff. Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-12-12 03:40 UTC Last Modified: 2024-12-12 05:02 UTC ====================================================================== Summary: definition of `{location}>redir-op word` does not specify whether a qouted location is still considered part of the redirection ======================================================================
---------------------------------------------------------------------- (0006994) larryv (reporter) - 2024-12-12 05:02 https://austingroupbugs.net/view.php?id=1892#c6994 ---------------------------------------------------------------------- Desired Action:<blockquote>On page 2494, line 80985, insert:<blockquote>If any part of {location} is quoted it shall not be recognized as part of the redirection expression.</blockquote></blockquote>This agrees with bash 5.2 but disagrees with e.g. ksh93u+ 2012-08-01 and zsh 5.9:<pre>% cat /tmp/austin-1892.sh # Use eval to keep fatal errors contained. eval 'echo hi {fd}>&1' eval 'echo hi \{fd}>&1' eval 'echo hi {\fd}>&1' % bash /tmp/austin-1892.sh hi hi {fd} hi {fd} % ksh /tmp/austin-1892.sh hi hi {fd} /tmp/austin-1892.sh[4]: eval[1]: \fd: invalid variable name % zsh /tmp/austin-1892.sh hi (eval):1: parse error near `}' hi {fd}</pre>This portion of the proposal should be rejected. The standard already says (lines 80985-80986), "If this format is supported its behavior is implementation-defined." This covers the format's interaction with quoting, if any. Issue History Date Modified Username Field Change ====================================================================== 2024-12-12 03:40 calestyo New Issue 2024-12-12 03:40 calestyo Name => Christoph Anton Mitterer 2024-12-12 03:40 calestyo Section => 2.7 Redirection 2024-12-12 03:40 calestyo Page Number => 2493 2024-12-12 03:40 calestyo Line Number => 80966, ff. 2024-12-12 05:02 larryv Note Added: 0006994 ======================================================================
