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

Newlines sourced as \\n string literals #103

Open
OJFord opened this issue Nov 16, 2021 · 0 comments
Open

Newlines sourced as \\n string literals #103

OJFord opened this issue Nov 16, 2021 · 0 comments

Comments

@OJFord
Copy link

OJFord commented Nov 16, 2021

$ echo -e 'declare -x FOO="B\nA\nR\n"' > test
$ bass source ./test
$ echo "$FOO"
B\nA\nR\n
$ set -x FOO 'B
A
R
'
$ echo "$FOO"
B
A
R

$

compare bash:

$ source ./test
$ echo "$FOO"
B
A
R

$
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

No branches or pull requests

1 participant