coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enhancement Requests + Patch: Unlink to support multiple arguments


From: Pádraig Brady
Subject: Re: Enhancement Requests + Patch: Unlink to support multiple arguments
Date: Tue, 17 Nov 2015 12:00:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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

[Prev in Thread] Current Thread [Next in Thread]