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

man: avoid unportable use of utilities #1062

Closed
wants to merge 1 commit into from

Conversation

mohd-akram
Copy link
Contributor

These flags are not documented.

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
@bsdimp bsdimp added the merged label Jan 15, 2024
@bsdimp
Copy link
Member

bsdimp commented Jan 15, 2024

This change is good. I wrote a longer commit message explaining what was unportable and what changes were made. Please try to do that for future commits. Everything else about the commit was correct.

@bsdimp bsdimp closed this Jan 15, 2024
freebsd-git pushed a commit that referenced this pull request Jan 15, 2024
echo -e is not portable. It can be replaced by printf %b (it works
only with the /bin/sh built-in echo, not /bin/echo anyway).
head -# is not portable, but head -n # is.

Replace these two things in three places total.

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Reviewed by: imp
Pull Request: #1062
@mohd-akram mohd-akram deleted the man-portable branch January 15, 2024 18:36
@mohd-akram
Copy link
Contributor Author

Thanks, noted.

@bsdimp
Copy link
Member

bsdimp commented Jan 16, 2024

Thanks, noted.

Thanks for finding these and fixing the problems.

bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Mar 15, 2024
echo -e is not portable. It can be replaced by printf %b (it works
only with the /bin/sh built-in echo, not /bin/echo anyway).
head -# is not portable, but head -n # is.

Replace these two things in three places total.

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Reviewed by: imp
Pull Request: freebsd/freebsd-src#1062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants