Re: HOME vs ~
- From: Ben Finney <ben+unix@xxxxxxxxxxxxxxx>
- Date: Fri, 11 Feb 2011 07:38:12 +1100
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
.
- References:
- HOME vs ~
- From: Why Tea
- Re: HOME vs ~
- From: Stephane CHAZELAS
- Re: HOME vs ~
- From: Alan Curry
- Re: HOME vs ~
- From: Ben Finney
- Re: HOME vs ~
- From: Wayne
- HOME vs ~
- Prev by Date: Re: HOME vs ~
- Next by Date: Re: HOME vs ~
- Previous by thread: Re: HOME vs ~
- Next by thread: Re: HOME vs ~
- Index(es):
Relevant Pages
|