lush in a shell script

  • Josef

    Josef - 2008-06-28


    as described in para. 2.23 of the lush manual, I have stored the following code in "slideshow":

    #!/usr/local/bin/lush @@
    # I have no lsh/lushenv defined
    (libload "/usr/local/share/lush/lsh/libimage/image-io")
    (libload "/usr/local/share/lush/lsh/libimage/rgbaimage")
    (setq window (x11-window 1 1 640 480 "Slide Show"))
    (while t
    (each ((f (cdr argv)))
    0 0 (rgbaim-resize (image-read-rgba f) (xsize) (ysize) 0))
    (sleep 4)))

    When however trying to execute slideshow in a command window, I go the following error message:

    alberich@tux:~/Desktop/bilder> ./slideshow DSC08586.JPG DSC08590.JPG

    *** load : Unterminated multiline comment

    Apparently this error occurs already at start-up since replacing the script by:
    #!/usr/local/bin/lush @@

    yields the same error msg...
    My lush works fine in both, the inf-emacs mode (met-x lush) and the shell after starting lush manually by typing /usr/local/bin/lush

    Any ideas?

    • Yann LeCun

      Yann LeCun - 2008-06-28

      You seem to be looking at an old version of the manual
      The current version of the documentation (the
      one you get with "(helptool)") says:

      exec lush "$0" "$@"
      (libload "libimage/image-io")
      (libload "libimage/rgbaimage")
      (setq window (x11-window 1 1 640 480 "Slide Show"))
      (while t
      (each ((f (cdr argv)))
      0 0 (rgbaim-resize (image-read-rgba f) (xsize) (ysize) 0))
      (sleep 4)))

      This works.

      -- Yann

      • Josef

        Josef - 2008-06-28

        Hello Yann,

        thank you for the quick answer.
        Is there a pdf version of the new manual available?


  • dshgayfaoi

    dshgayfaoi - 2010-10-10

    Next on the list is Healing Rains RS Gold.
    This is a cross between a targeted AOE spell like Blizzard and a group heal
    spell like Tranquility. Most of you will probably be thinking, "Why are you
    talking about a healing Cheap WOW Gold spell in a
    damage column?" You've probably forgotten about the emergency heals thrown on
    yourself or others while trying to turn that sub-five-percent wipe into a
    killed-the-boss-by-the-skin-of-your-teeth Aion
    victory. Use this as an
    emergency heals on your melee group when there is a lot of damage. By the way,
    if you want to buy cheap WOW gold and order for power Metin2
    leveling, you can click our excellent
    website to search for your desired services. Once you trade here, you will
    find it is quite safe to Buy WOW Gold,so convenient and
    fast to place an order and deliver the order.


Log in to post a comment.