No, I was trying to archive the current directory, and it contained a file 
named -x (created accidentally) and the next folder is named 'foldername' (per 
my original post). 

John is saying that the shell expands the folders recursively, so pax sees pax 
blah blah -x foldername ...

And says foldername is an invalid operand for -x.

Comprende?

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Wednesday, November 4, 2020 4:09 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: FSUM7197 pax: invalid archive format selected

On Wed, 4 Nov 2020 17:57:25 -0600, John McKown wrote:

>Do any of the directories start with a dash? Filename expansion is done by
>the shell, not pax. So pax would see a dash and think the rest was an
>option. Most likely you have a file or directory which is "-x" so the
>following entry, "foldername" is being interpreted as the output format.
>There is no fix other than not using a dash as the first character in a
>file, directory, etc.name.
> 
Are you discussing command line args?  If so, sometimes the circumvention
is to use "./-x".

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to