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
Silent mode ex (-s) has different exit code than non-silent based on presence of line continuation in vimscript plugin #5628
Comments
What is
|
In my original repro steps, With either Both It would appear that the underlying issue is |
Looks like I think this is intentional, to make batch-mode behaviour more reproducible (by implying @lucianposton : if your batch script contains continuation lines, or if it otherwise relies on |
If indeed |
See :help -s-ex |
Describe the bug
ex -s
exits with failure code (1) whileex
exits success code (0) when a plugin's vimscript contains a line continuation with backslash.Examples of vimscript causing this issue:
Example of vimscript not causing this issue:
To Reproduce
Step 1:
Empty ~/.vimrc and ~/.vim.
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
Step 8:
Step 9:
Step 10:
Step 11:
Step 12:
Step 13:
Step 14:
Step 15:
Step 16:
Step 17:
Step 18:
Step 19:
Step 20:
Step 21:
Expected behavior
Expected behavior is that step 11 has the same exit code as steps 4, 7, 14, 18, and 21.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: