Skip to content

Commit

Permalink
Fix for ksh93u+ on AIX 7.3
Browse files Browse the repository at this point in the history
Curiously [ -e /dev/xxx ] is always true
  • Loading branch information
ko1nksm committed May 25, 2024
1 parent 6f930df commit 45b02e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/core/modifiers/result_spec.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# shellcheck shell=sh disable=SC2016,SC2286,SC2287,SC2288

% FIXTURE: "$SHELLSPEC_HELPERDIR/fixture"

Describe "core/modifiers/result.sh"
BeforeRun set_subject modifier_mock

Expand Down Expand Up @@ -38,7 +40,7 @@ Describe "core/modifiers/result.sh"
subject() { %- "success_with_output"; }
success_with_output() { echo stdout; true; }
preserve() { %preserve SHELLSPEC_META:META; }
BeforeRun "SHELLSPEC_STDOUT_FILE=/dev/no-such-a-file"
BeforeRun 'SHELLSPEC_STDOUT_FILE=$FIXTURE/no-such-a-file'
AfterRun preserve

When run shellspec_modifier_result _modifier_
Expand Down

0 comments on commit 45b02e0

Please sign in to comment.