"No such file or directory" message of source command

Solution Verified - Updated -

Issue

  • In csh, when a file that does not exist is specified by source command, path of the specified file is not displayed in "No such file or directory" message.
  [root@localhost test]# cat a.csh
  #!/bin/csh

  source ./b.csh

  [root@localhost test]# ls
  a.csh
  [root@localhost test]# ./a.csh
  .: No such file or directory.
  • Moreover, "No such file or directory" message is as follows for Japanese.
  [root@localhost test]# ./a.csh
  /usr/share/locale/ja_JP.UTF-8/LC_MESSAGES/libc.mo:<snip>
  • What is the root cause of this problem?
  • Is there Workaround of this problem?

Environment

  • Red Hat Enterprise Linux 6.3
  • tcsh-6.17-19.el6_2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.