On 5/28/19 8:32 AM, Tim Rühsen wrote: > configure: error: Your 'rm' program is bad, sorry. > ######### > > Is it possible to fix the loadable 'rm' command ? > Let me know if you want me to provide a patch.
Well, it's hard to know exactly what the problem is here, despite the volumes of text produced, because the error message doesn't include the command it tried. I assume we can fix this particular problem by having rm return 0 if there aren't any operands and -f was supplied. That fix is attached. If it's somthing else, there is code in bash, used by the loadable builtins, to return a special status that causes the execution code to fall back to the disk version of a command. The `rm' loadable already uses it for `-i'. We just need to add it for additional cases. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
*** ../bash-5.0-patched/examples/loadables/rm.c 2016-11-03 12:49:45.000000000 -0400 --- examples/loadables/rm.c 2019-05-28 10:36:18.000000000 -0400 *************** *** 146,151 **** if (list == 0) { ! builtin_usage (); ! return (EXECUTION_FAILURE); } --- 146,155 ---- if (list == 0) { ! if (force == 0) ! { ! builtin_usage (); ! return (EXECUTION_FAILURE); ! } ! return (EXECUTION_SUCCESS); }
signature.asc
Description: OpenPGP digital signature