home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14641 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!utcsri!torn!utzoo!censor!becker!cherni!quenton
  3. From: quenton@Cherniak.ON.CA (Dennis Smith)
  4. Subject: /bin/sh on HP-UX on HP-9000, case problem
  5. Organization: Cherniak Giblon
  6. Distribution: na
  7. Date: Thu, 7 Jan 1993 19:46:06 GMT
  8. Message-ID: <1993Jan7.194606.27426@Cherniak.ON.CA>
  9. Lines: 23
  10.  
  11.  
  12.  
  13. I just started using an HP-9000.  I had to port a few hundres
  14. utilities, some C and some shell scripts.  I found that most of my
  15. shell scripts failed.  The problem appeared to be statements of the form:
  16.  
  17.     case "abc?def" in
  18.        *"?"*) echo OK;;
  19.     esac
  20.  
  21. This should echo "OK".
  22. It does on ksh.  It does on /bin/sh on 8 other platforms including AIX.
  23. It does not on /bin/sh on the HP.
  24.  
  25. For now I have replaced /bin/sh with /bin/ksh.  I had to actually replace it
  26. because I have things run from cron which were failing too.
  27.  
  28. Anyone run into this before?  Anyone think I will have problems using ksh
  29. as /bin/sh?
  30. -- 
  31. Dennis Smith, quenton@Cherniak.ON.CA, UUCP: ..!lsuc!cherniak!quenton
  32. +1 416 771 7011, FAX +1 416 771 6288
  33. Cherniak Giblon 10 Commerce Valley Dr. E. #400, Thornhill, Ont. CANADA L3T 7N7
  34.