Copy & Paste of commands from OneNote into a CLI does not work

%3CLINGO-SUB%20id%3D%22lingo-sub-1387367%22%20slang%3D%22en-US%22%3ECopy%20%26amp%3B%20Paste%20of%20commands%20from%20OneNote%20into%20a%20CLI%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1387367%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20friends!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20how%20I%20got%20aware%20of%20the%20issue%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20noticed%20copying%20%26amp%3B%20pasting%20code%20%2F%20bash%20commands%20out%20of%20Microsoft%20OneNote%20(for%20Mac)%20into%20Google%20Cloud%20Platform%20CloudShell%20would%20cause%20every%20command%20to%20fail.%20I%20would%20get%20unknown%20parameter%20exceptions%20and%20similar.%20When%20I%20type%20in%20the%20full%20command%20into%20CloudShell%20manually%2C%20the%20same%20command%20would%20succeed.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20same%20seems%20to%20be%20the%20case%20for%20the%20Azure%20az%20CLI.%20In%20fact%2C%20something%20is%20happening%20with%20the%20way%20the%20text%20is%20copied%20(and%20formatted%20along%20the%20way%20maybe%3F)%20that%20breaks%20it%20in%20the%20terminal.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20to%20do%20about%20it%3F%20Thank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello, friends!

 

Here is how I got aware of the issue:

I noticed copying & pasting code / bash commands out of Microsoft OneNote (for Mac) into Google Cloud Platform CloudShell would cause every command to fail. I would get unknown parameter exceptions and similar. When I type in the full command into CloudShell manually, the same command would succeed.

 

The same seems to be the case for the Azure az CLI. In fact, something is happening with the way the text is copied (and formatted along the way maybe?) that breaks it in the terminal.

 

What to do about it? Thank you!

 

0 Replies