User Tools

Site Tools


programming:bash:expansion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:bash:expansion [2018-01-29 04:04] – [Resources] -> [References] zlgprogramming:bash:expansion [2018-09-30 22:27] (current) – [Brace Expansion] add nowiki syntax to fix accidental linking zlg
Line 8: Line 8:
   * Braces must have a comma somewhere to count as an expansion. ''foo{bar,}'' -> ''"foobar foo"'' and ''foo{,bar}'' -> ''"foo foobar"''   * Braces must have a comma somewhere to count as an expansion. ''foo{bar,}'' -> ''"foobar foo"'' and ''foo{,bar}'' -> ''"foo foobar"''
   * Supports simple ranges. ''{a..m}'' -> ''a b c d e f g h i j k l m''   * Supports simple ranges. ''{a..m}'' -> ''a b c d e f g h i j k l m''
-  * Nests. ''{{a..z},{A..Z}}'' -> ''a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z''+  * Nests. ''%%{{a..z},{A..Z}}%%'' -> ''a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z''
  
 ==== Bash 4+ ==== ==== Bash 4+ ====
Line 38: Line 38:
 ===== References ===== ===== References =====
  
-[[http://wiki.bash-hackers.org/syntax/expansion/intro|Bash Hacker's Wiki]]+[[bhw>syntax/expansion/intro|Bash Hacker's Wiki – Expansion Intro]]
programming/bash/expansion.1517198674.txt.gz · Last modified: 2018-07-03 01:00 (external edit)