Skip to content

[Bug]: te completion zsh output has CRLF line endings, breaks on Linux/macOS zsh #20

Description

@jochem-van-eldijk

Pre-flight checks

  • I am running the latest preview release of the Tabular Editor CLI.
  • I have searched existing issues and could not find a duplicate.

CLI version

0.6.0.12612

Operating system

Linux

Architecture

x64

Command that triggered the bug

te completion zsh

Expected behavior

tab auto complete

Actual behavior

completion does not work

Steps to reproduce

te completion zsh > _te
zsh -c 'source _te'
# command not found: ^M
# parse error near `\n'

Additional context

Workaround: strip the CR before sourcing:

te completion zsh | sed 's/\r$//' > ~/.te-completion.zsh

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin-progressCurrently being worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions