Package: moreutils
Version: 0.60-1
Severity: normal
Dear Maintainer,
In normal usage of `sponge`, I expected behavior consistent with shell
redirection `>`, `mkdir`, and other tools.
I asked `sponge` to write to a file in a non-existent directory. It
failed to report a problem until exit, when it attempts to write the
file. This behavior hinders usability by failing to capture input as
expected.
On my debian machine at version 0.60-1 and on macOS brew-managed vresion
0.62, this usage resulted in an error reporting that the [(file or)
directory did not exist].
`sponge` should error more eagerly, by checking for the existence of
pre-requisite directories when it initially called.
Best,
Loren
-- System Information:
Debian Release: 9.11
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-11-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set
to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages moreutils depends on:
ii libc6 2.24-11+deb9u4
ii libipc-run-perl 0.94-1+deb9u1
ii perl 5.24.1-3+deb9u5
moreutils recommends no packages.
Versions of packages moreutils suggests:
pn libtime-duration-perl <none>
ii libtimedate-perl 2.3000-2
-- no debconf information