请问各位大神,为什么不提示“input something:”而是直接输出了file的第二行呢?作者: guofzhao 时间: 2015-08-25 19:36 $ man read
-p prompt
Display prompt on standard error, without a trailing newline, before attempting to read any input. The prompt is displayed only if input is coming from a terminal.
$ man exec
"If command is specified, it replaces the shell. No new process is created. "作者: zjxapple 时间: 2015-08-25 20:15 本帖最后由 zjxapple 于 2015-08-25 20:24 编辑