LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   simple and small question (https://www.linuxquestions.org/questions/linux-software-2/simple-and-small-question-189676/)

drigz 06-04-2004 11:11 AM

simple and small question
 
if i type 'red' at a bash prompt, then whenever i type anything more in, it outputs ? :
Code:

drigz@ayro:~$ red
help
?
exit
?
version
?

?
that was control+c
?
quit
?

and i have to close the console to quit. this is the help:
Code:

drigz@ayro:~$ red --help
Usage: red [OPTION]... [FILE]

  -G, --traditional          use a few backward compatible features
  -p, --prompt=STRING        use STRING as an interactive prompt
  -s, -, --quiet, --silent  suppress diagnostics
      --help                display this help
      --version              output version information

Start edit by reading in FILE if given.  Read output of shell command
if FILE begins with a `!'.

what is this program? theres no man page, nothing i can find (red is hardly definitive for a google search). does anyone know?

btw this is purely curiosity.

camelrider 06-04-2004 12:37 PM

From man red:

NAME
ed, red - text editor

SYNOPSIS
ed [-] [-Gs] [-p string] [file]

red [-] [-Gs] [-p string] [file]

DESCRIPTION
ed is a line-oriented text editor. It is used to create, display, mod-
ify and otherwise manipulate text files. red is a restricted ed: it
can only edit files in the current directory and cannot execute shell
commands.
:)

drigz 06-04-2004 05:59 PM

ah. i dont have man red... its not that im that lazy :) so how do you use it then - i cant figure it out. i suppose it doesnt really matter.


All times are GMT -5. The time now is 10:23 PM.