镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

demarcation strings could collide with regular output #2

Description

@darrenderidder

Since the stderr >>> prompt didn't work very well to demarcate command responses, I added a header and footer to the command response, which are just "COMMAND START" and "COMMAND END". Which is pretty lame because these strings could appear somewhere in the normal output. Making them more unique and making the regex test that looks for them a little more explicit would be better.

Activity

  1. mk-pmb commented on Apr 6, 2014

    @mk-pmb
    Contributor

    Would MIME-style boundaries solve it?

  2. darrenderidder commented on Apr 6, 2014

    @darrenderidder
    CollaboratorAuthor

    Something like that. The solution I had in mind is just to use a random string instead of a hard-coded one; I briefly looked into generating UUID's, but now consider that to be overkill.

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