Re: Ada.Command_Line.Argument_Count question



Adam Beneschan <adam@xxxxxxxxxx> writes:

On Sep 23, 5:31 pm, Björn Persson <bj...@xxxxxxxxxxxxxxxxxxxx> wrote:

You might argue that programs that have their own pattern matching features
should use a different set of special characters to distinguish the patterns
from those that the shell expands, but that's a bad idea in my opinion.
Having multiple different syntaxes makes it hard to remember when to use
which syntax.

Multiple syntaxes is a bad idea, but I've always wanted a way to add a
flag to certain executables to tell the shell "don't expand wildcards
when running this executable".

That flag exists, but it's a shell feature, of course, since you are
telling the shell to not do something. It's called "quotes".

Then you could actually write a command of the sort that exists on
other OS's:

rename *.ada *.adb

rename "*.ada *.adb"

or

rename "*.ada" "*.adb"

--
-- Stephe
.



Relevant Pages

  • Re: Removing thousands of files using rm
    ... > deleting the directory is unfortunately not an option. ... The longer answer is that the reason it fails is because the shell expands ... the shell to use a longer command line, ...
    (freebsd-questions)
  • Re: Birth of Universe, the seed and the shell: PROPOSITION #1
    ... represented by an outer shell in two forms: ... all though the shell expands there is a restrictive forces on ... the expanding force caused by the outer shell similar to as if the ... The shell obviously doesn't exist and is only a representation of the ...
    (sci.physics.relativity)
  • Birth of Universe, the seed and the shell: PROPOSITION #1
    ... represented by an outer shell in two forms: ... all though the shell expands there is a restrictive forces on ... the expanding force caused by the outer shell similar to as if the ...
    (sci.physics.relativity)
  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... I think you're getting confused by the fact that the Bourne shell (sh, ... If your scripting language is incapable of dropping arbitrary data ... that this also is possible with bash scripts. ... That includes executables of all types. ...
    (alt.lang.asm)
  • Re: is something wrong in it?
    ... >>Your shell will look for executables in the directories listed in the $PATH ... > am giving mfold command. ... mfold executable and the shell interpreter tries to locate the mfold ...
    (comp.os.linux.misc)

Loading