-
Notifications
You must be signed in to change notification settings - Fork 478
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
unable to identify shebang when it has initial spaces #1690
Closed
Labels
Comments
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 10, 2023
Python tracing won't work when the shebang line has a space like below: Fixed: namhyung#1690 Signed-off-by: yihong0618 <[email protected]>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 11, 2023
Python tracing won't work when the shebang line has a space like below: Fixed: namhyung#1690 Signed-off-by: yihong0618 <[email protected]>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 11, 2023
Python tracing won't work when the shebang line has a space like below: Fixed: namhyung#1690 Signed-off-by: Yi Hong <[email protected]>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 11, 2023
Python tracing won't work when the shebang line has a space like below: Fixed: namhyung#1690 Signed-off-by: yihong <[email protected]>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 11, 2023
Python tracing won't work when the shebang line has a space like below: Fixed: namhyung#1690 Signed-off-by: Yi Hong <[email protected]>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 11, 2023
Python tracing won't work when the shebang line has a space like below: #! /usr/bin/env python3 This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Yi Hong <[email protected]>
namhyung
pushed a commit
that referenced
this issue
May 12, 2023
Python tracing won't work when the shebang line has a space like below: #! /usr/bin/env python3 This patch makes uftrace to understand the above shebang as well. Fixed: #1690 Signed-off-by: Yi Hong <[email protected]>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
May 12, 2023
Python tracing won't work when the shebang line has a space like below: #! /usr/bin/env python3 This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Yi Hong <[email protected]>
This was referenced Jul 23, 2023
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 30, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 30, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 30, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 30, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 30, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 30, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Jul 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
" #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
" #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]> record: skip whitespaces after shebang for scripts Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
GabrielKimm
added a commit
to GabrielKimm/uftrace
that referenced
this issue
Aug 31, 2023
Python tracing won't work when the shebang line has a space like below: " #! /usr/bin/env python3 " This patch makes uftrace to understand the above shebang as well. Fixed: namhyung#1690 Signed-off-by: Gabriel Kim <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uftrace detects shebang in the first line as follows.
But if it has some whitespaces at the beginning, it can't detect the shebang as follows.
For example, when there is a script as follows.
The tracing result looks as follows.
The shebang with whitespaces is legal so we should fix our shebang detection logic.
The text was updated successfully, but these errors were encountered: