Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Bourne / bash problem
- Date: Sun, 26 Apr 2009 02:49:29 -0700
- From: SL Baur <steve@example.com>
- Subject: Re: [tlug] Bourne / bash problem
- References: <c0f4e2b00904040115k14c6f9dcma0448e9904c8fd2f@example.com> <20090406002524.add5eb5f.sl-tlug@example.com>
On Sun, Apr 5, 2009 at 8:25 AM, Stephen Lee <sl-tlug@example.com> wrote: > Bruno Raoult <braoult@example.com> wrote: >> >> I am writing some script, with commands like ffmpeg, handbrake, >> or some video editing commands. They all take zillion of parameters, > > How about something like this? > > # comment > options=--option1 > # comment > options+=\ --option2 > # comment > options+=\ --option3 > # here goes the command > command $options > > Though this may get a bit tricky if your options include shell > metacharacters or significant whitespaces, then you'll have to > escape them correctly. Something like that will work, but this is more of a case of Doctor, Doctor it hurts when I do this! So, don't do that. I'm fortunate to have a guaranteed /bin/zsh regardless of whether my script runs on Solaris or Linux at work, but I know others are not so fortunate otherwise I would recommend that. It has the best quoting syntax of the POSIX compliant shells. -sb
- Follow-Ups:
- Re: [tlug] Bourne / bash problem
- From: Nguyen Vu Hung
- References:
- [tlug] Bourne / bash problem
- From: Bruno Raoult
- Re: [tlug] Bourne / bash problem
- From: Stephen Lee
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Two keyboards, two layouts: udev likely part of the solution
- Next by Date: Re: [tlug] Bourne / bash problem
- Previous by thread: Re: [tlug] Bourne / bash problem
- Next by thread: Re: [tlug] Bourne / bash problem
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links