ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    What does the >> cursor mean in Powershell after typing a command?

    IT Discussion
    shell powershell
    3
    6
    647
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Fredtx
      Fredtx last edited by scottalanmiller

      I ran the following command: get-adorganizationalunit -filter 'Name -like "*" | format-table name, Distinguishedname -a and get a cursor with >> instead of PS C:. What does this mean?

      1 Reply Last reply Reply Quote 1
      • scottalanmiller
        scottalanmiller last edited by

        That's the way that the shell indicates to you that you have an incomplete command and that it is awaiting the rest of it. This is copied from older shells like BASH which got it from the original SHELL.

        1 Reply Last reply Reply Quote 2
        • dafyre
          dafyre last edited by

          That usually means you forgot a quote mark or something.

          1 Reply Last reply Reply Quote 2
          • Fredtx
            Fredtx last edited by

            I'll try my syntax again. Is there a way to try again without having to close PS and reopen again?

            scottalanmiller 1 Reply Last reply Reply Quote 0
            • scottalanmiller
              scottalanmiller @Fredtx last edited by

              @fredtx said in What does the >> cursor mean in Powershell after typing a command?:

              I'll try my syntax again. Is there a way to try again without having to close PS and reopen again?

              Try Control-C

              Fredtx 1 Reply Last reply Reply Quote 2
              • Fredtx
                Fredtx @scottalanmiller last edited by

                @scottalanmiller That did the trick. Didn't even cross my mind. Thanks!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post