zopencommunity / coreutilsport

A collection of basic Unix utilities
Apache License 2.0
0 stars 3 forks source link

coreutils env does not export variable #83

Open sachintu47 opened 1 month ago

sachintu47 commented 1 month ago

When running test script "mantest" for jqport as below.

"env PAGER=less $VALGRIND $Q $JQ -L "$mods" --run-tests $JQBASEDIR/tests/man.test".

PAGER variable was not part of the executable environment.

Following solution worked.

  1. Removing env variable as in below. "PAGER=less $VALGRIND $Q $JQ -L "$mods" --run-tests $JQBASEDIR/tests/man.test".

  2. Using native env binary. "/bin/env PAGER=less $VALGRIND $Q $JQ -L "$mods" --run-tests $JQBASEDIR/tests/man.test""