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

fix awk script check_name() in extended_bin #915

Merged
merged 1 commit into from
May 24, 2022

Conversation

sg2342
Copy link
Contributor

@sg2342 sg2342 commented May 18, 2022

when the argument to the system calls in check_name awk
script is built, the file part must be quoted.
if this is not done,
the system call will fail whenever the filename contains spaces

fix #908

priv/templates/extended_bin Outdated Show resolved Hide resolved
@sg2342 sg2342 force-pushed the fix_awk_check_name_in_extended_bin branch 5 times, most recently from dab3627 to 3d6394e Compare May 19, 2022 06:40
@sg2342 sg2342 marked this pull request as draft May 24, 2022 03:22
@sg2342 sg2342 force-pushed the fix_awk_check_name_in_extended_bin branch from 3d6394e to eecc738 Compare May 24, 2022 03:52
when the argument to the system calls in check_name awk
script is built, the file part must be quoted.
if this is not done,
the system call will fail whenever the filename contains special characters

fix erlware#908
@sg2342 sg2342 requested review from tsloughter and ferd May 24, 2022 05:23
@sg2342 sg2342 marked this pull request as ready for review May 24, 2022 05:38
@ferd ferd merged commit d72ee1a into erlware:main May 24, 2022
@sg2342 sg2342 deleted the fix_awk_check_name_in_extended_bin branch May 24, 2022 14:29
@sg2342
Copy link
Contributor Author

sg2342 commented May 24, 2022

@ferd , @tsloughter : do you want a shelltest for this?

@ferd
Copy link
Collaborator

ferd commented May 24, 2022

if you have bandwidth for that, it would certainly be appreciated and useful.

ferd added a commit to erlang/rebar3 that referenced this pull request Jun 18, 2022
- [Use `erlexec` directly in relx helper functions](erlware/relx#902)
- [Make rlx_util:parse_vsn parse integer versions](erlware/relx#913)
- [fix awk script check_name() in extended_bin](erlware/relx#915)
- [avoid crash when overlay is malformed](erlware/relx#916)
- [keep attributes when stripping beams](erlware/relx#906)
- [Fix {include_erts,true} in Windows releases](erlware/relx#914)
- [ensure the erl file is writable before copying dyn_erl to it](erlware/relx#903)
- Various tests added
ferd added a commit to erlang/rebar3 that referenced this pull request Jun 18, 2022
New features:

- [Add --offline option and REBAR_OFFLINE environment variable](#2643)
- [Add support for project-local plugins](#2697)
- [Add eunit --test flag](#2684)

Experimental features for which we promise no backwards compatibility in
the near future:

- [Experimental vendoring provider](#2689)
  - [Support plugins in experimental vendor provider](#2702)

Other changes:

- [Support OTP 23..25 inclusively](#2706)
- [Bump Relx to 4.7.0](#2718)
  - [Use `erlexec` directly in relx helper functions](erlware/relx#902)
  - [Make rlx_util:parse_vsn parse integer versions](erlware/relx#913)
  - [fix awk script check_name() in extended_bin](erlware/relx#915)
  - [avoid crash when overlay is malformed](erlware/relx#916)
  - [keep attributes when stripping beams](erlware/relx#906)
  - [Fix {include_erts,true} in Windows releases](erlware/relx#914)
  - [ensure the erl file is writable before copying dyn_erl to it](erlware/relx#903)
  - Various tests added
- [Properly carry overlay_vars settings for files in relx](#2711)
- [Track mib compilation artifacts](#2709)
- [Attempt to find apps in git subdirs (sparse checkouts)](#2687)
- [Do not discard parameters --system_libs and --include-erts when duplicate values exist](#2695)
- [Use default `depth` parameter for SSL](#2690)
- [Fix global cache config overriding](#2683)
- [Error out on unknown templates in 'new' command](#2676)
- [Fix a typo](#2674)
- [Bump certifi to 2.9.0](#2673)
- [add a debug message in internal dependency fetching code](#2672)
- [Use SPDX id for license in template and test](#2668)
- [Use default branch for git and git_subdir resources with no revision](#2663)

Signed-off-by: Fred Hebert <mononcqc@ferd.ca>
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.

Bash error while running in a directory with space in the name
3 participants