Bug 14838 - $(<filename) returns empty string
$(<filename) returns empty string
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
6.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-07-29 11:45 EDT by Need Real Name
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-07-29 11:45:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-07-29 11:45:46 EDT
Getting a string value out of a text file with the "<" character doesn 't 
work, it just returns an empty value. F.i. "echo $(</var/run/atd.pid)" 
gives nada (not even an error), whereas in other distributions, like 
Mandrake, it gives you the contents of the file. As a workaround you can 
use "cat" or something, but it 's bit stupid and slower to call a binary 
to do this. I 've tested this on RH 6.0 and RH 6.2. I 've tried to track 
it down with "strace", but it doesn 't return any value either.
Comment 1 Bernhard Rosenkraenzer 2000-08-03 05:37:04 EDT
This is a bash 2.x specific feature. It's fixed in rawhide by the upgrade to
bash 2.04.

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