-
Notifications
You must be signed in to change notification settings - Fork 35
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
Out-Default function breaks $? #31
Comments
Get-ChildItemColor overrides Out-Default in a way that breaks $?. See: joonro/Get-ChildItemColor#31 Signed-off-by: Andrew Gunnerson <andrewgunnerson@gmail.com>
I have the same issue unfortunately. @joonro is there as possible workaround? |
I think it is related to an issue in PSColor, which Get-ChildItemColor relies on. Both projects seem to be unmaintained so I don't think this issue is going to be resolved anytime soon. |
Hi, sorry for the late response. I'm glad to let you know that I was able to fix this issue (d651f92). Now this module no longer overloads |
I will close this as this should be resolved in the latest version. Please feel free to open it again if there is still an issue. |
I confirm it's fixed on my side too! Thank you so much |
Great! Sorry it took so long to fix, but better late than never I guess :) |
Sure! Thank you for maintaining this project, which is quite handy |
The definition of
Out-Default
seems to be breaking the usage of$?
.For example, if I run an invalid command in
pwsh -noprofile
, I get this:If I import
Get-ChildItemColor
(version2.1.1
), then$?
stops working properly:If I remove the
Out-Default
function, then things work again, but of course, no morels
colors:The text was updated successfully, but these errors were encountered: