Jump to content




lsh - A shell with pipes.


  • You cannot reply to this topic
2 replies to this topic

#1 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 05 October 2015 - 04:04 AM

Shells that implement a piping/redirection system have been posted a few times in the forums. LyqydShell, or lsh, is yet another entry on the list. It uses the io API to redirect the input and output of the programs you run in it. Any program that takes input via io.read and provides output via io.write can be piped into or out of. Lsh comes with some programs that take advantage of the pipe infrastructure. Currently, they are:
  • cat, takes a file name as an argument and writes the contents to stdout.
  • glpp, a grep-alike that uses lua patterns.
  • less, a simple paging program that accepts input from stdin.
  • list, a replacement for the built-in list program that outputs to stdout.
  • tee
More programs are planned to take full advantage of the ability to pipe text around. Lsh is included with LyqydOS, or you can download it separately from github. The best way to get lsh is via packman, with the command packman install lsh, as this will fetch lsh and its associated programs automatically.

Screenshot


#2 クデル

  • Members
  • 349 posts

Posted 05 October 2015 - 05:58 AM

You sir, are beautiful

#3 LewisTehMinerz

  • Members
  • 174 posts
  • LocationMinecraft in Minecraft in Minecraft in ComputerCraft... in Minecraft

Posted 24 October 2015 - 08:22 AM

Okay, now I'm gonna get confused with NSH and LSH... xD





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users