On Sat, Feb 5, 2011 at 3:05 AM, Gert van den Berg <wine-de...@mohag.net> wrote: > On Thu, Feb 3, 2011 at 18:17, Albert Lee <tr...@forkgnu.org> wrote: >> The instructions were intended to give some context for users who >> might not be familiar with the ~ expansion. > > Using {$HOME} would be more portable. The Bourne shell (/bin/sh) on > Solaris (9/10 - OpenSolaris defaulted to ksh) doesn't support ~ > (although csh, zsh, bash, tcsh, ksh and just about all the other > bundled shells does, it sh is the default shell) >
Anyone using the original Bourne sh *interactively* is in for a world of pain anyway (speaking as someone who often had to before the ksh93 replacement). I think relying on tilde expansion can can be considered good practice for the interactive use case. -Albert