I am trying to declare a variable x with all characters from a..x . On the command line (bash), replacing a..x works without any ticks.
$ echo {a..x} abcdefghijklmnopqrstu vwx
But assigning the variable to the variable x={a..x} leads to {a..x} as a string. Only x=$(echo {a..x}) works.
Question: Is this the proper way of assignment, or do I need to do other things?
The main goal is to assign a sequence to an array, for example,
disks=( $(echo {a..x}) )
source share