Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 73) sorted by relevance

123

/coreutils/tests/env/
Denv-S.pl24 my $env = "$ENV{abs_top_builddir}/src/env";
26 $env =~ m!^([-+\@\w./]+)$!
28 $env = $1;
36 exists $ENV{$cf} and $env .= " -u$cf";
39 exists $ENV{$cf} and $env .= " -u$cf";
41 exists $ENV{$cf} and $env .= " -u$cf";
53 ['q1', q[-S'-i A="B C" ]."$env'", {OUT=>"A=B C"}],
54 ['q2', q[-S"-i A='B C' ]."$env\"", {OUT=>"A=B C"}],
55 ['q3', q[-S"-i A=\"B C\" ]."$env\"", {OUT=>"A=B C"}],
57 ['q4', q[-S'-i A="B \" C" ]."$env'", {OUT=>'A=B " C'}],
[all …]
Denv.sh21 print_ver_ env pwd nice
35 env - > out || fail=1
37 env -i > out || fail=1
39 env -u a -i -u a -- > out || fail=1
41 env -i -- a=b > out || fail=1
46 returns_ 125 env --- || fail=1 # unknown option
47 returns_ 125 env -u || fail=1 # missing option argument
48 returns_ 2 env sh -c 'exit 2' || fail=1 # exit status propagation
49 returns_ 126 nice . && { returns_ 126 env . || fail=1; } # invalid command
50 returns_ 127 env no_such || fail=1 # no such command
[all …]
Denv-null.sh20 print_ver_ env printenv
32 env -i PATH="$PATH" env -0 > out1 || fail=1
33 env -i PATH="$PATH" printenv -0 > out2 || fail=1
35 env -i PATH="$PATH" env --null > out2 || fail=1
37 env -i PATH="$PATH" printenv --null > out2 || fail=1
41 returns_ 125 env -0 echo hi > out || fail=1
46 env -i -0 "$(printf 'a=b\nc=')" > out || fail=1
51 env "$(printf 'a=b\nc=')" printenv -0 a > out || fail=1
53 returns_ 1 env -u a printenv -0 a > out || fail=1
55 returns_ 1 env -u b "$(printf 'a=b\nc=')" printenv -0 b a > out || fail=1
Denv-signal-handler.sh20 print_ver_ env seq test timeout printf
65 env --default-signal=PIPE \
76 env --default-signal \
83 env --block-signal true || fail=1
90 env timeout --verbose --kill-after=.1 --signal=INT $delay \
91 env $env_opt sleep 10 > /dev/null 2>outt
119 env --default-signal --ignore-signal=INT --list-signal-handling true \
122 env printf 'INT (): IGNORE\n' > exp-err8 || framework_failure_
/coreutils/tests/misc/
Dkill.sh23 returns_ 1 env kill || fail=1
24 returns_ 1 env kill -TERM || fail=1
27 returns_ 1 env kill -l -l || fail=1
28 returns_ 1 env kill -l -t || fail=1
29 returns_ 1 env kill -l -s 1 || fail=1
30 returns_ 1 env kill -t -s 1 || fail=1
33 returns_ 1 env kill -0 no_pid || fail=1
34 env kill -0 $$ || fail=1
35 env kill -s0 $$ || fail=1
36 env kill -n0 $$ || fail=1 # bash compat
[all …]
Dprintenv.sh30 env -- env | grep -Ev '^(_|LD_PRELOAD)=' > exp || framework_failure_
31 env -- printenv | grep -Ev '^(_|LD_PRELOAD)=' > out || fail=1
37 if env -- printenv | grep '^ENV_TEST' >/dev/null ; then
42 returns_ 1 env -- printenv ENV_TEST > out || fail=1
45 ENV_TEST=a env -- printenv ENV_TEST > out || fail=1
49 ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST2 ENV_TEST1 ENV_TEST2 > out \
51 ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST1 ENV_TEST2 >> out || fail=1
63 returns_ 1 env -- printenv ENV_TEST2 ENV_TEST1 > out || fail=1
64 returns_ 1 env -- printenv ENV_TEST1 ENV_TEST2 >> out || fail=1
75 env -- -a=b printenv -- -a > out || fail=1
[all …]
Dfalse-status.sh23 returns_ 1 env false --version > /dev/null || fail=1
24 returns_ 1 env false --help > /dev/null || fail=1
27 returns_ 1 env true --version > /dev/full || fail=1
28 returns_ 1 env true --help > /dev/full || fail=1
Dusage_vs_getopt.sh29 env | chroot | nice | nohup | runcon | stdbuf | timeout ) rcexp=125 ;;
62 # Add a 2nd --help for the 'env -u --help' case.
/coreutils/tests/pwd/
Dpwd-option.sh24 base=$(env -- pwd -P)
34 env -- pwd -L > out || fail=1
37 env -- pwd --logical -P >> out || fail=1
40 env -- pwd --physical >> out || fail=1
44 env -- pwd >> out || fail=1
47 env -- POSIXLY_CORRECT=1 pwd >> out || fail=1
51 env -- PWD="$PWD/." pwd -L >> out || fail=1
54 env -- PWD=bogus pwd -L >> out || fail=1
57 env -- PWD="$base/a/../c" pwd -L >> out || fail=1
/coreutils/tests/cksum/
Dcksum.sh26 env printf $(env printf '\\%03o' $(seq 0 $offset));
27 env printf $(env printf '\\%03o' $(seq 0 255));
37 env printf $(env printf '\\%03o' $(seq 0 130));
47 env printf $(env printf '\\%03o' $(seq 0 64));
/coreutils/src/
Dprintenv.c83 char **env; in main() local
115 for (env = environ; *env != nullptr; ++env) in main()
116 printf ("%s%c", *env, opt_nul_terminate_output ? '\0' : '\n'); in main()
131 for (env = environ; *env; ++env) in main()
133 ep = *env; in main()
Dmktemp.c264 char *env = getenv ("TMPDIR"); in main() local
265 if (env && *env) in main()
266 dest_dir = env; in main()
283 char *env = getenv ("TMPDIR"); in main() local
284 dest_dir = (env && *env ? env : "/tmp"); in main()
/coreutils/tests/test/
Dtest-N.sh23 mtime=$(env stat -c '%.Y' "$1")
24 atime=$(env stat -c '%.X' "$1")
33 returns_ 1 env test -N file || fail=1
39 env test -N file || fail=1
45 returns_ 1 env test -N file || fail=1
51 env test -N file || fail=1
/coreutils/tests/dd/
Dascii.sh24 env printf '\100\301\100\301\100\301\100\100' &&
25 env printf $(env printf '\\%03o' $(seq 0 255));
30 env printf \
/coreutils/tests/help/
Dhelp-version-getopt.sh39 env $prog $opt >exp || fail=1
42 env $prog $opt AFTER > out1 || fail=1
56 env $prog $BEFORE $opt > out2 || fail=1
60 env $prog $BEFORE $opt AFTER > out3 || fail=1
71 env yes -- --help | head -n1 > out
Dhelp-version.sh63 v=$(env $i --version | sed -n '1s/.* //p;q')
84 env $i --help >/dev/null || fail=1
85 env $i --version >/dev/null || fail=1
94 returns_ $expected env $i --help >/dev/full 2>/dev/null &&
95 returns_ $expected env $i --version >/dev/full 2>/dev/null ||
98 env $i --help >/dev/full 2>/dev/null
219 external=env
264 if env $i $args < $tmp_in > $tmp_out; then
/coreutils/tests/touch/
Dnot-owner.sh23 if env -- test -w /; then
27 if env -- test -O / || env -- test -G /; then
Dno-create-missing.sh30 if env test -w /dev/stdout >/dev/null &&
31 env test ! -w /dev/stdout >&-; then
/coreutils/tests/ls/
Droot-rel-symlink-color.sh25 env test -h "$i" || continue
28 env test -e "$i" || continue
46 env TERM=xterm LS_COLORS="ln=$color_code:or=1;31;42" \
/coreutils/tests/chroot/
Dchroot-fail.sh44 chroot --skip-chdir . env pwd >out 2>err && fail=1
54 curdir=$(chroot "$dir" env pwd) || fail=1
58 curdir=$(chroot --skip-chdir "$dir" env pwd) || fail=1
/coreutils/tests/nice/
Dnice-fail.sh21 print_ver_ nice env
29 returns_ 126 env . && { returns_ 126 nice . || fail=1; } # invalid command
/coreutils/tests/mkdir/
Drestorecon.sh63 env -- $cmd_w_arg $basename $nt || fail=1
64 env -- $cmd_w_arg ${basename}_restore $nt || fail=1
66 env -- $cmd_w_arg -Z ${basename}_Z $nt || fail=1
/coreutils/tests/timeout/
Dtimeout-parameters.sh20 print_ver_ timeout env
45 returns_ 126 env . && { returns_ 126 timeout 10 . || fail=1; }
/coreutils/tests/chmod/
Dsetgid.sh28 chmod g+s d 2> /dev/null && env -- test -g d ||
37 chgrp "$id_g" d && chmod g+s d && env -- test -g d && break
/coreutils/tests/id/
Dsetgid.sh37 env PATH="$PATH" id -G > out || fail=1
43 env PATH="$PATH" id > out || fail=1

123