home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3698 < prev    next >
Encoding:
Text File  |  1992-08-30  |  971 b   |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!fuug!kiae!isknews!pczz!sfera!mickey
  3. From: mickey@sfera.kharkov.ua (Mickey Serg Antonoff)
  4. Subject: alias problems
  5. Message-ID: <1992Aug29.140835.15176@sfera.kharkov.ua>
  6. Summary: csh alias problem
  7. Keywords: alias, csh
  8. Organization: PC Center TECHNO (Kharkov BB)
  9. Date: Sat, 29 Aug 1992 14:08:35 GMT
  10. Lines: 22
  11.  
  12.     Hello everybody
  13.  
  14.   there is a little problem to write alias in such way:
  15.  
  16. alias md "sh -c 'for f in \!*;do mkdir $f ; cd $f;done'"
  17.  
  18.   it have to do:
  19.     make directory, than cd to it;
  20.   call:
  21.     cd ~
  22.     md 1 2 3 4 5 6
  23.   result:
  24.     cwd = ~/1/2/3/4/5/6
  25.  
  26.   In such way implementation there are a couple of errors reported, including
  27. "f": variable not found, and so on...
  28.  
  29.   Help me, please.
  30.  
  31.   With the best wishes,
  32. --
  33. Mickey <mickey@sfera.kharkov.ua>
  34.