[Toybox] [PATCH] Don't rm prompt for nonexistent, just warn.

Denys Nykula nykula at ukr.net
Tue Nov 12 09:45:51 PST 2019


Posix rm 1(a):

> If the -f option is not specified, rm shall write a diagnostic message to standard error.
> Go on to any remaining files.

Want:

# rm x
rm: x: No such file or directory

Have, calling from script:

# rm x
rm ro x (y/N):

Attaching patch, but having deja vu as though toy rm did behave like posix
while I was scripting earlier this year and there was some discussion here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-rm-prompt-for-nonexistent-just-warn.patch
Type: application/x-patch
Size: 1340 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191112/7661648a/attachment-0002.bin>


More information about the Toybox mailing list