Commit Graph

63 Commits

Author SHA1 Message Date
Zack Radisic
dd6799556e fix thing 2024-02-29 16:49:34 -08:00
Zack Radisic
f50996e115 I think I understand WindowsStreamingWriter 2024-02-29 16:18:35 -08:00
Zack Radisic
3a63e77a00 zack commit 2024-02-29 12:53:49 -08:00
Zack Radisic
1fb23293ca windows shell subproc works 2024-02-29 00:37:15 -08:00
Zack Radisic
604272b8f3 shell: Use custom open()/openat() 2024-02-28 22:31:45 -08:00
Zack Radisic
33823052d8 shell: Fix IOWriter bug 2024-02-28 22:04:17 -08:00
Zack Radisic
435b68ecf5 basic echo hi works on windows 2024-02-28 17:07:37 -08:00
Zack Radisic
bf3dbda9a2 Fix shell windows build 2024-02-27 21:57:39 -08:00
Zack Radisic
11c726512e Fix forgetting to decrement reference count 2024-02-27 21:41:08 -08:00
Zack Radisic
baa6f5495a Merge branch 'jarred/process-change' of github.com:oven-sh/bun into jarred/process-change 2024-02-27 19:56:01 -08:00
Meghan Denny
bce7f8245f get windows compiling again 2024-02-27 19:22:22 -08:00
Zack Radisic
f653963ef7 shell: Fix a bunch of tests 2024-02-27 17:35:09 -08:00
Zack Radisic
ee6f2c8a75 HOLY FUCK big refactor 2024-02-27 14:44:13 -08:00
Zack Radisic
23e9eef8a9 Support redirects 2024-02-23 16:42:50 -08:00
Zack Radisic
008a3c626a Remove @panic("TODO") on shell event loop tasks and Redirect open flags got lost in merge 2024-02-23 14:13:39 -08:00
Zack Radisic
2a8bfbe4ea shell: Fix array buffer 2024-02-23 13:45:58 -08:00
Zack Radisic
c367ce1620 Fix some stuff shell 2024-02-22 20:57:13 -08:00
Zack Radisic
d0ee302e37 Actually buffer subproc output 2024-02-22 17:45:28 -08:00
Zack Radisic
a687eb11a0 Fix for #8982 got lost in the merge 2024-02-22 17:18:11 -08:00
Zack Radisic
d8646a0e64 Fix buffered writer + shell/subproc.zig and windows build 2024-02-22 16:58:16 -08:00
Zack Radisic
f56c625924 Fix buffered writer for shell 2024-02-22 14:12:49 -08:00
Zack Radisic
e2ef561338 Merge branch 'jarred/process-change' of github.com:oven-sh/bun into jarred/process-change 2024-02-22 13:16:17 -08:00
Zack Radisic
86946686f5 revert onDone thing 2024-02-22 13:14:16 -08:00
Jarred Sumner
dfab13e6de Fix compiler errors 2024-02-21 21:42:50 -08:00
Jarred Sumner
2d71bce242 Merge branch 'main' into jarred/process-change 2024-02-21 21:02:49 -08:00
Zack Radisic
2605722891 shell: Allow duplicating output fds (e.g. 2>&1) (#9004)
* Open with proper perms when redirecting file to stdin

* Add test for redirecting file to stdin

* Extract redirect flags -> bun.Mode logic to function

* Remove dead code

* Support duplicating output file descriptors

* Clean up

* fix merge fuck up

* Add comment documenting weird hack to get around ordering of posix spawn actions

* Update docs

* Delete dead code

* Update docs
2024-02-21 18:45:44 -08:00
Zack Radisic
048ae7c7b8 shell: Fix latin-1 template literal strings (#9040)
* Fix latin-1

* Move utf8 check above 8bit check
2024-02-21 18:32:42 -08:00
Zack Radisic
afbc997b51 Okay now the shell compiles, but segfaults 2024-02-21 16:44:39 -08:00
Zack Radisic
b166e8a4af Holy cleansing of @panic("TODO SHELL")
at least it compiles now
2024-02-21 16:20:40 -08:00
Zack Radisic
436621ecf5 Eliminate @panic("TODO SHELL") for BufferedWriter 2024-02-21 16:11:50 -08:00
Zack Radisic
2092e99d6e Slowly remove some @panic("TODO SHELL") 2024-02-21 15:24:43 -08:00
Zack Radisic
3ee74c47e2 Make shell compile again 2024-02-21 14:41:22 -08:00
cirospaciari
a3293756c5 make windows compile again 2024-02-21 17:18:44 -03:00
Zack Radisic
7cd9af1091 Some shell changes
at least it compiles
2024-02-20 20:28:00 -08:00
dave caruso
5c6b9ea9b6 change how bunx caches things (#8921)
* some things

* yeah

* ok

* fix compilation error

* fix on windows

* ok

* username
2024-02-20 18:58:12 -08:00
Zack Radisic
2656418e50 Don't immediately delimit command substitution result (#9005) 2024-02-19 21:26:50 -08:00
Jarred Sumner
27bdf3a11d Merge branch 'main' into jarred/process-change 2024-02-19 16:32:25 -08:00
Zack Radisic
7056384702 Fix file redirect stdin not working (#9000)
* Open with proper perms when redirecting file to stdin

* Add test for redirecting file to stdin

* Extract redirect flags -> bun.Mode logic to function

* Remove dead code

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-19 14:56:32 -08:00
Meghan Denny
5712ba8b3b debug: introduce bun.callmod_inline (#9001) 2024-02-19 14:43:42 -08:00
Jarred Sumner
c8a5fc3dcf Merge branch 'main' into jarred/process-change 2024-02-17 02:44:16 -08:00
Zack Radisic
2b56451a11 Shell changes/fixes (#8846)
* Fix #8403

* Throw on error by default

* Add the shell promise utilities to `ShellOutput` and `ShellError`

* Fix tests

* [autofix.ci] apply automated fixes

* Fix memleak

* [autofix.ci] apply automated fixes

* Woops

* `Bun.gc(true)` in fd leak test

* fd leak test should check if `fd <= baseline`

* wtf

* oob check

* [autofix.ci] apply automated fixes

* Fix double free

* Fix #8550

* increase mem threshold for linux

* Requested changes and make not throw on by default

* [autofix.ci] apply automated fixes

* more requested changes

* Do destructuring in function definition

* delete

* Change shell output test to enable throwing

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-16 05:01:55 -08:00
Zack Radisic
ebaeafbc89 feat: More robust and faster shell escaping (#8904)
* wip

* Proper escaping algorithm

* Don't use `$` for js obj/string referencs

* [autofix.ci] apply automated fixes

* Changes

* Changes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-02-16 04:09:34 -08:00
Jarred Sumner
2bc1c124e9 Merge branch 'main' into jarred/process-change 2024-02-13 04:35:07 -08:00
John-David Dalton
96e7227087 feat: Add win32 path.toNamespacedPath and align rest of node:path with Node (#8469) 2024-02-12 14:27:26 -08:00
Jarred Sumner
161a7a983b workaround build errors 2024-02-07 23:21:05 -08:00
Jarred Sumner
baef6ea6f4 wip 2024-02-07 13:48:09 -08:00
Jarred Sumner
e708629265 Update subproc.zig 2024-02-05 18:38:39 -08:00
Jarred Sumner
fe5053b1df wip 2024-02-05 17:53:19 -08:00
Jarred Sumner
95e6c429c8 wip 2024-02-05 16:13:50 -08:00
Jarred Sumner
daa1653bc0 Move stdio 2024-02-05 16:06:22 -08:00