home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / misc / 3627 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!afterlife!adm!amsaa-cleo!hagadorn
  2. From: hagadorn@amsaa-cleo.brl.mil (Thomas Hagadorn)
  3. Newsgroups: comp.unix.misc
  4. Subject: Re: Giles' (Manual) Mania (getting longuish)
  5. Message-ID: <8934@amsaa-cleo.brl.mil>
  6. Date: 10 Sep 92 19:31:39 GMT
  7. References: <1992Sep8.183712.18867@newshost.lanl.gov> <7269@charon.cwi.nl> <1992Sep9.192946.27394@newshost.lanl.gov>
  8. Organization: Army Materiel Systems Analysis Activity
  9. Lines: 28
  10.  
  11. In article <1992Sep9.192946.27394@newshost.lanl.gov> jlg@cochiti.lanl.gov (Jim Giles) writes:
  12. >
  13. >Can you explain why I can't even write (even if I want to) a remote
  14. >`ls' command which lists files on a remote machine but which is
  15. >compatible with `ls':  I can't say
  16. >
  17. >      rls machine-id a*
  18. >
  19. >to find all files in my home directory on the remote machine whose
  20. >names begin with `a'.  *THIS* would be consistent, but the UNIX
  21. >environment won't even *let* me do it.  Why?  They *CLAIM* it's for
  22. >consistency!!  But, since that obviously *wasn't* a constraint in
  23. >the rest of the environment (and this is counter to consistency
  24. >anyway), this excuse is not valid.
  25.  
  26.   I must be missing something on this one.  If your complaint is that you 
  27. need to quote the file list to keep it from being expanded before the
  28. rsh on machine-id get the command line arguments, then with csh you can
  29. get around this with an alias.  For example:
  30.  
  31.    alias rls 'set noglob; rsh \!:1 ls \!:2* ; unset noglob'
  32.  
  33.   rls machine-id a* will now give the same results as if one rlogin'd to
  34. machine-id and did ls a*.  Please clarify if your complaint meant to
  35. imply something different.
  36.  
  37. regards,
  38. Tom H.
  39.