google / google/vim-maktaba

maktaba#syscall doesn't support newlines properly

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Vim Script
Stars
588
Forks
41
PR merge metrics
No merged PRs in 30d

Description

The `makataba#syscall` functions seem to garble newlines you try to pass to them. For example:

``` VImL
:echo maktaba#syscall#Create(['echo', "foo\nbar"]).GetCommand()
```

```
echo 'foo\
bar'
```

I think it will work properly if we just changed it to pass newlines through unmodified inside single-quoted strings.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.