Equivalent to array[@]
bash array substring expansion
#9779
-
As the title says is there something equivalent to |
Beta Was this translation helpful? Give feedback.
Answered by
faho
May 7, 2023
Replies: 2 comments 2 replies
-
Read https://fishshell.com/docs/current/fish_for_bash_users.html#variables and https://fishshell.com/docs/current/language.html#lists for more. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dpetka2001
-
Isn't that just
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$list
by default expands to all elements of the list. If you want specific elements of the list, you can use$list[1]
for the first, or$list[1..3]
for the first, second and third, or$list[-1]
for the last.Read https://fishshell.com/docs/current/fish_for_bash_users.html#variables and https://fishshell.com/docs/current/language.html#lists for more.