|
From: | Charles Wilson |
Subject: | Re: win32 short name and IFS='~' |
Date: | Thu, 17 Apr 2003 18:04:30 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 |
Boehne, Robert wrote:
Chuck, Ok, let me get this out. "Hello, I'm Robert, and I've never used shell functions." Admitting it is the first step to recovery. ;) Seriously, I'm not familiar with what can be done with them, but if you can find a simple way to replace IFS with shell functions, let us all know!
Well, not in general, no, of course not. IFS separates words. Youkindaneedthatorthingsgetconfused.
But if we're doing this: my_cmd="do one thing~now do another thing~and then another" That can often be replaced by my_cmd="do_my_function" where myfunction() { do one thing do another thing and then another }Of course, like all structured programming, you need to pass in arguments and such...
see win32_libid() and its uses in the cygwin/mingw codepath. --Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |