Hi,

Michael P. Soulier wrote:
> Understand that unlike on DOS, Unix programs do not need to interpret
> wildcards like *. The shell does that. So when you type
> mv *.txt foo, your shell expands *.txt and mv only sees the result.

I have to nitpick:

While this non-interpration of wildcards is true for programs like cp
or mv, other programs interpret wildcards if they appear in arguments.
In this case the shell has to be kept from expanding the wildcards.

Examples:

The function "t" (list content) of tar :

  tar tvf my_archive.tar --wildcards '*.[ch]'

The find test -name :

  find . -name '*.[ch]'

xorriso command "-lsl" which mimicks "ls -l" as known from shell
environments:

  xorriso -indev debian-13.1.0-amd64-netinst.iso -lsl '*.html' --

The documentation of each program should of course mention this
special interpretation if it applies to particular options, functions,
or commands.


Have a nice day :)

Thomas

Reply via email to