@@ -601,10 +601,19 @@ do not contain space or `"` characters) or quoted (`""`). Quoted arguments can
601
601
include 'escaped' characters, escaped with an initial ` \ ` character.
602
602
603
603
Account may need to be taken of the shell's approach to the processing of
604
- command line arguments. For example, to pass ` 'a single quoted string' ` :
604
+ command line arguments:
605
605
606
606
=== "Unix-like (Bash or Zsh)"
607
607
608
+ For example, to pass `word` and `words with spaces` in Bash, or Zsh:
609
+
610
+ `stack test --benchmark-arguments 'word "words with spaces"'`
611
+
612
+ The content of single quotes is taken literally, but cannot contain a single
613
+ quote.
614
+
615
+ For example, to pass `'a single quoted string'`:
616
+
608
617
In Bash, or Zsh (if `RC_QUOTES` option not set):
609
618
610
619
`stack bench --benchmark-arguments \"\''a single quoted string'\'\"`
@@ -622,7 +631,13 @@ command line arguments. For example, to pass `'a single quoted string'`:
622
631
623
632
=== "Windows"
624
633
625
- In PowerShell:
634
+ For example, to pass `word` and `words with spaces` in PowerShell:
635
+
636
+ `stack test --benchmark-arguments 'word "words with spaces"'`
637
+
638
+ The content of single quotes is taken literally.
639
+
640
+ For example, to pass `'a single quoted string'` in PowerShell:
626
641
627
642
`stack bench --benchmark-arguments '"''a single quoted string''"'`
628
643
@@ -644,10 +659,19 @@ do not contain space or `"` characters) or quoted (`""`). Quoted arguments can
644
659
include 'escaped' characters, escaped with an initial ` \ ` character.
645
660
646
661
Account may need to be taken of the shell's approach to the processing of
647
- command line arguments. For example, to pass ` 'a single quoted string' ` :
662
+ command line arguments:
648
663
649
664
=== "Unix-like (Bash or Zsh)"
650
665
666
+ For example, to pass `word` and `words with spaces` in Bash, or Zsh:
667
+
668
+ `stack build --exec '<command> word "words with spaces"'`
669
+
670
+ The content of single quotes is taken literally, but cannot contain a single
671
+ quote.
672
+
673
+ For example, to pass `'a single quoted string'`:
674
+
651
675
In Bash, or Zsh (if `RC_QUOTES` option not set):
652
676
653
677
`stack build --exec '<command> '\"\''a single quoted string'\'\"`
@@ -665,7 +689,13 @@ command line arguments. For example, to pass `'a single quoted string'`:
665
689
666
690
=== "Windows"
667
691
668
- In PowerShell:
692
+ For example, to pass `word` and `words with spaces` in PowerShell:
693
+
694
+ `stack build --exec '<command> word "words with spaces"'`
695
+
696
+ The content of single quotes is taken literally.
697
+
698
+ For example, to pass `'a single quoted string'` in PowerShell:
669
699
670
700
`stack build --exec '<command> "''a single quoted string''"'`
671
701
@@ -702,10 +732,19 @@ do not contain space or `"` characters) or quoted (`""`). Quoted arguments can
702
732
include 'escaped' characters, escaped with an initial ` \ ` character.
703
733
704
734
Account may need to be taken of the shell's approach to the processing of
705
- command line arguments. For example, to pass ` 'a single quoted string' ` :
735
+ command line arguments:
706
736
707
737
=== "Unix-like (Bash or Zsh)"
708
738
739
+ For example, to pass `word` and `words with spaces` in Bash, or Zsh:
740
+
741
+ `stack test --test-arguments 'word "words with spaces"'`
742
+
743
+ The content of single quotes is taken literally, but cannot contain a single
744
+ quote.
745
+
746
+ For example, to pass `'a single quoted string'`:
747
+
709
748
In Bash, or Zsh (if `RC_QUOTES` option not set):
710
749
711
750
`stack test --test-arguments \"\''a single quoted string'\'\"`
@@ -723,7 +762,13 @@ command line arguments. For example, to pass `'a single quoted string'`:
723
762
724
763
=== "Windows"
725
764
726
- In PowerShell:
765
+ For example, to pass `word` and `words with spaces` in PowerShell:
766
+
767
+ `stack test --test-arguments 'word "words with spaces"'`
768
+
769
+ The content of single quotes is taken literally.
770
+
771
+ For example, to pass `'a single quoted string'` in PowerShell:
727
772
728
773
`stack test --test-arguments '"''a single quoted string''"'`
729
774
0 commit comments