RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1273474 - glob doesn't work in tcsh
Summary: glob doesn't work in tcsh
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tcsh
Version: 7.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: David Kaspar // Dee'Kej
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On: 1076343
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-20 13:54 UTC by David Kaspar // Dee'Kej
Modified: 2018-12-04 18:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1076343
Environment:
Last Closed: 2015-12-07 16:36:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Kaspar // Dee'Kej 2015-10-20 13:54:55 UTC
+++ This bug was initially created as a clone of Bug #1076343 +++

Description of problem:

  glob doesn't work in tcsh.

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

  tcsh-6.18.01-8.el7.x86_64

How reproducible:

  Always.

Steps to Reproduce:

1. Make three files.
  % touch {a,b,c}.txt

2. Use glob
  % echo `glob *.txt`

Actual results:

  a.txt

Expected results:

  a.txt b.txt c.txt

Additional info:

  It works on RHEL4.

--- Additional comment from penguin admin on 2014-03-15 00:00:31 EDT ---

I noticed this works in tcsh
echo `glob \*txt`
a.txt b.txt c.txt

$ rpm -q tcsh
tcsh-6.17-24.el6.x86_64

also:
$ set globit='glob *.txt'
$ $globit
a.txtb.txtc.txt

--- Additional comment from Jaromír Končický on 2014-03-17 06:32:22 EDT ---

This worked for me too:

$ set textdocs=*.txt
$ echo $textdocs
a.txt b.txt c.txt

Do you want/need to use `glob *.txt` for any purpose (in some script)?

--- Additional comment from Pavel Raiskup on 2014-03-17 11:50:00 EDT ---

(In reply to Yoshifumi Kinoshita from comment #0)
> Description of problem:
> 
>   glob doesn't work in tcsh.

The glob does work, you just get the output as one string of many file-names
matching divided by the 'zero-byte'.  This is not the same as the echo works
(echo puts space between matching file-names).

From `man tcsh`:

  glob wordlist
    Like  echo,  but the `-n' parameter is not recognized and words
    are delimited by null characters in  the  output.   Useful  for
    programs  which wish to use the shell to filename expand a list
    of words.

So the problem here is probably that backticks are not able to parse the
'null' terminating character.  Could our customer use rather 'echo' instead?

Not sure whether this is a bug or not, this is currently also upstream issue
and worth asking there.

Pavel

--- Additional comment from Fridolín Pokorný on 2015-02-04 07:35:43 EST ---

Upstream accepted proposed patch:

http://mx.gw.com/pipermail/tcsh-bugs/2015-February/000920.html

Comment 2 David Kaspar // Dee'Kej 2015-12-07 16:36:03 UTC
Please, see the justification for closing in the initial bug.


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