Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tech198

Cancelled
Original poster
Mar 21, 2011
15,915
2,151
Seems Apple broke history -c press Enter in Terminal in Sierra..

It only clears for current session only.. not across sessions as prior OS's (e.g Try closing Terminal afterwards, the re-open, you should find your history is still there.

Can anyone else verify if this is a problem as well?
 

casperes1996

macrumors 604
Jan 26, 2014
7,593
5,764
Horsens, Denmark
Seems Apple broke history -c press Enter in Terminal in Sierra..

It only clears for current session only.. not across sessions as prior OS's (e.g Try closing Terminal afterwards, the re-open, you should find your history is still there.

Can anyone else verify if this is a problem as well?

You're right indeed. it does however remove history of itself across all sessions. Sure this isn't a deliberate change though? Have you read the man pages all the way through?
And is it really important? I mean, Unix compatibility is important, but clearing the history isn't exactly the most valuable command I can think of.
 

MacUser2525

Suspended
Mar 17, 2007
2,097
377
Canada
You're right indeed. it does however remove history of itself across all sessions. Sure this isn't a deliberate change though? Have you read the man pages all the way through?
And is it really important? I mean, Unix compatibility is important, but clearing the history isn't exactly the most valuable command I can think of.

And if that worried then rm ~/.bash_history in a shell will get rid of it anyways.
 

Tech198

Cancelled
Original poster
Mar 21, 2011
15,915
2,151
um.. after showing all hidden files .bash_history is there, and although rm command deletes history, the last commend is still showing... Maybe this is just how its done now..
 

MacUser2525

Suspended
Mar 17, 2007
2,097
377
Canada
um.. after showing all hidden files .bash_history is there, and although rm command deletes history, the last commend is still showing... Maybe this is just how its done now..

Of course the last command is shown it was not in the file when it was deleted only after it was run did it get appended to newly created file...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.