-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement commands in Bun shell #9716
Comments
I want to create a bun shell to use instead of bash, zsh, sh, etc. So, I have some questions:
For example: $.register('add', (n1,n2) => {
return n1+n2;
})
$`add 2 5`
For example: If these examples are possible, It will do a powerful to make a great shell alternative using Javascript. |
It will be cool if |
#10174 update |
Why not implement the |
Is it possible to add the |
unfortunately, curl not working with bun shell
throws an error
|
|
It works well with running any of my scripts like await $ Therefore I'm sure there must be a simple way to make it work with all installed programs like "curl" in example above |
This is a tracking issue for commands that we should implement as builtins in the Bun shell. Some of these are taken from GNU coreutils.
cat
touch
mkdir
cd
echo
pwd
which
rm
mv
ls
exit
true
false
cp
timeout
yes
basename
realpath
dirname
mktemp
truncate
head
tail
cut
uniq
seq
sleep
tee
date
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
md5sum
sort
printenv
env
whoami
who
uptime
This is not an exhaustive list, we can add commands as we think it's a good idea to implement.
While these will already be generally available on most posix systems, having them in the Shell will also allow them to be readily available on Windows when using Bun Shell.
The text was updated successfully, but these errors were encountered: