From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43761-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SUBJ_OBFU_PUNCT_FEW autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 3d909e22 for ; Mon, 5 Nov 2018 11:34:20 +0000 (UTC) Received: (qmail 13451 invoked by alias); 5 Nov 2018 11:34:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43761 Received: (qmail 16024 invoked by uid 1010); 5 Nov 2018 11:34:07 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-expgw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.98.4):SA:0(-2.6/5.0):. Processed in 2.12154 secs); 05 Nov 2018 11:34:07 -0000 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Biglobe-Sender: From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: [PATCH] update _file_flags, _file_systems, _mktemp, _script, _string (mostly for darwin) Message-Id: <6642ADB3-12D7-4588-9AE4-06ADEDDBB5CD@kba.biglobe.ne.jp> Date: Mon, 5 Nov 2018 20:33:58 +0900 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3445.101.1) X-Biglobe-Spnum: 49778 _strings: add support for darwin _file_flags, _file_systems, _mktemp, _script: minor updates (mostly for = darwin) diff --git a/Completion/BSD/Type/_file_flags = b/Completion/BSD/Type/_file_flags index 95044121c..202a46c4a 100644 --- a/Completion/BSD/Type/_file_flags +++ b/Completion/BSD/Type/_file_flags @@ -7,6 +7,7 @@ local -a context line state state_descr copts=3D( "${@}" = ) flags flag_descs local -A val_args =20 flag_descs+=3D( + nodump nodump uappnd 'user append-only' uchg 'user immutable' ) @@ -14,7 +15,6 @@ flag_descs+=3D( if (( su )); then flag_descs+=3D( arch archived - nodump nodump sappnd 'system append-only' schg 'system immutable' ) @@ -36,12 +36,12 @@ if [[ $OSTYPE =3D (darwin|dragonfly|freebsd|netbsd)* = ]]; then =20 if [[ $OSTYPE =3D dragonfly* ]]; then flag_descs+=3D( - cache XXX + cache cache nouhistory 'user nohistory' ) =20 (( su )) && flag_descs+=3D( - noscache XXX + noscache noscache noshistory 'system nohistory' ) fi diff --git a/Completion/Unix/Command/_mktemp = b/Completion/Unix/Command/_mktemp index 4b5bf99f7..03fc89e36 100644 --- a/Completion/Unix/Command/_mktemp +++ b/Completion/Unix/Command/_mktemp @@ -30,9 +30,9 @@ fi args=3D( ${args:#((#s)|*\))(\*|)-t*} ) args+=3D( '-t[generate template relative to temp dir]' ) # Dragonfly, FreeBSD, and Darwin take an argument to -t and support = any number - # of template files + # of template files. These OSes do not have -p and -V. else - args=3D( ${args:#((#s)|*\))(1:*|(\*|)-t*)} ) + args=3D( ${args:#((#s)|*\))(1:*|(\*|)-[ptV]*)} ) args+=3D( '-t[generate template relative to temp dir using specified = prefix]:template prefix' '*: :_guard "^-*" "template name"' diff --git a/Completion/Unix/Command/_script = b/Completion/Unix/Command/_script index dfe57a796..e6c104d2c 100644 --- a/Completion/Unix/Command/_script +++ b/Completion/Unix/Command/_script @@ -35,7 +35,7 @@ case $OSTYPE in '-q[be quiet: suppress display of starting and ending lines]' ) ;| - netbsd*|freebsd*) + darwin*|netbsd*|freebsd*) args+=3D( '(-a -r -k)-d[suppress sleeps when playing back a session]' '(-a -r -k -t)-p[play back a recorded session]' @@ -62,6 +62,9 @@ case $OSTYPE in '*:::arguments: _normal' ) ;| + darwin*|freebsd*) + args+=3D( '-F[send output to specified named pipe]:fifo:_files -g = "*(p)"' ) + ;| *) args+=3D( '(-p -d)-a[append output]' diff --git a/Completion/Unix/Command/_strip = b/Completion/Unix/Command/_strip index 630140c64..e7f3418d7 100644 --- a/Completion/Unix/Command/_strip +++ b/Completion/Unix/Command/_strip @@ -42,10 +42,39 @@ if _pick_variant gnu=3DGNU solaris --version; then '(-)'{-V,--version}'[display version information and exit]' '(-v --verbose)'{-v,--verbose}'[list all object files modified or = members of archives]') else - args=3D( - '-l[strip line information only]' - '-V[display version information on stderr and exit]' - '-x[do not strip the symbol table]') + case $OSTYPE in + solaris*) + args=3D( + '-l[strip line information only]' + '-V[display version information on stderr and exit]' + '-x[do not strip the symbol table]') + ;; + darwin*) + local -a arch + arch=3D( ${(z)${${"$(_call_program architectures + strings -arch - 2>&1)"}#*flags are: }%%$'\n'*} = all ) + args=3D( + '-u[save all undefined symbols]' + '-r[save all symbols referenced dynamically]' + '-s[save global symbols listed in the specified = file]:file:_files' + '-R[remove global symbols listed in the specified = file]:file:_files' + '-i[ignore symbols listed in -s/-R file but are not in the = object files]' + '-d[save debug symbols in files listed in the specified = file]:file:_file' + '-A[save all global absolute symbols and Objective-C class = symbols]' + '-n[save all N_SECT global symbols]' + '-S[remove debug symbols]' + '-X[remove local symbols whose names begin with L]' + '-T[remove Swift symbols]' + '-N[remove all nlist symbols and string tables from binaries = used by dyld]' + '-x[remove all local symbols]' + '-c[remove section contents of dynamic library to create stub = library]' + '-o[write the result to specified file]:output file:_files' + '-no_uuid[remove only LC_UUID load command]' + '-no_split_info[remove LC_SEGMENT_SPLIT_INFO load command]' + '-no_code_signature_warning[not warn when code signature would = be invalid in the output]' + '-arch[specify the architecture]:architecture:( $arch )' ) + ;; + esac fi =20 _arguments \ diff --git a/Completion/Unix/Type/_file_systems = b/Completion/Unix/Type/_file_systems index 2d903d471..1e47ff7b1 100644 --- a/Completion/Unix/Type/_file_systems +++ b/Completion/Unix/Type/_file_systems @@ -27,8 +27,7 @@ case $OSTYPE in reiserfs xfs zfs ) ;; darwin*) - fss=3D( afp cd9660 cddafs devfs fdesc hfs lfs msdos nfs - ntfs smbfs synthfs udf ufs volfs webdav ) + fss=3D( autofs /sbin/mount_*(#qN-*:s./sbin/mount_.) ) ;; *) # default for all other systems