Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #30210

Re: I hate shell

From Joe Beanfish <joebeanfish@nospam.duh>
Newsgroups comp.os.linux.misc
Subject Re: I hate shell
Date 2020-06-24 20:54 +0000
Organization A noiseless patient Spider
Message-ID <rd0eht$i3e$1@dont-email.me> (permalink)
References (1 earlier) <qCCKo9.12oEI@yahoo.com> <rcrv0b$4l8$1@dont-email.me> <20200623101537.25a04922@nx-74205> <rct2u2$4f7$1@dont-email.me> <20200623165834.592758d0@nx-74205>

Show all headers | View raw


On Tue, 23 Jun 2020 16:58:34 +0200, Aragorn wrote:

> On 23.06.2020 at 14:17, Joe Beanfish scribbled:
> 
>> On Tue, 23 Jun 2020 10:15:37 +0200, Aragorn wrote:
>> > 
>> >    for video in *
>> >    do
>> >      name-without-suffix=$(basename ${video%.*})
>> >      # Do your encoding stuff here
>> >    done  
>> 
>> Hyphens aren't valid in variable names. Use underscore or camelCase
>> or something. Add quotes to handle spaces in file names.
> 
> I know that.  It wasn't meant to be taken literally.
> 
>> name_without_suffix=$(basename "${video%.*}")
>> 
>> When someone's struggling with shell syntax, it helps to use
>> syntactically valid examples. Saying "here's my pseudo-code
>> example, go rtfm to fix it" doesn't help.
> 
> He's been around for so long that he ought to have known about these
> things things better than I do.  He wasn't struggling at all.  He's just
> deliberately being obtuse so as to warrant a diatribe against shell
> syntax.

If you feel that way about it, then just skip merrily on to the
next message without replying.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-22 09:42 +0100
  Re: I hate shell Jack Strangio  <jackstrangio@yahoo.com> - 2020-06-22 14:01 +0000
    Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-22 17:05 +0100
      Re: I hate shell Grant Taylor <gtaylor@tnetconsulting.net> - 2020-06-22 10:23 -0600
        Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-22 18:48 +0100
      Re: I hate shell Robert Heller <heller@deepsoft.com> - 2020-06-22 11:32 -0500
      Re: I hate shell Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-06-22 12:41 -0400
        Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-22 18:49 +0100
      Re: I hate shell Jack Strangio  <jackstrangio@yahoo.com> - 2020-06-22 21:50 +0000
        Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 05:04 +0100
          Re: I hate shell Aragorn <thorongil@telenet.be> - 2020-06-23 10:15 +0200
            Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 09:38 +0100
              Re: I hate shell Aragorn <thorongil@telenet.be> - 2020-06-23 13:31 +0200
                Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 14:09 +0100
                Re: I hate shell Aragorn <thorongil@telenet.be> - 2020-06-23 15:58 +0200
                Re: I hate shell Harold Stevens <wookie@fossa.localdomain> - 2020-06-23 09:16 -0500
            Re: I hate shell Joe Beanfish <joebeanfish@nospam.duh> - 2020-06-23 14:17 +0000
              Re: I hate shell Aragorn <thorongil@telenet.be> - 2020-06-23 16:58 +0200
                Re: I hate shell Rich <rich@example.invalid> - 2020-06-23 16:47 +0000
                Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 19:13 +0100
                Re: I hate shell Joe Beanfish <joebeanfish@nospam.duh> - 2020-06-24 20:54 +0000
                Re: I hate shell gazelle@shell.xmission.com (Kenny McCormack) - 2020-06-24 23:24 +0000
      Re: I hate shell Jack Strangio  <jackstrangio@yahoo.com> - 2020-06-22 23:11 +0000
        Re: I hate shell Rich <rich@example.invalid> - 2020-06-23 01:33 +0000
          Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 05:07 +0100
          Re: I hate shell Jack Strangio  <jackstrangio@yahoo.com> - 2020-06-24 03:59 +0000
        Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 05:05 +0100
      Re: I hate shell Eli the Bearded <*@eli.users.panix.com> - 2020-06-23 18:41 +0000
    Re: I hate shell "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2020-06-23 11:12 +0200
  Re: I hate shell Rathbone <please@replytolist.com> - 2020-06-22 20:22 +0000
    Re: I hate shell Aragorn <thorongil@telenet.be> - 2020-06-23 10:20 +0200
      Re: I hate shell The Natural Philosopher <tnp@invalid.invalid> - 2020-06-23 09:41 +0100
        Re: I hate shell Aragorn <thorongil@telenet.be> - 2020-06-23 13:32 +0200

csiph-web