Function: org-babel-sh-strip-weird-long-prompt
org-babel-sh-strip-weird-long-prompt is a byte-compiled function
defined in ob-shell.el.gz.
Signature
(org-babel-sh-strip-weird-long-prompt STRING)
Documentation
Remove prompt cruft from a string of shell output.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-shell.el.gz
(defun org-babel-sh-strip-weird-long-prompt (string)
"Remove prompt cruft from a string of shell output."
(while (string-match "^% +[\r\n$]+ *" string)
(setq string (substring string (match-end 0))))
string)