Opened 14 years ago

Closed 6 years ago

#27500 closed defect (wontfix)

rlwrap @0.37 does not support vi delete operator properly.

Reported by: veritas.divina@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: rlwrap

Description

I have the latest version of ports and rlwrap installed. I also use vi editing mode, and if I do something like this:

$ rlwrap cat
This is a sentence

and then I hit

 <ESC> ^

to move the cursor to the beginning of the line. The type

dta

(i.e. execute delete operator over motion command ta (till a). This is supposed to delete "This is " part of the above line, but it doesn't work. I just get a beep.

Note that simpler delete commands like delete word (dw) etc work.

Also,

$ otool -L rlwrap 
rlwrap:
	/usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libreadline.6.1.dylib (compatibility version 6.0.0, current version 6.1.0)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
$ 

I expected this to use libncurses in /opt/local/lib, but apparently it links against the one in /usr/lib?

Attachments (1)

configure.ac.diff (633 bytes) - added by daitakahashi 14 years ago.
this patch will solve the link target issue

Download all attachments as: .zip

Change History (9)

comment:1 Changed 14 years ago by veritas.divina@…

Cc: veritas.divina@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: veritas.divina@… removed
Owner: changed from macports-tickets@… to lomion@…

comment:3 Changed 14 years ago by daitakahashi

The second issue comes from the order of library search at configure, and the existence of /usr/lib/libcurses.dylib (symlink to /usr/lib/libncurses.5.4.dylib). Therefore, it is solved by the correction of configure.

However, also a binary that is linked against a macport's libncurses seems to produce the delete operator problem. So, these two issues, delete operator and link target, may need to consider separately.

Changed 14 years ago by daitakahashi

Attachment: configure.ac.diff added

this patch will solve the link target issue

comment:4 Changed 13 years ago by jmroot (Joshua Root)

The current version of ncurses installs a libcurses link, so rlwrap's linking should be fine after r86161.

Unless you have reason to believe that the port is doing something wrong, the other issue is probably better handled upstream, especially since the port maintainer doesn't seem to be responsive.

comment:5 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from lomion@… to macports-tickets@…

comment:6 Changed 9 years ago by jmroot (Joshua Root)

Summary: rlwrap does not support vi delete operator properly.rlwrap @0.37 does not support vi delete operator properly.

Is this still a problem with the current version?

comment:7 Changed 9 years ago by veritas.divina@…

This is still issue in rlwrap 0.41 (I have not tried 0.42), but it is an issue in the github https://github.com/hanslub42/rlwrap version as well (it is not mac ports specific).

comment:8 in reply to:  7 Changed 6 years ago by l2dy (Zero King)

Resolution: wontfix
Status: newclosed

Replying to veritas.divina@…:

This is still issue in rlwrap 0.41 (I have not tried 0.42), but it is an issue in the github https://github.com/hanslub42/rlwrap version as well (it is not mac ports specific).

Please report the issue to that GitHub repository if it's not fixed or reported yet. It's not a MacPorts specific issue and there's nothing we can do here, so I'm closing this ticket.

Note: See TracTickets for help on using tickets.