Bug 487056 - weird << marker breaks at scripts
Summary: weird << marker breaks at scripts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: at
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-23 21:08 UTC by Jonathan Kamens
Modified: 2009-02-26 13:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-26 13:52:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Kamens 2009-02-23 21:08:11 UTC
When I queue an at job consisting of nothing but a one-line echo command "echo foo", here's what the resulting file in /var/spool/at looks like:

${SHELL:-/bin/sh} << `(dd if=/dev/urandom count=200 bs=1 2>/dev/null|LC_ALL=C tr -d -c '[:alnum:]')`

echo foo

I don't know where that garbage after the << is coming from, but it's clearly completely borked, and when the at job runs, I see this:

sh: line 63: warning: here-document at line 60 delimited by end-of-file (wanted ``(dd if=/dev/urandom count=200 bs=1 2>/dev/null|LC_ALL=C tr -d -c [:alnum:])`')

I'm current from rawhide, including at-3.1.10-27.fc11.i386.

Comment 1 Marcela Mašláňová 2009-02-24 11:40:25 UTC
This line is supposed to run _at_ non-bash scripts. I blame for this changes in bash-4.0.

Comment 2 Marcela Mašláňová 2009-02-24 14:41:36 UTC
Ok, it's bash #485664.

I change the delimiter to something else.

Comment 3 Marcela Mašláňová 2009-02-26 13:52:26 UTC
Fixed in at-3.1.10-30.fc11


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