Slashdot Mirror


Python/Unix Hybrid Demoed at PyCon (xon.sh)

A new shell "combines the Python language with features of Bash Unix and the fish and zsh shells," according to InfoWorld. An anonymous reader writes: Pronounced "conch," but spelled Xonsh, it runs on Linux, Windows, and Mac OS X systems, bringing Python libraries to the command line -- for example, the ability to use regular expressions when globbing files. "The first thing you'll notice about Xonsh is that it's really meant to be used as a general-purpose shell," the lead developer explained in a presentation at PyCon. "But on the other hand, it really is Python, so you can do things like add two numbers together."

They're describing it as "a Python-ish, BASHwards-looking shell language and command prompt...a superset of Python 3.4+ with additional support for the best parts of shells that you are used to, such as Bash, zsh, fish, and IPython...the superglue that bonds Python to a command-line interface and other shells."

7 of 181 comments (clear)

  1. Of course it's a Unix shell.. by freeze128 · · Score: 4, Funny

    It's cleverly named "conch", like the history of other shells (Korn shell, Bourne Shell, Bourne Again Shell (BASH), C Shell). I kinda wonder why there isn't a Taco Shell....

    1. Re:Of course it's a Unix shell.. by Anonymous Coward · · Score: 5, Funny

      I kinda wonder why there isn't a Taco Shell....

      Because it's a corny idea.

  2. So not really a Python/Unix hybrid by rminsk · · Score: 5, Informative

    Why is the title of this article "Python/Unix Hybrid Demoed at PyCon" when it is a Python/Bash hybrid? Bash != Unix

  3. Not excited by fph+il+quozientatore · · Score: 4, Insightful

    1. What is so awesome about adding two numbers in the shell?
    2. In any case, bash can do it too -- try echo $((15+7)).
    3. One of the selling points of bash is that it needs to be fast for power users, so it uses cd instead of change_directory(). One of the selling points of Python is that readability counts, so it would choose change_directory() over cd. How do you plan to reconcile the two approaches?

    --
    My first program:

    Hell Segmentation fault

  4. Re:What the hell by U2xhc2hkb3QgU3Vja3M · · Score: 4, Funny

    What is "bash unix"? I'll show you:

    Unix fucking sucks! There's no games on it and you can't even run Microsoft Office 365 even if you're willing to pay for it every fucking year!

  5. Re:Python by fluffernutter · · Score: 4, Interesting

    I develop in python, java, and objective-c... you know what I hate more then python? Putting parenthesis around every single conditional statement. Once you work in python for awhile and go back, you start to notice how many brackets there are in the other languages.

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  6. Brackets exist for a good reason by Viol8 · · Score: 5, Informative

    They clearly define the block no matter how you format it.

    More than once I've seen a python program where someone has accidentaly deleted tabbed whitespace on a end line in a block and moved that line into the outer block and of course python says nothing. But now the program is broken. Try removing a bracket in C/C++/java and see what happens.

    Whitespace as a block delimiter is a retarded idea, always has been, always will be.