Bug 220264
Summary: | #!/usr/bin/env python -tt doesn't work | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Scott Tsai <scottt.tw> |
Component: | coreutils | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | meyering |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-12-20 07:58:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Scott Tsai
2006-12-19 23:21:49 UTC
When invoking any program via #!, only two things can be on that first line: the first (everything up to first white space byte) is taken as a program name. Everything after that first bit of white space is grouped together as a single "argument" to that program. In your case, "python -tt" is interpreted as a program name, and of course is not found. Instead, you can do something like this: cat <<EOF > t #!/usr/bin/env python import warnings warnings.filterwarnings("error", category=SyntaxWarning) print 1 EOF Thanks for the explaination. |