我需要写一个简单的shell, 然后新的输入都需要出现一个$ 在前面,来接受新的输入.求问应该怎么写这个function.
• Present the user with a prompt $ and accept a string of input.• Any line that begins with a # character should be ignored.
默认回车不是返回$?