Bug 109587 - at generates bad tcsh scripts
at generates bad tcsh scripts
Product: Fedora
Classification: Fedora
Component: at (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
Mike McLean
: 111386 117102 117276 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2003-11-09 16:20 EST by Michael Fischer
Modified: 2007-11-30 17:10 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-01-12 22:42:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Fischer 2003-11-09 16:20:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

Description of problem:
at generates a bad script when SHELL=/bin/tcsh.  It puts the correct
heading line #!/bin/tcsh into the script, but it puts /bin/sh-style
environment-setting commands into the script, e.g.
NNTPSERVER=news.yale.edu; export NNTPSERVER
This script of course fails when run.

If instead at is called with SHELL=/bin/sh, then it generates a
correct /bin/sh-style script which works correctly.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Set environment variable SHELL=/bin/tcsh
2.at now
3.at> whoami
4. ^D
5. Read email response.


Actual Results:  Email showing attemt to execute environment, e.g.,
NNTPSERVER=news.yale.edu: Command not found.
export: Permission denied.

Expected Results:  Email containing "mike' (the result of the "whoami"

Additional info:

To see the script generated, try at 'now+1 hour'; then look in
/var/spool/at and examine the generated script.
Comment 1 David L. Crow 2003-11-11 15:41:15 EST
Probably a dupe of 91233
Comment 2 Michael Fischer 2003-11-11 17:02:53 EST
I agree.  Thanks for pointing this out to me.  I'm marking this as a
duplicate of 91233.

*** This bug has been marked as a duplicate of 91233 ***
Comment 3 Jens Petersen 2004-01-12 22:37:06 EST
*** Bug 111386 has been marked as a duplicate of this bug. ***
Comment 4 Jens Petersen 2004-01-12 22:38:49 EST
I would like to address this issue separately from bug 91233.
Comment 5 Jens Petersen 2004-01-12 22:41:56 EST
Nevermind, fixed in FC Development in at-3.1.8-49.
Comment 6 Jens Petersen 2004-03-01 20:26:41 EST
*** Bug 117102 has been marked as a duplicate of this bug. ***
Comment 7 Jens Petersen 2004-03-02 21:24:33 EST
*** Bug 117276 has been marked as a duplicate of this bug. ***
Comment 8 John Flanagan 2004-12-21 16:19:56 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.