Skip to content

Conversation

@zhaog6
Copy link
Contributor

@zhaog6 zhaog6 commented Dec 16, 2021

The directory name miss a character. For example, using the original shell file, the return value of the dirname is /home/zhaog6/tes when the edp file to edit is in /home/zhaog6/test. The wrong occur on line 219 in shell.cpp.

The PR fixs right side of substring of path because substr is closed on the left side and open on the right side.

@prj-
Copy link
Member

prj- commented Dec 16, 2021

Could you please explain what was wrong before and what does this fix? Thanks for your contribution.

@zhaog6
Copy link
Contributor Author

zhaog6 commented Dec 16, 2021

Could you please explain what was wrong before and what does this fix? Thanks for your contribution.

Updated in comment.

@zhaog6 zhaog6 requested a review from prj- December 17, 2021 01:34
@prj- prj- merged commit 8e1c7d1 into FreeFem:develop Dec 17, 2021
@zhaog6 zhaog6 deleted the shell_dirname branch December 17, 2021 08:42
pavanakumar pushed a commit to pavanakumar/FreeFem-sources that referenced this pull request Mar 15, 2022
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