The following resulted in about an hour to an hour and a half of profanity laden delay:

Posted on Thursday 6 September 2007

From the Advanced Bash-Scripting Guide:

The $(COMMAND) form has superseded backticks for command substitution.

… When the fsck did that happen?! And why? Especially since the first example of command substitution given uses the old format with backticks. So nice of you to include that helpful tidbit as a goddamn footnote!

OK, I’ll stop ranting now…


1 Comment for 'The following resulted in about an hour to an hour and a half of profanity laden delay:'

  1.  
    Pug
    September 6, 2007 | 11:34 pm
     

    It happened because backticks can’t be nested. With the new formatting I can write
    rm -rf $(ls -la $(cat ~/dirList)) to delete all files in all the directories in the ~/dirList file. I couldn’t do that with backticks since rm -rf `ls -la `… looks like the command is “ls -la”.

    Anyway, it happened around 2001.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI