Release candidate 2: /etc/hosts
Paul Johnston
paj@pajhome.org.uk
Fri Sep 13 05:58:00 GMT 2002
Hi,
> > 1) the '-l' option of cygpath works in the cvs HEAD, and
> > 2) it does exactly what we need (thanks, Corinna).
Cool... I've just modified your code to correct case on $WINETC before we do the
directory check. This has the side-effect of catching the cygpath bug without
creating any links.
As for the script name, given the scope of /etc/postinstall I think it should
contain the package name. Someone suggested mketc.sh and that's fairly
consistent with the old-skool MKDEV script. So I think it should be called
cygwin-mketc.sh.
How come your script works when cygpath is called inside $(...) but not
backticks?
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-mketc.sh
Type: application/x-sh
Size: 905 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020913/7509b64f/attachment.sh>
-------------- next part --------------
19a20
> WINETC="$(/bin/cygpath -u "$(/bin/cygpath -w -l "$WINETC")")"
22a24
> echo "If directory name is garbage, update cygpath to 1.22 or later" >&2
32c34
< WFILE="$(cygpath -u "$(cygpath -w -l "$WFILE")")"
---
> WFILE="$(/bin/cygpath -u "$(/bin/cygpath -w -l "$WFILE")")"
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list