Skip to content

Bash error while running in a directory with space in the name #908

@dincho

Description

@dincho

Looks like the generated script cannot handle paths that include a space in them.

➜  Spaced Dir pwd
/tmp/Spaced Dir
➜  Spaced Dir rebar3 new app foo && cd foo 
===> Writing foo/src/foo_app.erl
===> Writing foo/src/foo_sup.erl
===> Writing foo/src/foo.app.src
===> Writing foo/rebar.config
===> Writing foo/.gitignore
===> Writing foo/LICENSE
===> Writing foo/README.md
➜  foo cat rebar.config
{erl_opts, [debug_info]}.
{deps, []}.

{shell, [
  % {config, "config/sys.config"},
    {apps, [foo]}
]}.

{relx, [{release, { foo, "0.1.0" }, [foo, sasl]},
        {extended_start_script, true}
}.
➜  foo rebar3 release
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling foo
===> Assembling release foo-0.1.0...
===> Warnings generating release:
*WARNING* stdlib: Object code (filename) out of date
===> Release successfully assembled: _build/default/rel/foo
➜  foo _build/default/rel/foo/bin/foo status
sh: line 0: test: /private/tmp/Spaced: binary operator expected
Node is not running!
➜  foo rebar3 --version
rebar 3.18.0 on Erlang/OTP 22 Erts 10.7.2.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions