When using the interactive Macports shell (running
port), is there a way to delete characters to the right of the cursor?
Normally, you can simply use key the combination
Delete to forward-delete. However, when this is used, the result is the production of a
~ (tilde) character.
My bash version is:
GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin11). My Macports version is:
Version: 2.5.4. My OS X version is:
UPDATE: As mentioned by daniel Azuelos,
d will delete forwards one character at a time. However, this is dangerous - if there is no text to be deleted, it will exit the interactive shell as well as the terminal (at least using bash).