Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!nsc!taux01!tasu77!crehta From: crehta@tasu77.UUCP (Ran Ever-Hadani) Newsgroups: comp.mail.mush Subject: Re: More on zfolder Message-ID: <3527@taux01.UUCP> Date: 14 Mar 90 15:51:06 GMT References: <132814@sun.Eng.Sun.COM> <7890@ogicse.ogi.edu> <3511@taux01.UUCP> <7906@ogicse.ogi.edu> <3524@taux01.UUCP> <7960@ogicse.ogi.edu> Sender: netnews@taux01.UUCP Reply-To: crehta@taux01.nsc.com (Ran Ever-Hadani) Organization: National Semiconductor (IC) Ltd, Israel Lines: 38 In article <7960@ogicse.ogi.edu> schaefer@ogicse.ogi.edu (Barton E. Schaefer) writes: >In article <3524@taux01.UUCP> crehta@taux01.nsc.com (Ran Ever-Hadani) writes: >} >} My problem: 'zfo' does not recognise '+' (as in 'zfo +comp_folder'). >I quote from the zfolder script: ># Bug: can't handle names beginning with + or ~ ># (use file completion: zfo +^[name where ^[ is escape) Sorry, I missed that. Anyway, this does not work for me for some reason. >} The cause should be easy to find and fix, but I don't have the time >} to play with it. So for the time being I do 'cd $folder' and continue >} without the '+'. >If it were easy to find and fix, believe me, I would have. It isn't a >question of "finding" -- the problem is that the shell, which must be >used to run compress/uncompress with I/O redirected to or from the target >folder, does not understand "+" as a file metachar. Without invoking >and additional process, say `echo +name | sed s/+/$folder/` (which fails >if $folder isn't set) there is no way for zfolder to use "+". I am most grateful to the people who wrote and maintain mush. Still, I don't see why invoking an additional process, after checking whether $folder exists, constitutes a problem. Better yet, I think it might be a good idea to add some mechanism to mush, allowing the user to convert the string +something to $folder/something. People may want to do extra-mush stuff other than zfolder with folders. -- Ran ----------------------------------------------- Reply-To: crehta@taux01.nsc.com (Ran Ever-Hadani) Disclaimer: The above is to be attributed to me only, not to any organization. Apology: Bad English. E-mailed spelling and style corrections are welcome.