Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6017247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:06:04+00:00 2026-05-23T03:06:04+00:00

I am running into the following problem with gzip.exe, be it from UnxUtils or

  • 0

I am running into the following problem with gzip.exe, be it from UnxUtils or from GnuWin32:

set gzip=.\util\gzip.exe
%gzip% test.txt
%gzip% test2.txt

The second gzip command will issue a warning like the following:

gzip: .\util\gzip.exe.gz already exists; do you wish to overwrite (y or n)?

So: gzip tries to compress itself (and it still compresses test2.txt).
It is like if the command line was: .\util.gzip.exe .\util.gzip.exe test2.txt.

However, when in my batch my variable is not named gzip, then it works correctly.

set gzip_prg=.\util\gzip.exe
%gzip_prg% test.txt
%gzip_prg% test2.txt

I do not understand at all how the choice of a variable name can have an influence on the command line that is run after expansion.

In short, my batch script behaves in a different way when I change the name of a variable!

Has anyone an explanation for this phenomenon?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:06:05+00:00Added an answer on May 23, 2026 at 3:06 am

    I found the answer myself.

    gzip.exe reads the GZIP environment variable that helps setting options.

    Here, gzip reads the environment variable and considers therefore that it has to compress itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running into a strange problem. In the following sample code, if I set
I am running into some difficulty with the following query. SELECT maker, speed FROM
My application is following the MVC design pattern. The problem I keep running into
i am creating a small scala DSL and running into the following problem to
I'm running into a problem with the following Python 3.2.2 code. The code is
I'm running into the following problem when trying to run an app wiht grails
I'm running into the following problem when setting up a whitelist for PHP: I've
I am running into the following problem, I am passing an array of string
I'm running into the following problem. A frontend website (www.domain.com) is used to fill
I am trying out moq and I'm running into a problem with the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.