Files
bun.sh/test/js/bun/shell/fixtures/positionals2.bun.sh
Meghan Denny bb483e8479 shell: implement $0, $1, argv accessors (#9740)
* shell: organize imports

* shell: dont allocate when printing errors

* shell: implement $0, $1, argv accessors

* add more tests

* oops need this commit too

* make these logs listen to silencing logs

* expand switch else statements

* align behavior with bash

* this isnt referenced anywhere

* add missing test file

* add another test

* revert this change

* cache utf8 converted version of positionals

* rebase fixes

---------

Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com>
2024-04-02 23:07:27 -07:00

14 lines
102 B
Bash

#!/bin/sh
echo $0
echo $1
echo $2$2
echo $3
echo $4
echo $5
echo $6
echo $7
echo $8
echo $9
echo $10