The share market has shaken off losses late in the session to end slightly higher, while the Australian dollar is struggling to return to parity with its US counterpart, amid worries about Greece's future in the eurozone.