You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There may be some scenarios where you want to warn the end user if they enter a dangerous value that they may not have indended, the canonical example being rm -rf / bin/someprog and putting an extra space in there.
Today the rm program uses an extra parameter (--no-preserve-root) to allow that value, but it also terminates the program immediately with an error. This feature will offer devs the option to choose "warn", "error", or custom behavior. To get the behavior used by rm today, you would have to implement your own post-parse validation.
The text was updated successfully, but these errors were encountered:
There may be some scenarios where you want to warn the end user if they enter a dangerous value that they may not have indended, the canonical example being
rm -rf / bin/someprog
and putting an extra space in there.Today the
rm
program uses an extra parameter (--no-preserve-root
) to allow that value, but it also terminates the program immediately with an error. This feature will offer devs the option to choose "warn", "error", or custom behavior. To get the behavior used byrm
today, you would have to implement your own post-parse validation.The text was updated successfully, but these errors were encountered: