Skip to content
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

Request: Fish Trace depth #9069

Open
tennox opened this issue Jul 13, 2022 · 2 comments
Open

Request: Fish Trace depth #9069

tennox opened this issue Jul 13, 2022 · 2 comments

Comments

@tennox
Copy link

tennox commented Jul 13, 2022

fish, version 3.5.0

Would be amazing if e.g. set fish_trace 1 would only print first-level traces (one indentation level), as I often only want to see the commands a script executes, but not everything inside them.

As this would be backwards-incompatible I thought instead to add a fish_trace_depth variable.

@krobelus
Copy link
Member

why not use grep:

fish -c "fish_trace=1 ls" &| grep '^--->'

@tennox
Copy link
Author

tennox commented Aug 5, 2022

Well, it's a good workaround, thanks.
But this is rather cumbersome and has some gotchas when dealing with subshells like environment, quoting, et cetera. Definitely not a solution.

@ridiculousfish ridiculousfish added this to the fish-future milestone Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants