On 16/11/15 22:09, Adam Brenner wrote:
> Howdy All,
> 
> I have an enhancement requests and patch ready for unlink to support
> multiple arguments. Currently unlink does not accept more than one
> argument to remove a link. I have a patch that adds that
> functionality. For example:
> 
>     $ unlink link1 link2 link3
> 
> Is this something the community would like for me to submit?

I'm not sure about changing unlink to do that.
unlink has no protection options like -I, -i etc.
so there is some implicit protection in the fact
you know it will only ever unlink() one file.
Consider a user trying to delete extraneous files like:

  unlink -leading_dash
  unlink '*.c'

The implicit protection in the second example
would prevent any user errors in quoting etc.

cheers,
Pádraig.


Reply via email to