From caccc0cddb39184df108cad63660db0e2f91353e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 26 Sep 2020 15:05:26 +0200 Subject: [PATCH] Add more tests for -c arguments --- tests/checks/invocation.fish | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/checks/invocation.fish b/tests/checks/invocation.fish index 7c0d3666f..2c3289c3b 100644 --- a/tests/checks/invocation.fish +++ b/tests/checks/invocation.fish @@ -39,7 +39,17 @@ $fish -c 'if status --is-login ; echo login shell ; else ; echo not login shell # CHECK: login shell # CHECK: not interactive +# Arguments for -c $fish -c 'string escape $argv' 1 2 3 # CHECK: 1 # CHECK: 2 # CHECK: 3 + +# Two -cs +$fish -c 'string escape y$argv' -c 'string escape x$argv' 1 2 3 +# CHECK: y1 +# CHECK: y2 +# CHECK: y3 +# CHECK: x1 +# CHECK: x2 +# CHECK: x3