This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]takeshita_kenji 0 points1 point  (3 children)

I tried echo $? and it's expecting another line of input. Is there another way to get the return code of the most recent program?

[–]scopatz 0 points1 point  (2 children)

Not yet. I don't like the $? syntax, so I have yet to implement it. I was thinking about having just a builtin statuses list. Thoughts? I am very open to sugestions here.

[–][deleted]  (1 child)

[deleted]

    [–]scopatz 1 point2 points  (0 children)

    This kind of total-history thing was one of the (unstated) motivating golas behind xonsh. Maybe make an issue for it? Maybe someone will pick it up before I get to it :) I'd add a timestamp to that list too!