home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13095 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.6 KB  |  101 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!wupost!darwin.sura.net!eng.ufl.edu!sioux.eel.ufl.edu!rcf
  3. From: rcf@sioux.eel.ufl.edu (Robert Fellenz)
  4. Subject: Need Help on post
  5. Message-ID: <1992Nov19.062717.2699@eng.ufl.edu>
  6. Sender: news@eng.ufl.edu (Usenet Diskhog System)
  7. Organization: UF EE Department
  8. Date: Thu, 19 Nov 92 06:27:17 GMT
  9. Lines: 90
  10.  
  11. Hi,
  12.  
  13. Could someone please post the following for me to gnu.bash.bug; for some reason I cannot post to that group.  If someone knows the solution to my problem let me know.
  14.  
  15. Thanks
  16.  
  17. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  18.  
  19. ---------------------------
  20. BASH_VERSION:   1.12.2
  21. hardware:       HP9000s300
  22. compiler:       cc
  23. ---------------------------
  24.  
  25. I am currently having difficulty with the "*" in writing aliases and functions. If the "*" is being used in a command line (ie. "ls *" ) the wild card will only match some --not all-- of the files it comes across.  The following are examples which demonstrate the problems I am having with bash.
  26.  
  27. _________________________________________________________________
  28. example 1:
  29.  
  30.   I'm in directory "test" with the files "a", "b", "c", "d"
  31.  
  32.   bash$ ls
  33.   a     b       c       d
  34.  
  35.   bash$ ls *
  36.   a
  37.  
  38.   bash$ touch dd ddd
  39.  
  40.   bash$ ls [d]*
  41.   d     dd    ddd
  42.  
  43.   bash$ ls *
  44.   dd
  45. _________________________________________________________________
  46. example 2: Still in the same directory as in example 1.
  47.  
  48.  
  49.   bash$ foo()
  50.   >{ echo $* }
  51.  
  52.   bash$ foo *
  53.   a
  54.  
  55.   bash$ foo x y z
  56.   x y z
  57.  
  58. _________________________________________________________________
  59. exexample 3: Same directory again
  60.  
  61.  
  62.   bash$ rm -i *
  63.   a: ? (y/n) y   <--skips b c d ...
  64.  
  65.   bash$ rm -i b c d
  66.   b: ? (y/n) y
  67.   c: ? (y/n) y
  68.   d: ? (y/n) y
  69.  
  70. _________________________________________________________________
  71. example 4: The following is not related to the above examples but it produces acore dump that can be very large --this might be the result of "cd" being a built in function.
  72.  
  73.   bash$ cd()
  74.   > { cd *$ }
  75.  
  76.   bash$ cd
  77.  
  78. the following is the result of the function
  79.  
  80.   Tell root@sioux to fix this someday.
  81.   Stopping myself...free: Called with bad argument
  82.  
  83.   Tell root@sioux to fix this someday.
  84.   Stopping myself...
  85. ___________________________________________________________________
  86.  
  87. Also, my compiled version of bash is 971908 bytes, is it suppose to be that large?
  88.  
  89. I would appreciate any help you could give me.
  90.  
  91. Please email me at rcf@sioux.eel.ufl.edu.
  92.  
  93. Thanks in advance,
  94.  
  95. -bob
  96.  
  97. Robert Fellenz                                  University of Florida
  98. rcf@sioux.eel.ufl.edu                           (904)372-9951
  99.  
  100. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  101.