Skip to contentSkip to conversation

zcat default

Buildroot Heikki Lindholm 2 participants 2 messages Feb 23, 2007 – Mar 9, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

BR2_ZCAT defaults to zcat, and it is basically always used to extract files with .gz suffix. POSIX zcat [1] is specified to append .Z to filenames that don't already have such suffix. This is also the behaviour on Mac OS X. Therefore, it would make sense to use gunzip -c or gzip -dc as a default instead.

[1] http://www.opengroup.org/onlinepubs/000095399/utilities/zcat.html

-- Heikki Lindholm

#1 lore raw
Quoted 9 lines · Heikki Lindholm

Hi,

BR2_ZCAT defaults to zcat, and it is basically always used to extract files with .gz suffix. POSIX zcat [1] is specified to append .Z to filenames that don't already have such suffix. This is also the behaviour on Mac OS X. Therefore, it would make sense to use gunzip -c or gzip -dc as a default instead.

[1] http://www.opengroup.org/onlinepubs/000095399/utilities/zcat.html

Agree. Changed in r18045. Thanks for the heads up