Re: HOME vs ~



Wayne <nospam@xxxxxxxxxxx> writes:

You're right of course, but that won't stop some home users from
using spaces in directory names. So as usual Stephane's advice is
probably best and in scripts meant to be portable, avoid using ~.

Users cannot, at least, put shell metacharacters into the name of their
home directory (because they don't get to choose or rename that
directory).

So with the offending sysadmin shot and the root credentials under one's
control, that problem can be fixed, making ‘~’ expansion safe again for
all. Hooray!

--
\ “A ‘No’ uttered from deepest conviction is better and greater |
`\ than a ‘Yes’ merely uttered to please, or what is worse, to |
_o__) avoid trouble.” —Mohandas K. Gandhi |
Ben Finney
.



Relevant Pages

  • Re: Help with vbs and html
    ... - What OS are you using to run the scripts? ... - Why avoid using WMI? ... > seem to replicate this type of functionality. ...
    (microsoft.public.scripting.vbscript)
  • Re: Pythonic indentation (or: beating a dead horse)
    ... My work since some year is to decrease probability of errors - I'm creating testing tools, environments and scripts, performing integrations tests and so on. ... I don't like unnecessary syntax elements for scripting languages, because they spoil the view for the real problems. ... So I like Ruby's ability to avoid brackets, ... Would "J" encourage people to avoid comments and empty lines to avoid 50% of scrolling? ...
    (comp.lang.ruby)
  • Re: impdp approach
    ... I will also need to consider (perhaps using scripts  )constraints/ ... pitfalls to avoid I would be gratefull ... The old plsql to generate utility commands tricks ... The main pitfall to avoid is to not test enough and to make sure you ...
    (comp.databases.oracle.server)
  • Re: Repairing JVC HR-S3910U S-VHS
    ... any advice:) ... Avoid methanol because it is toxic, ... Avoid 'rubbing alcohol', unless it is pure isopropyl alcohol, because it ...
    (sci.electronics.repair)
  • Statement on my site -- FYI
    ... "How to Avoid Nearsightedness" and ... emphatically that everything written here ("How to Avoid ... If you want a medical opinion or advice, ... I take PERSONAL RESPONSIBILITY for my health. ...
    (sci.med.vision)