Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Tuesday January 23 2018, @09:52AM   Printer-friendly
from the how-many-did-you-already-know? dept.

Explore some of the more useful but perhaps more esoteric capabilities of the Bash shell with the blog post Ten More Things I Wish I'd Known About bash. It is a followup to the highly visible post by the same author on Ten Things I Wish I'd Known About bash. Modern shells like Bash, Ksh, and Zsh have over four decades of developent and refinement, making them powerful, flexlble, and fast user interfaces for efficient work — not just excellent scripting languages for automation.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 4, Touché) by turgid on Tuesday January 23 2018, @03:25PM (3 children)

    by turgid (4318) Subscriber Badge on Tuesday January 23 2018, @03:25PM (#626573) Journal

    This level of ignorance ensures that there will always be gainful employment for those who can give the illusion of working magic.

    Starting Score:    1  point
    Moderation   +2  
       Interesting=1, Touché=1, Total=2
    Extra 'Touché' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   4  
  • (Score: 3, Insightful) by Rich on Tuesday January 23 2018, @07:21PM (2 children)

    by Rich (945) on Tuesday January 23 2018, @07:21PM (#626701) Journal

    The leper in a leper colony will regard leprosy as something perfectly normal. It's not that shell magic is not understandable, just as leprosy is well understood by those with medical knowledge. (Also remember the scene in "Princess Mononoke", where Lady Eboshi employs the lepers as gunsmiths, very useful! ... :P)

    Shell is just uneconomical, or at least annoying, to get right, because its expressive basics are fundamentally broken. How often did I come across scripts that broke with spaces in filenames? And it gets especially bad, if the target has to be classical "sh", without "ba", "z", "k" or "da" in front of it.

    I, for one, much prefer Python as digital duck tape.

    • (Score: 4, Insightful) by turgid on Tuesday January 23 2018, @07:40PM

      by turgid (4318) Subscriber Badge on Tuesday January 23 2018, @07:40PM (#626713) Journal

      How often did I come across scripts that broke with spaces in filenames?

      Spaces in file names are an abomination. Anyone who puts spaces in file names is a filthy pervert. The Good Lord gave us the underscore.

      And it gets especially bad, if the target has to be classical "sh", without "ba", "z", "k" or "da" in front of it.

      It helps to know what language you're writing in when you try to write a program.

      I, for one, much prefer Python as digital duck tape.

      Youth, as the great man said, is wasted on the young. Quack.

    • (Score: 3, Insightful) by bob_super on Tuesday January 23 2018, @10:07PM

      by bob_super (1357) on Tuesday January 23 2018, @10:07PM (#626796)

      > How often did I come across scripts that broke with spaces in filenames?

      How often did you get STDs from unprotected sex with popular prostitutes?