UNIX commands broke

Discussion in 'macOS Sierra (10.12)' started by Tech198, Jan 16, 2017.

  1. Tech198 macrumors G5

    Joined:
    Mar 21, 2011
    Location:
    Australia, Perth
    #1
    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?
     
  2. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #2
    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.
     
  3. MacUser2525 macrumors 68000

    MacUser2525

    Joined:
    Mar 17, 2007
    Location:
    Canada
    #3
    And if that worried then rm ~/.bash_history in a shell will get rid of it anyways.
     
  4. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #4
    This doesn't happen on my system but I am running macOS Sierra Beta 4.
     
  5. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #5
    Hm. Interesting, because I'm on beta 3 (haven't bothered updating yet), and it does happen to me. Wonder if it's a change from beta to beta, or a difference with our user accounts.
     
  6. Tech198 thread starter macrumors G5

    Joined:
    Mar 21, 2011
    Location:
    Australia, Perth
    #6
    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..
     
  7. MacUser2525 macrumors 68000

    MacUser2525

    Joined:
    Mar 17, 2007
    Location:
    Canada
    #7
    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...
     
  8. Tech198 thread starter macrumors G5

    Joined:
    Mar 21, 2011
    Location:
    Australia, Perth

Share This Page