Skip to content

"sh" command causes "panic: runtime error: slice bounds out of range" #37

Description

@sumanthr1

Below is the reproduction on CentOS 8:

/ansible-interactive-tutorial]:606 sudo ./tutorial.sh
starting container ansible.tutorial

== Ansible Interactive Tutorial ==

1) Getting Started
2) Basic inventory
3) First modules and facts
4) Groups and variables
5) Playbooks
6) Playbooks, pushing files on nodes
7) Playbooks and failures
8) Playbook conditionals
9) Git module
10) Extending to several hosts
11) Templates
12) Variables again
13) Migrating to roles!
14) Using roles from Ansible Galaxy - Install a Jenkins server
15) Free play

0) [Exit]

Please select a lesson: 1

== Getting Started ==


    Hello, welcome to the Ansible Interactive Tutorial! 

    This lesson is to make you familiar with the environment. 

    Now, you are inside a docker container on which you have ansible installed. 

    Verify that you have ansible installed by running the following command: 

    ansible --version 

~/workspace $ sh 
panic: runtime error: slice bounds out of range

goroutine 20 [running]:
github.com/turkenh/nutsh/cli.tokenize(0xc420060c00, 0xc420060c60, 0xc420060cc0, 0xc4204610d8)
	/root/go/src/github.com/turkenh/nutsh/cli/tokenizer.go:118 +0xad3
created by github.com/turkenh/nutsh/cli.Spawn
	/root/go/src/github.com/turkenh/nutsh/cli/cli.go:46 +0x2c1

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions