Bug#385069: diremtpy or "exists"?

2021-09-15 Thread マダンテ
On Thu, 7 Sep 2006 20:43:26 -0400 Joey Hess wrote: > I think that by generalising beyond dirempty to include exists, you're > getting closer to a generic unix tool. > > I worry though that the tool might be test(1). These seem like fairly > good candidates to add to test, especially dirempty. > >

Bug#385069: moreutils: Please add "dirempty" command

2021-09-15 Thread マダンテ
On Mon, 28 Aug 2006 22:31:35 +0200 Erich Schubert wrote: > Package: moreutils > Version: 0.16 > Severity: wishlist > > Hi, > Testing a directory to be empty in bash is hackish, see > http://wooledge.org/mywiki/BashFaq#head-6ec77504553115e8518271d0d319e27148634f19 > > The cleanest way probably is >

Bug#385069: diremtpy or "exists"?

2021-09-15 Thread マダンテ
On Fri, 08 Sep 2006 03:20:02 +0200 Erich Schubert wrote: > Hi Joey, > > Hmm, and dirempty is just ! exists foo/* && ! exists foo/.* , right? > > Maybe "exists -d foo" would be nicer for this. > In many applications, "exists 'foo/*'" would do the job okay enough (if > you don't plan to rm the direc

Bug#385069: diremtpy or "exists"?

2021-09-15 Thread マダンテ
On Fri, 08 Sep 2006 03:59:51 +0200 Erich Schubert wrote: > Hi, > > I worry though that the tool might be test(1). These seem like fairly > > good candidates to add to test, especially dirempty. > > Definitely test should have had this functionality. > However people will expect test to behave the

Bug#385069: diremtpy or "exists"?

2021-09-15 Thread マダンテ
On Thu, 7 Sep 2006 20:45:27 -0400 Joey Hess wrote: > Erich Schubert wrote: > > A minute ago I didn't need "dirempty", but "exists 'foo/*.bar'" > > test -e "foo" works fine if you have the filename. If you have wildcards > > it gets a bit more complicated. IMHO it would be good to have a > > conven

Bug#385069:

2021-09-15 Thread マダンテ

Bug#385069: diremtpy or "exists"?

2021-09-15 Thread マダンテ
On Sat, 02 Sep 2006 03:55:33 +0200 Erich Schubert wrote: > Hi, > A minute ago I didn't need "dirempty", but "exists 'foo/*.bar'" > test -e "foo" works fine if you have the filename. If you have wildcards > it gets a bit more complicated. IMHO it would be good to have a > convenience command for th