If I perform a sequence of cmdscommands like:
$ ls
$ grep abc file.txt
and then use the up arrow key to get the previous cmdone, the terminal will show the last cmd (which is the grep here)
BUT,But if I do something like this:
$ ls
$ grep abc file.txt
where the grep is prepended with multiplepreceded by spaces, the last cmd would bepressing up gives ls, and not grep.
Can someone shed some light whyWhy is this?