Bug 433914
| Summary: | ", and must be a single argument" should be deleted. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Cai Xianchao <caixianchao> | ||||
| Component: | tcsh | Assignee: | Vojtech Vitek <vvitek> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Bill Huang <bhuang> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.1 | CC: | hripps, ovasik | ||||
| Target Milestone: | rc | Keywords: | Reopened | ||||
| Target Release: | --- | ||||||
| Hardware: | i686 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-01-17 17:03:20 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: | |||||||
| Attachments: |
|
||||||
|
Description
Cai Xianchao
2008-02-22 03:26:56 UTC
Created attachment 295585 [details]
This is a patch fixing the bug.
Hi, thanks for report. I think the man page is correct - e.g. assume those two commands: tcsh -c 'cat file.txt' tcsh -c cat file.txt First command will concatenate file.txt, second will run cat and store 'file.txt' to argv[1]. In my opinion this is the reason, why command "must be a single argument" statement is present in the man page. In your example, return value is related only to the result of command in -c argument (pwd), and pwd command is successful - so it returns zero. 'ls' is stored in argv[1] and is not used at all. There are two reasons that ", and must be a single argument" should be deleted in my opioion. First, I think there will be a error message output if manpage says "something must be". Second, the manpage also says "Any remaining arguments are placed in the argv shell variable", so commands after argument '-c' can not be a single argument. As a result ", and must be a single argument" is redundant. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release. Hi, the man page is correct in my opinion as well. Consider following two examples: 1) $ tcsh -c 'echo 1; echo 2;' echo 3 1 2 ..as you can see, "echo 3" was not executed as part of the command, it was just stored as _shell_ argv variable (see below). 2) $ tcsh -c 'echo $1; echo $2' echo 3 echo 3 ..now we have printed first and second _shell_ argv variables (as seen in interactive shell). Closing as NOTABUG. |