home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5283 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!concert!samba!usenet
  2. From: Shujaat.Ali@launchpad.unc.edu (Shujaat Ali)
  3. Newsgroups: comp.unix.shell
  4. Subject: Problem with $*.
  5. Message-ID: <1993Jan7.035540.3383@samba.oit.unc.edu>
  6. Date: 7 Jan 93 03:55:40 GMT
  7. Sender: usenet@samba.oit.unc.edu
  8. Organization: University of North Carolina Extended Bulletin Board Service
  9. Lines: 33
  10. Nntp-Posting-Host: lambada.oit.unc.edu
  11.  
  12.  
  13. I am having this strange problem while using this line 
  14.  
  15. echo $* >> cfgargs      #where cfgargs is the filename
  16.  
  17. the input to the script is
  18.  
  19. $ cfg '9.1.1.1'
  20.  
  21. the output should give 9.1.1.1 in the cfgargs file.
  22.  
  23. The problem is that on execution one of the scripts provides the
  24. desired result, whereas the execution of second script places a blank
  25. line in the output file. Both the scripts are almost identical, in the
  26. past I have also experienced difficulty printing command line parameters
  27. like
  28.  
  29.     echo $1
  30.  
  31. The scripts are ran in ksh environment, any help is appreciated.
  32.  
  33.                     Thanks,
  34.  
  35.                     Shujaat.
  36.  
  37.  
  38.  
  39. internet: shujaat@vnet.ibm.com
  40. --
  41.    The opinions expressed are not necessarily those of the University of
  42.      North Carolina at Chapel Hill, the Campus Office for Information
  43.         Technology, or the Experimental Bulletin Board Service.
  44.            internet:  laUNChpad.unc.edu or 152.2.22.80
  45.