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

main: reserve errno in external sorting #3779

Merged

Conversation

masatake
Copy link
Member

This change fixes that ctags reports the following strange error message:

  $ /usr/bin/ctags --quiet --options=NONE -o - main/*.c | no-such-command
  zsh: no-such-command: command not found...
  ctags: cannot sort tag file : Success

Success?

With this change, ctags reports:

  ./ctags --quiet --options=NONE -o - main/*.c | no-such-command
  zsh: no-such-command: command not found...
  ctags: cannot sort tag file

@leleliu008
Copy link
Member

why use system(3) to execute the external command? for portable reason? As we all known system(3) is dangerous and have limitations.

References:
https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/functions/system.html
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152177

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
This change fixes that ctags reports the following strange error
message:

  $ /usr/bin/ctags --quiet --options=NONE -o - main/*.c | no-such-command
  zsh: no-such-command: command not found...
  ctags: cannot sort tag file : Success

With this change, ctags reports:

  ./ctags --quiet --options=NONE -o - main/*.c | no-such-command
  zsh: no-such-command: command not found...
  ctags: cannot sort tag file

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the reserve-errno-in-external-sorting branch from 51334d4 to a491e8e Compare July 22, 2023 07:00
@masatake
Copy link
Member Author

exuberant-ctags used system(3).

@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Patch coverage: 44.44% and project coverage change: -0.01 ⚠️

Comparison is base (70c7b9a) 83.04% compared to head (a491e8e) 83.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3779      +/-   ##
==========================================
- Coverage   83.04%   83.04%   -0.01%     
==========================================
  Files         227      227              
  Lines       55192    55199       +7     
==========================================
+ Hits        45836    45839       +3     
- Misses       9356     9360       +4     
Impacted Files Coverage Δ
main/sort.c 83.63% <44.44%> (-5.95%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@masatake masatake merged commit eb1c82c into universal-ctags:master Jul 22, 2023
36 of 38 checks passed
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