Why does bash sometimes give me numbers in my prompt, but not all the time?
Most of the time my shell prompt looks normal.
However, if I cancel something with control-C, or if there's a file that's not found, the shell sometimes puts numbers in there as if it's telling me how many errors I've made. Code:
user@verdant:~/Downloads > gem install taskjuggler-3.5.0.gem Why is bash doing this to me? Thanks. |
see the prompt settings: echo $PS1
|
I also face this problem when there is some problem with the network driver.So do check it.
Quote:
|
I believe that is the job control identification number.
When a command gets suspended (either directly or due to some command directing it), the shell assigns a number to the command stream. This allows you to resume that stream. You should be able to list these with the "jobs" command that is built into bash. |
Quote:
Code:
> echo $PS1 So I guess "1" and "130" are 'returncode' values. |
Quote:
Since I normally use at least two or three terminals, I usually have to use 'ps -ef' to list what's going on. |
All times are GMT -5. The time now is 03:30 AM. |