You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Arguments passed to exported binaries when run in the host are interpreted by the shell, this makes the exported binary behave differently than when run directly in the guest, even causing shell syntax errors.
To Reproduce
print1 is an executable the prints its first argument as it is (#!/bin/sh\n echo "$1")
run print1 '--anchor="define(' in the guest, it prints --anchor="define(.
export it with distrobox-export --bin print1
run print1 '--anchor="define(' in the host, it causes this error: distrobox-enter: eval: line 614: syntax error near unexpected token '('
Expected behavior
Running print1 '--anchor="define(' in the host prints --anchor="define(
Desktop (please complete the following information):
Are you using podman, docker or lilipod? podman
Which version or podman? 4.9.3
Which version of distrobox? 1.7.0
Which host distribution? OpenSUSE Aeon
How did you install distrobox? Pre-installed in the OS
The text was updated successfully, but these errors were encountered:
xoich
changed the title
[Error] Arguments to exported binaries are interpred by the shell and can result in unexpected behaviours and syntax errors
[Error] Arguments passed to exported binaries are interpred by the shell and can result in unexpected behaviours and syntax errors
Mar 10, 2024
Describe the bug
Arguments passed to exported binaries when run in the host are interpreted by the shell, this makes the exported binary behave differently than when run directly in the guest, even causing shell syntax errors.
To Reproduce
print1
is an executable the prints its first argument as it is (#!/bin/sh\n echo "$1"
)print1 '--anchor="define('
in the guest, it prints--anchor="define(
.distrobox-export --bin print1
print1 '--anchor="define('
in the host, it causes this error:distrobox-enter: eval: line 614: syntax error near unexpected token '('
Expected behavior
Running
print1 '--anchor="define('
in the host prints--anchor="define(
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: