public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] bugfix for cpio/cpio_tests.sh
Date: Wed, 31 Mar 2021 15:18:01 +0200	[thread overview]
Message-ID: <YGR2iTMUNUTuhbMw@pevik> (raw)
In-Reply-To: <762779324.75038.1617189402948.JavaMail.xmail@bj-wm-cp-5>

Hi,

> > In cpio version 2.12 and 2.13,'cpio --help' create is lowercase ?
> ?
> > - if ! cpio --help 2>&1 | grep -q -- '-o.*Create'; then ?
> > + if ! cpio --help 2>&1 | grep -qi -- '-o.*Create'; then ?

> Sorry, I thought the search was ?--create? after ?-o?. In the English
> environment, there is indeed ?Create? in the description.

> ??-i,?--extract??????????????Extract?files?from?an?archive
> ??-o,?--create? ? ? ? ? ? ? Create?the?archive

Thanks for clarification.  No, long option --create does not exist in busybox
implementation, there is only short option -o. I mean it wouldn't harm to have
'grep -i', but until needed, I prefer to not adding it.

cpio implementation:
  -o, --create               Create the archive (run in copy-out mode)

busybox implementation:
	-o	Create (requires -H newc)

Kind regards,
Petr

      parent reply	other threads:[~2021-03-31 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30 13:01 [LTP] [PATCH] bugfix for cpio/cpio_tests.sh sujiaxun
2021-03-31 10:31 ` Petr Vorel
     [not found]   ` <762779324.75038.1617189402948.JavaMail.xmail@bj-wm-cp-5>
2021-03-31 13:18     ` Petr Vorel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YGR2iTMUNUTuhbMw@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox