Fish Shell
Array Slicing:
$ set x a b c d # assign
$ echo $x[2..-1]
b c d
$ echo $x[1..(count $x)]
a b c d
- Programming with fish shell
Fish 的
math是bc的 wrapperset x (math 1 + 1)
Array Slicing:
$ set x a b c d # assign
$ echo $x[2..-1]
b c d
$ echo $x[1..(count $x)]
a b c d
Fish 的 math 是 bc 的 wrapper
set x (math 1 + 1)