Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#25 A Simple Bourne Shell Script Using cat Will Crash sh

open
nobody
None
5
2005-10-14
2005-10-14
Jack Cheung
No

A simple bourne shell script using cat for inline text
output would crash sh.

My operating system is Windows XP Service Pack 2
CPU: Intel Pentium 4 1.5Ghz
RAM: 512 MByte RAM
File-System: NTFS
Save this file as hello.sh and run it as:
sh hello.sh

Discussion

  • Jack Cheung
    Jack Cheung
    2005-10-14

    Logged In: YES
    user_id=771997

    Forgot to click on the "Check to Upload" checkbox, here it is:

     
  • Jack Cheung
    Jack Cheung
    2005-10-14

    proof

     
    Attachments
  • Jack Cheung
    Jack Cheung
    2005-10-14

    Logged In: YES
    user_id=771997

    I've installed the "Latest Updates"
    (http://unxutils.sourceforge.net/UnxUpdates.zip), as well as
    pointing cat to where it is (e.g. writing it as
    /unix/local/wbin/cat instead of cat), still got a crash. I
    will try it on different version of windows and let you know.