help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inputrc issue


From: John W. Eaton
Subject: Re: inputrc issue
Date: Sun, 16 Oct 2005 19:57:03 -0400

On 16-Oct-2005, Mike Miller wrote:

| open("/home/mbmiller/local/lib/octave-2.1.71/libreadline.so.4", O_RDONLY) = 
-1 ENOENT (No such file or directory)

I think this is normal.  The dynamic linker is search
LD_LIBRARY_PATH.

| open("/usr/lib/libreadline.so.4", O_RDONLY) = 3

Note that it does find libreadline here (the return value from the
open system call is 3, a valid file descriptor.  So you don't need
your symbolic link.

| stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=709, ...}) = 0
| open("/etc/inputrc", O_RDONLY)          = 3
| stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=709, ...}) = 0
| open("/etc/inputrc", O_RDONLY)          = 3

| open("/home/mbmiller/local/lib/octave-2.1.71/libreadline.so.4", O_RDONLY) = 3
| stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=709, ...}) = 0
| open("/etc/inputrc", O_RDONLY)          = 3
| stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=709, ...}) = 0
| open("/etc/inputrc", O_RDONLY)          = 3
| 
| So doesn't this mean that Octave is only reading /etc/inputrc and not 
| reading ~/.inputrc?

Are there no other lines in the strace output for the .inputrc file in
your home directory?  Here is what I see on my system:

  stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=1633, ...}) = 0
  open("/etc/inputrc", O_RDONLY)          = 3
  read(3, "# /etc/inputrc - global inputrc "..., 1633) = 1633
  close(3)                                = 0
  stat64("/home/jwe/.inputrc", {st_mode=S_IFREG|0644, st_size=1908, ...}) = 0
  open("/home/jwe/.inputrc", O_RDONLY)    = 3
  read(3, "# Hey emacs, this is -*- text -*"..., 1908) = 1908
  close(3)                                = 0
  stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=1633, ...}) = 0
  open("/etc/inputrc", O_RDONLY)          = 3
  read(3, "# /etc/inputrc - global inputrc "..., 1633) = 1633
  close(3)                                = 0
  stat64("/home/jwe/.inputrc", {st_mode=S_IFREG|0644, st_size=1908, ...}) = 0
  open("/home/jwe/.inputrc", O_RDONLY)    = 3
  read(3, "# Hey emacs, this is -*- text -*"..., 1908) = 1908
  close(3)                                = 0


Is it possible you your HOME environment variable is set inccorrectly?

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]