This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: "which" command does not expand "~" in path
- From: "Hannu E K Nevalainen" <_garbage_collector_ at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 27 Sep 2004 21:30:23 +0200
- Subject: RE: "which" command does not expand "~" in path
you wrote:
>>>> script). Igor --
>>>
>>> $ u="Hannu";sed -nre "s/^$u.*:(.*):.*$/\1/p" </etc/passwd
>
> This works only because "/" is not a valid variable name. :-p
Ehm.. ;-P - could that be called a lucky shot?
/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems --72-->
** mailing list preference; please keep replies on list **
-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/