home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rutgers!concert!samba!usenet
- From: Shujaat.Ali@launchpad.unc.edu (Shujaat Ali)
- Newsgroups: comp.unix.shell
- Subject: Problem with $*.
- Message-ID: <1993Jan7.035540.3383@samba.oit.unc.edu>
- Date: 7 Jan 93 03:55:40 GMT
- Sender: usenet@samba.oit.unc.edu
- Organization: University of North Carolina Extended Bulletin Board Service
- Lines: 33
- Nntp-Posting-Host: lambada.oit.unc.edu
-
-
- I am having this strange problem while using this line
-
- echo $* >> cfgargs #where cfgargs is the filename
-
- the input to the script is
-
- $ cfg '9.1.1.1'
-
- the output should give 9.1.1.1 in the cfgargs file.
-
- The problem is that on execution one of the scripts provides the
- desired result, whereas the execution of second script places a blank
- line in the output file. Both the scripts are almost identical, in the
- past I have also experienced difficulty printing command line parameters
- like
-
- echo $1
-
- The scripts are ran in ksh environment, any help is appreciated.
-
- Thanks,
-
- Shujaat.
-
-
-
- internet: shujaat@vnet.ibm.com
- --
- The opinions expressed are not necessarily those of the University of
- North Carolina at Chapel Hill, the Campus Office for Information
- Technology, or the Experimental Bulletin Board Service.
- internet: laUNChpad.unc.edu or 152.2.22.80
-