Repository navigation
Conversation
this commit uses
```
if some_guard_condition {
// do something
return ...;
}
// do some other thing
```
instead of
```
if some_guard_condition {
// do something
...
} else {
// do some other thing
}
```
this solves a FIXME :partying:
How would this be unrelated? This PR is introducing a feature that may fail in windows. We don't know because we are ignoring errors and might be silently failing, right? |
|
I have trust in you guys to come to a solution. |
maybe the error handling method is not the correct one for windows but i've just borrowed the same not that it shouldn't be fixed (even as i said in the thread above, it looks fine to me because we do not care if there is an I/O error here imo) but just that it's not a new potential bug introduced in this PR 😌 |
|
If this PR is supposed to fix the problem when you do |
ooh no no, this PR solely tries to solve #7991, i.e. the crash i noticed when using |
|
can we land this PR? 😇 |
|
is there a way to add a cross-platform test to ensure this doesn't panic? Like add a few commands to the history and then run clear? |
|
i do not have much time to work on this now, so i'll make this a draft 😌 |
|
might be superseded by #11049 |
|
i don't have time to work on this right now... |
should close #7991
Description
User-Facing Changes
history --clearshould not crash the shell now with the SQLITE history.Tests + Formatting
toolkit fmttoolkit clippytoolkit testtoolkit test stdlibAfter Submitting