Brace expansion: Difference between revisions

Content added Content deleted
m (added a related task.)
Line 2: Line 2:


Brace expansion is a type of parameter expansion [[wp:Bash_%28Unix_shell%29#Brace_expansion|made popular by Unix shells]], where it allows users to specify multiple similar string parameters without having to type them all out. E.g. the parameter <code>enable_{audio,video}</code> would be interpreted as if both <code>enable_audio</code> and <code>enable_video</code> had been specified.
Brace expansion is a type of parameter expansion [[wp:Bash_%28Unix_shell%29#Brace_expansion|made popular by Unix shells]], where it allows users to specify multiple similar string parameters without having to type them all out. E.g. the parameter <code>enable_{audio,video}</code> would be interpreted as if both <code>enable_audio</code> and <code>enable_video</code> had been specified.



{{task heading}}
{{task heading}}
Line 226: Line 227:
{{task heading|Test Cases}}
{{task heading|Test Cases}}


{| class="wikitable" style="white-space: nowrap;"
:::{| class="wikitable" style="white-space: nowrap;"
|-
|-
! Input<br><small style="font-weight:normal">''(single string)''</small>
! Input<br><small style="font-weight:normal">''(single string)''</small>
Line 267: Line 268:
<hr style="clear:both; margin-bottom:1em;"/>
<hr style="clear:both; margin-bottom:1em;"/>


{{Template:Strings}}
;Related task:



:* &nbsp; [[Brace_expansion_using_ranges]]
:* &nbsp; [[Brace_expansion_using_ranges]]