Nick Lewis <[email protected]> ha escrit:

> [r...@asterisk1 factory]# ls
> configurations  factorydefault.tar.gz
> [r...@asterisk1 factory]# ls configurations
> etc  tmp  usr  var
> [r...@asterisk1 factory]# tar -cz
> --file=/tmp/ampbackups.factorydefault/configurations.tar.gz
> --directory=configurations *

Before executing this command, the shell first expands the asterisk and
gets:

 tar -cz \
  --file=/tmp/ampbackups.factorydefault/configurations.tar.gz \
  --directory=configurations configurations  factorydefault.tar.gz

Then it launches tar.  Now, tar changes to the directory `configurations'
and begins archiving files from its command line, i.e. `configurations' and
`factorydefault.tar.gz'.  Of course it does not find them and issues the
diagnostics you get.

Regards,
Sergey


Reply via email to