Open tdenniston opened 9 years ago
:+1:
For now you can do with the "basically eval" @()
syntax:
./bish /dev/fd/0 << 'EOF'
a=[1,2]
@(a=\(*.txt\))
b=a
println(b[2])
EOF
The first assignment on a is to fool the typecheck. The b=a
assignment is to invalidate the constant a[2] == 2
transfer.
As discussed here: http://ubuntuforums.org/showthread.php?t=2274570
File globbing is considered one of the main benefits of shell scripts versus other scripting languages. Bish should support globbing as a first-class feature.
Example of how this might look: