]> git.ipfire.org Git - thirdparty/coreutils.git/commit
env: add -v/--debug option
authorAssaf Gordon <assafgordon@gmail.com>
Fri, 20 Apr 2018 00:26:07 +0000 (18:26 -0600)
committerPádraig Brady <P@draigBrady.com>
Thu, 21 Jun 2018 04:14:47 +0000 (21:14 -0700)
commita0118a71bb16f9b3f0e8d0cbfce4f78fc630fb19
tree7e670d6b87b3cc99a3fa798adffe43caf89a705d
parent068b46e73bf74ecd8c9e8b087d245eeb48495e4e
env: add -v/--debug option

Prints verbose information about each step:

  $ env -v -uFOO  -C /tmp BAR=BAZ date -u
  env: unset:    FOO
  env: setenv:   BAR=BAZ
  env: chdir:    '/tmp'
  env: executing: date
  env:    arg[0]= ‘date’
  env:    arg[1]= ‘-u’
  Sun Apr 22 08:52:30 UTC 2018

Inspired by FreeBSD's env(1).

* src/env.c (usage): Mention new option.
  (main): Print debug information if requested.
* NEWS: Mention new option.
* doc/coreutils.texi (env invocation): Mention -v/--debug.
NEWS
doc/coreutils.texi
src/env.c