@@ -600,10 +600,19 @@ do not contain space or `"` characters) or quoted (`""`). Quoted arguments can
600600include 'escaped' characters, escaped with an initial ` \ ` character.
601601
602602Account may need to be taken of the shell's approach to the processing of
603- command line arguments. For example, to pass ` 'a single quoted string' ` :
603+ command line arguments:
604604
605605=== "Unix-like (Bash or Zsh)"
606606
607+ For example, to pass `word` and `words with spaces` in Bash, or Zsh:
608+
609+ `stack test --benchmark-arguments 'word "words with spaces"'`
610+
611+ The content of single quotes is taken literally, but cannot contain a single
612+ quote.
613+
614+ For example, to pass `'a single quoted string'`:
615+
607616 In Bash, or Zsh (if `RC_QUOTES` option not set):
608617
609618 `stack bench --benchmark-arguments \"\''a single quoted string'\'\"`
@@ -621,7 +630,13 @@ command line arguments. For example, to pass `'a single quoted string'`:
621630
622631=== "Windows"
623632
624- In PowerShell:
633+ For example, to pass `word` and `words with spaces` in PowerShell:
634+
635+ `stack test --benchmark-arguments 'word "words with spaces"'`
636+
637+ The content of single quotes is taken literally.
638+
639+ For example, to pass `'a single quoted string'` in PowerShell:
625640
626641 `stack bench --benchmark-arguments '"''a single quoted string''"'`
627642
@@ -643,10 +658,19 @@ do not contain space or `"` characters) or quoted (`""`). Quoted arguments can
643658include 'escaped' characters, escaped with an initial ` \ ` character.
644659
645660Account may need to be taken of the shell's approach to the processing of
646- command line arguments. For example, to pass ` 'a single quoted string' ` :
661+ command line arguments:
647662
648663=== "Unix-like (Bash or Zsh)"
649664
665+ For example, to pass `word` and `words with spaces` in Bash, or Zsh:
666+
667+ `stack build --exec '<command> word "words with spaces"'`
668+
669+ The content of single quotes is taken literally, but cannot contain a single
670+ quote.
671+
672+ For example, to pass `'a single quoted string'`:
673+
650674 In Bash, or Zsh (if `RC_QUOTES` option not set):
651675
652676 `stack build --exec '<command> '\"\''a single quoted string'\'\"`
@@ -664,7 +688,13 @@ command line arguments. For example, to pass `'a single quoted string'`:
664688
665689=== "Windows"
666690
667- In PowerShell:
691+ For example, to pass `word` and `words with spaces` in PowerShell:
692+
693+ `stack build --exec '<command> word "words with spaces"'`
694+
695+ The content of single quotes is taken literally.
696+
697+ For example, to pass `'a single quoted string'` in PowerShell:
668698
669699 `stack build --exec '<command> "''a single quoted string''"'`
670700
@@ -701,10 +731,19 @@ do not contain space or `"` characters) or quoted (`""`). Quoted arguments can
701731include 'escaped' characters, escaped with an initial ` \ ` character.
702732
703733Account may need to be taken of the shell's approach to the processing of
704- command line arguments. For example, to pass ` 'a single quoted string' ` :
734+ command line arguments:
705735
706736=== "Unix-like (Bash or Zsh)"
707737
738+ For example, to pass `word` and `words with spaces` in Bash, or Zsh:
739+
740+ `stack test --test-arguments 'word "words with spaces"'`
741+
742+ The content of single quotes is taken literally, but cannot contain a single
743+ quote.
744+
745+ For example, to pass `'a single quoted string'`:
746+
708747 In Bash, or Zsh (if `RC_QUOTES` option not set):
709748
710749 `stack test --test-arguments \"\''a single quoted string'\'\"`
@@ -722,7 +761,13 @@ command line arguments. For example, to pass `'a single quoted string'`:
722761
723762=== "Windows"
724763
725- In PowerShell:
764+ For example, to pass `word` and `words with spaces` in PowerShell:
765+
766+ `stack test --test-arguments 'word "words with spaces"'`
767+
768+ The content of single quotes is taken literally.
769+
770+ For example, to pass `'a single quoted string'` in PowerShell:
726771
727772 `stack test --test-arguments '"''a single quoted string''"'`
728773
0 commit comments