mms,
@mms@emacs.ch avatar

Anyone know why org-babel-ruby adds an extra " for webs?

#+name: uname
#+begin_src sh :results output replace
uname -a

#+BEGIN_SRC ruby :noweb yes :result scalar
"<<uname()>>.split(" ")[1]

This workss, because uname() is a result of uname -a PLUS AN QUOTATION MARK

yeti,
@yeti@emacs.ch avatar

deleted_by_author

  • Loading...
  • mms,
    @mms@emacs.ch avatar
    yeti,
    @yeti@emacs.ch avatar

    deleted_by_author

  • Loading...
  • mms,
    @mms@emacs.ch avatar

    @yeti <<>> gets expanded uname” (sometimes uname NEW LINE).

    The expansion occurs before evaluation. The first quote encloses umami for it to be treated as string.

    The problem is that added quote or new line at the end of expanded uname

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • modclub
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • everett
  • slotface
  • khanakhh
  • ethstaker
  • rosin
  • kavyap
  • tacticalgear
  • InstantRegret
  • DreamBathrooms
  • JUstTest
  • ngwrru68w68
  • Durango
  • tester
  • GTA5RPClips
  • cisconetworking
  • cubers
  • normalnudes
  • osvaldo12
  • provamag3
  • Leos
  • anitta
  • megavids
  • lostlight
  • All magazines