7.3 C Shell Prompt Causes Problems in vi, rsh, etc.[Stray prompts can cause trouble for many commands that start a noninteractive shell. This problem may have been fixed in your C shell. The point Chris makes about speeding up your .cshrc still applies, though. -JP]
If you set prompt
in your
.cshrc
file
without carefully checking first whether or not
prompt
was already set (2.9
)
,
many versions of the C shell will cheerfully
print prompts into the pipe vi
uses to expand glob characters
[
filename wildcards ( When you type (1) abc.file (2) back from the C shell, instead of just The solution is to kludge your .cshrc (2.9 ) like this:
This works because a noninteractive shell has no initial prompt,
while an interactive shell has it set to If you have a large .cshrc
, this can speed things up quite a bit
when programs run other programs with
- in net.unix-wizards on Usenet , 22 April 1984 |
|