A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=243 ====================================================================== Reported By: dwheeler Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 243 Category: Shell and Utilities Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: David A. Wheeler Organization: IDA User Reference: Section: find Page Number: 2740 Line Number: 89194 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2010-04-29 19:23 UTC Last Modified: 2022-12-08 16:21 UTC ====================================================================== Summary: Add -print0 to "find" ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0000244 Add -0 to xargs related to 0000245 Add -0 option to shell's "read" has duplicate 0000903 Please, add find -print0, xargs -0, rea... ======================================================================
---------------------------------------------------------------------- (0006092) stephane (reporter) - 2022-12-08 16:21 https://austingroupbugs.net/view.php?id=243#c6092 ---------------------------------------------------------------------- > find . ! -name \*'$\n'\* -print Should be: LC_ALL=C find . -name $'*\n*' -prune -o -print > LC_ALL=POSIX read -d "" -r file Should be: IFS= read -rd '' fil I don't know of any shell where LC_ALL=POSIX will make a difference. The -r and IFS= are needed in all of them though. Even in yash, the only shell that does care about proper text encoding: $ printf 'a\200b\n' | { LC_ALL=C IFS= read r a; printf '<%s>\n' "$a"; } read: cannot read input: Invalid or incomplete multibyte or wide character <> Issue History Date Modified Username Field Change ====================================================================== 2010-04-29 19:23 dwheeler New Issue 2010-04-29 19:23 dwheeler Status New => Under Review 2010-04-29 19:23 dwheeler Assigned To => ajosey 2010-04-29 19:23 dwheeler Name => David A. Wheeler 2010-04-29 19:23 dwheeler Organization => IDA 2010-04-29 19:23 dwheeler Section => find 2010-04-29 19:23 dwheeler Page Number => 2740 2010-04-29 19:23 dwheeler Line Number => 89194 2011-07-06 23:42 Don Cragun Relationship added related to 0000244 2011-07-06 23:42 Don Cragun Relationship added related to 0000245 2011-07-06 23:54 Don Cragun Note Added: 0000882 2011-11-16 18:22 dwheeler Note Added: 0001020 2015-03-12 16:15 Don Cragun Relationship added has duplicate 0000903 2022-12-08 15:39 geoffclare Note Added: 0006091 2022-12-08 15:40 geoffclare Note Edited: 0006091 2022-12-08 16:21 stephane Note Added: 0006092 ======================================================================
