Re: shell scripts with empty arguments and spaces

From: Michael Paoli (michael1cat_at_yahoo.com)
Date: 01/22/04


Date: 21 Jan 2004 19:19:50 -0800

A hint:
"$@" is your friend
sh(1)

Additional hints (some of which reference poster seems to already be aware of):
shift
set
set --
${parameter:+word}
${parameter+word}
parameter=
Quoting (most notably ' and ")

Ulrich Herrmann <uherr@gmx.de> wrote in message news:<opr148ql0bl16y4z@news.online.de>...
> Is
> there no way of handling empty arguments in shell scripts directly?
> Anyone to give me some tips on this?



Relevant Pages

  • Re: How to build a file rack?
    ... I guess NR means "make shift". ... A hint to the clueless, ... lemmie try to say this. ...
    (rec.crafts.metalworking)
  • Re: Port mode is incompatible error
    ... register), but now it gives this error: ... For every line of code that tries to shift, ... Hint: you have to be explicit about *when* you drive the inout. ...
    (comp.lang.verilog)
  • Re: Selection.Delete Shift:=xlToLeft (whats the meaning of this?)
    ... shift the cells up or to the left or the entire row or column. ... In particular, I can't see what is the goal of selecting first BA:BD, ... (hint: it's still functionning correctly and it is not ...
    (microsoft.public.excel.programming)
  • Re: Machine precision
    ... Ron Natalie wrote: ... > just fractions, they shift. ... I thought the above would be enough of a hint ...
    (comp.lang.cpp)
  • Re: Benazir Bhutto killed by suicde bomber
    ... he's our friend and ally, ... They weren't allowed to bring in their own technology. ... it just needs someone to drop a hint to ... existence of al Qaeda friendlies in the ISI would guarantee some form ...
    (sci.military.naval)