Date: Thu, 27 Sep 2007 20:41:44 +0900 From: Daichi GOTO <daichi@freebsd.org> To: Martin Cracauer <cracauer@cons.org> Cc: FreeBSD Current <freebsd-current@freebsd.org>, Masanori OZAWA <ozawa@ongs.co.jp> Subject: Re: The safety expansion for FreeBSD rm(1) Message-ID: <46FB96F8.20600@freebsd.org> In-Reply-To: <20070925183248.GA38571@cons.org> References: <46F905FD.9060208@freebsd.org> <20070925183248.GA38571@cons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Martin Cracauer wrote: > My idea of a safety feature for rm(1): > > To solve the problem of doing > rm foo * > instead of > rm foo* > > Look at what the commandline arguments are. If at least > - one is appearing twice > - or at least one is not appearing at all > > , then do a "*" expand like from a shell (not perfect of course not > easy enough) and see whether all elements of "*" are there *plus* > others with no "/". If so, the above situation occured and you only > go ahead with a special flag. > > Martin Wow, it's a interest :) -- Daichi GOTO, http://people.freebsd.org/~daichi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46FB96F8.20600>