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

  • SEARCH
  • Home
  • 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 7798485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:01:13+00:00 2026-06-02T00:01:13+00:00

I am using ksh dummpy_file does not exist . Finding the exit status of

  • 0

I am using ksh

dummpy_file does not exist . Finding the exit status of tar

SUSE10 / tar version GNU 1.15.1

>gunzip -d dummpy_file | tar xvf -
gunzip : dummpy_file: No such file or directory
>echo $?
>0

SUSE11 / tar version GNU 1.20

>gunzip -d dummpy_file | tar xvf -
gunzip : dummpy_file No such file or directory   
tar : This does not look tar archive  
tar: Error exit delayed from previous errors  
>echo $?   
>2

Is the difference in behavior due the different tar versions ? Please help

  • 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-06-02T00:01:15+00:00Added an answer on June 2, 2026 at 12:01 am

    Yes, tar 1.19 fixed the following bug:

    Recognition of broken archives.
    When supplied an archive smaller than 512 bytes in reading mode (-x, -t), previous tar
    versions silently ignored it, exiting with code 0. It is fixed. Tar now issues the
    following diagnostic message: This does not look like a tar archive, and exits with code 2."
    

    When the gunzip program at the start of pipeline can’t find the file it’s supposed to unpack, it exits and emits 0 bytes to its stdout. The old tar version behaved as if 0 bytes were a correct tar archive, hence no error message.

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

Sidebar

Related Questions

I'm using ksh and having some trouble. Why does this code not run? [root]$
Running the md5 function from the ksh terminal does not matching the output from
I would like to create a pipe in a ksh script (using exec) that
I'm using Solaris 10, ksh . Whenever I do a ./configure , I get
I'm learning ksh, I'm trying to run a command using a subshell, but I
I am using KornShell (ksh) on Solaris and currently my PS1 env var is:
I'm using the find command in a ksh script, and I'm trying to retrieve
How do I transfer multiple files through SFTP using KSH unix script. I am
When logging to remote ksh using telnet (either putty or NET::Telnet) the Job Control
I want to split this line /home/edwprod/abortive_visit/bin/abortive_proc_call.ksh to /home/edwprod/abortive_visit/bin using sed or awk scripts?

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.