[LTP] [PATCH] bugfix for cpio/cpio_tests.sh

Petr Vorel pvorel@suse.cz
Wed Mar 31 15:18:01 CEST 2021


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


More information about the ltp mailing list