mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
select: move to common, fix placeholders (#12446)
This commit is contained in:
parent
cca1c921b4
commit
f114d5cd2e
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Create a menu out of individual words:
|
||||
|
||||
`select {{word}} in {{apple}} {{orange}} {{pear}} {{banana}}; do echo ${{word}}; done`
|
||||
`select {{word}} in {{apple orange pear banana}}; do echo ${{word}}; done`
|
||||
|
||||
- Create a menu from the output of another command:
|
||||
|
||||
|
@ -17,4 +17,4 @@
|
|||
|
||||
- Create a menu from a Bash array:
|
||||
|
||||
`{{fruits}}=({{apple}} {{orange}} {{pear}} {{banana}}); select {{word}} in ${{{fruits}}[@]}; do echo ${{word}}; done`
|
||||
`{{fruits}}=({{apple orange pear banana}}); select {{word}} in ${{{fruits[@]}}}; do echo ${{word}}; done`
|
Loading…
Add table
Reference in a new issue