Skip to content

Issue #748: Fix arithmetic for loops in bash mode#784

Open
bhumikamittal7 wants to merge 1 commit intobinpash:mainfrom
bhumikamittal7:issue-748-1
Open

Issue #748: Fix arithmetic for loops in bash mode#784
bhumikamittal7 wants to merge 1 commit intobinpash:mainfrom
bhumikamittal7:issue-748-1

Conversation

@bhumikamittal7
Copy link

This PR follows up from #760 (remaking the same changes forking off main and closing the previous PR)

Signed-off-by: bhumikamittal7 <bhumika@amuselabs.com>
Copy link
Member

@angelhof angelhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the change in the actual preprocess_node_arithfor function name here. Am I missing something? Also there are a lot of changes that have nothing to do with the PR itself, could you remove them and only have:
(1) the change and fix for preprocess_node_arithfor
(2) uncommenting the tests that pass now

export TMPDIR="${TMPDIR:-/tmp/}"
cd evaluation/tests/interface_tests
./run_bash_tests.sh
bash run_bash_tests.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to change this or the line above in this file?

2
bash: -c: line 1: syntax error: arithmetic expression required
bash: -c: line 1: syntax error: `(( i=0; "i < 3" ))'
line 1: syntax error: arithmetic expression required
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these changes also?

do
echo $i
done' ; echo $?; } 2>&1 | sed 's|^.*/||'
done' ; echo $?; } 2>&1 | sed 's|^.*/||' | sed -E 's/^([^:]+: )+(line [0-9]+:)/\2/'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or these?

{
local shell=$1
$shell arith-for.tests
THIS_SH=$shell $shell arith-for.tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants