Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the missing character in dirname #214

Merged
merged 2 commits into from
Dec 17, 2021
Merged

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.

plugin/seq/shell.cpp Outdated Show resolved Hide resolved
@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