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: 0) by Anonymous Coward on Tuesday January 23 2018, @01:21PM (15 children)

    by Anonymous Coward on Tuesday January 23 2018, @01:21PM (#626532)

    You have to write software forever and all you have is the unix shells... and the scripts keep getting larger... larger... (no perl, that is a different hell--maybe purgatory)

  • (Score: 3, Insightful) by DannyB on Tuesday January 23 2018, @02:53PM (12 children)

    by DannyB (5839) Subscriber Badge on Tuesday January 23 2018, @02:53PM (#626566) Journal

    In hell . . .
    * you get Usenet, but there is only one newsgroup: alt.soc.rec.talk.comp.news.sci.misc.
    * You only get Windows 3.1
    * On an 8 MHz 80386
    * The only programming language is Perl
    * The only shell is command.com
    * The only editor is edlin (that would stop the fighting about vi vs emacs and make people thankful for the hard work that went into both!)
    * A whopping 2 GB hard drive!
    * For only $7995!
    * And 9600 Kbps dialup!

    --
    To transfer files: right-click on file, pick Copy. Unplug mouse, plug mouse into other computer. Right-click, paste.
    • (Score: 4, Informative) by Freeman on Tuesday January 23 2018, @04:30PM

      by Freeman (732) on Tuesday January 23 2018, @04:30PM (#626612) Journal

      2GB is too large. 80MB would be much more realistic for the hardware you're talking about. Even then, that would have been top of the line.

      --
      Joshua 1:9 "Be strong and of a good courage; be not afraid, neither be thou dismayed: for the Lord thy God is with thee"
    • (Score: 0) by Anonymous Coward on Tuesday January 23 2018, @05:21PM (4 children)

      by Anonymous Coward on Tuesday January 23 2018, @05:21PM (#626640)

      I could deal with all of that except edlin and command.com. I feel my tourrettes acting up again, gotta go.. ;)

      • (Score: 0) by Anonymous Coward on Tuesday January 23 2018, @05:39PM (3 children)

        by Anonymous Coward on Tuesday January 23 2018, @05:39PM (#626658)

        Given that you have Perl, it should be easy to avoid using command.com almost completely.

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

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

          And I'm sure you could re-implement vi in a dozen lines of Perl.

        • (Score: 2, Funny) by Anonymous Coward on Tuesday January 23 2018, @08:13PM (1 child)

          by Anonymous Coward on Tuesday January 23 2018, @08:13PM (#626726)

          Perl also turns the f$!#%ing tourettes into a programming skill.

          • (Score: 0) by Anonymous Coward on Wednesday January 24 2018, @01:30AM

            by Anonymous Coward on Wednesday January 24 2018, @01:30AM (#626897)

            ROFL - best comment of the day

    • (Score: 0) by Anonymous Coward on Wednesday January 24 2018, @02:33AM (2 children)

      by Anonymous Coward on Wednesday January 24 2018, @02:33AM (#626924)

      That must be with the Turbo button disengaged.
      The slowest 386 was 16MHz.

      -- OriginalOwner_ [soylentnews.org]

      • (Score: 0) by Anonymous Coward on Wednesday January 24 2018, @09:33AM (1 child)

        by Anonymous Coward on Wednesday January 24 2018, @09:33AM (#627062)

        The first ones were rated at 12 MHz.

        • (Score: 1) by toddestan on Saturday January 27 2018, @09:15PM

          by toddestan (4982) on Saturday January 27 2018, @09:15PM (#629145)

          The only reason to go with the 386 is to be able to run Windows 95. Which was sluggish enough on a 486, and had to be complete molasses on a 386. Windows 3.1 ran okay on a 386, and would even run acceptably well on a 286.

          Of course, that assumes the luxury of a hard drive. My first PC did not have a hard drive, but it did have 2 floppy drives which was more than what some people had.

    • (Score: 0) by Anonymous Coward on Wednesday January 24 2018, @10:12AM (1 child)

      by Anonymous Coward on Wednesday January 24 2018, @10:12AM (#627069)

      2GBs my word. My 7MHz XT had 21 megs I had reams of games and business applications and three different OS / shell variants and I don't think my hdd utilisation ever reached 25%

      • (Score: 0) by Anonymous Coward on Wednesday January 24 2018, @10:14AM

        by Anonymous Coward on Wednesday January 24 2018, @10:14AM (#627070)

        Also, none of that sounds so bad. Windows 3.1 is a helluva lot better than windows 95 and you gave me perl and an internet connection so I can make that machine do anything that is worth doing. Although on those specs i'd probably just stick with DOS.

    • (Score: 0) by Anonymous Coward on Wednesday January 24 2018, @09:40PM

      by Anonymous Coward on Wednesday January 24 2018, @09:40PM (#627400)

      You made me feel old. I remember Windows 3.0. I remember editing with debug.com (a DOS command). I don't remember how, but I remember doing it. My first dialup connection from home was over a 1200 baud modem with no AT commands. I had to dial with my phone when establishing a connection--both ways, in the snow.

  • (Score: 0) by Anonymous Coward on Tuesday January 23 2018, @05:37PM

    by Anonymous Coward on Tuesday January 23 2018, @05:37PM (#626656)

    You have to write software forever and all you have is the unix shells... and the scripts keep getting larger... larger... (no perl, that is a different hell--maybe purgatory)

    As long as I get to write all the shell scripts myself, and have access to all necessary documentation and enough time for development, I don't see a problem.

    Of course, being hell, it will probably be a big heap of existing, badly written scripts to modify, not enough time to even understand one of them, and no accessible documentation for anything.

  • (Score: 1) by rootsquasher on Tuesday January 23 2018, @06:30PM

    by rootsquasher (6851) on Tuesday January 23 2018, @06:30PM (#626681)
    perl, that is a different hell

    So true. I would take bash over perl any day.