scripts: environment: Use system* instead of system.
authorDavid Thompson <dthompson2@worcester.edu>
Fri, 9 Oct 2015 16:11:24 +0000 (12:11 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Fri, 9 Oct 2015 16:17:01 +0000 (12:17 -0400)
commit1de2fe95e017c42aacbaa34f5dab8d48249cc064
tree12ee4d22703352afcf478f581b4b2cfafc8a8b6e
parentbbd00d2012833c6419a62f6490cbef3e896b1e11
scripts: environment: Use system* instead of system.

This allows for direct program invokation without needing a shell to act
as a command interpreter.

* guix/scripts/environment.scm (%default-shell): New variable.
  (show-help): Adjust description.  Remove '--exec' reference.
  (%default-options): Use '%default-shell'.
  (%options): Adjust '--exec' to run command via the default shell.
  (parse-args): New procedure.
  (guix-environment): Use 'parse-args'.  Use 'system*' instead of
  'system'.
* tests/guix-environment.sh: Add test for '--' command invokation.
* doc/guix.texi ("Invoking guix environment"): Use new syntax.  Remove
  '--exec' documentation.
doc/guix.texi
guix/scripts/environment.scm
tests/guix-environment.sh