Sean 'Shaleh' Perry <[EMAIL PROTECTED]> wrote:
> yep '~' is a GNU ism (-:
It is?
(jschauma@becasse) [jschauma]$ cat /tmp/foo.sh
#!/bin/sh
ls -la ~/
(jschauma@becasse) [jschauma]$ /tmp/foo.sh
[listing of my $HOME snipped]
(jschauma@becasse) [jschauma]$
I guess NetBSD implemented this as well. From expand.c in
/usr/src/bin/sh/
if (*p == '~' && (flag & (EXP_TILDE | EXP_VARTILDE)))
p = exptilde(p, flag);
So "~" is not functional in the original Bourne Shell?
-Jan
--
finger [EMAIL PROTECTED]
Please do not CC me when replying to messages on a Mailing List.
See Mail-Followup-To header (above) and
http://www.google.com/search?q=Mail-Followup-To+Header