Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1071330
| From | マダンテ <oriharukon0217@gmail.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#385069: moreutils: Please add "dirempty" command |
| Date | 2021-09-15 19:10 +0200 |
| Message-ID | <CXGA2-3MP-7@gated-at.bofh.it> (permalink) |
| References | <CXGA2-3MP-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Mon, 28 Aug 2006 22:31:35 +0200 Erich Schubert <erich@debian.org> 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 > if [ -z "$(ls -A "$dir")" ]; then > fi > > Maybe we should add a small utility which does test this in a sane way. > > if dirempty "$dir"; then > fi > > -- System Information: > Debian Release: testing/unstable > APT prefers unstable > APT policy: (500, 'unstable'), (1, 'experimental') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/dash > Kernel: Linux 2.6.17.7 > Locale: LANG=de_DE.UTF-8@euro, LC_CTYPE=de_DE.UTF-8@euro (charmap=UTF-8) > > Versions of packages moreutils depends on: > ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries > ii perl 5.8.8-6.1 Larry Wall's Practical Extraction > > moreutils recommends no packages. > > -- no debconf information > >
Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread
Bug#385069: moreutils: Please add "dirempty" command マダンテ <oriharukon0217@gmail.com> - 2021-09-15 19:10 +0200
csiph-web