Skip to content

Bash completion script broken #36554

Description

@adamgreg

Version: Deno canary

Hi,

The new bash completion script generation from cli_parser is broken. It outputs literal \n in a couple of places instead of newlines:

    for i in ${COMP_WORDS[@]}
    do
        case "${cmd},${i}" in
            ",${COMP_WORDS[0]}")
                cmd="deno"
                ;;
            "deno,run")\n                cmd="deno__run"
                ;;
            "deno,watch")\n                cmd="deno__watch"
                ;;

If the script is run, tab-completion results in the bash error n: command not found.

Regression in 4e8b2f4.

I'll make a quick PR.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions