On Wed, 4 Nov 2020 15:28:10 -0800, Charles Mills wrote:
>
>pax -wvzf /u/maint/myarchive.pax *


On Wed, 4 Nov 2020 16:30:35 -0800, Charles Mills wrote:
>
>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). 
>
Not "recursively"; it's ordinary shell filename expansion, which isn't 
recursive,
but results in "-x" passed as an argument to pax.  Particularly treacherous
because "-" collates early.  My preferred approaches are:
    pax -wvzf /u/maint/myarchive.pax ./*  # Should work.  Or:
    pax -wvzf /u/maint/myarchive.pax .    # Better.  Unless you need to exclude 
dotted files.

All WAD.

--gil


 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to