Need help with csh syntax

Pavel Roskin proski at gnu.org
Fri Nov 1 18:26:12 UTC 2002


Hello!

> Oops. My mistake. You said:
> 
> > > 3. Make mc.sh a wrapper script instead?
> > >    Then you could use  alias mc=/usr/lib/mc/bin/mc.sh or whatever.
> > 
> > I agree.  That's what I meant.  Perhaps I was unclear.

I was not just unclear, I was wrong.  I meant something like this:

alias mc='. /usr/share/mc/bin/mc-wrapper.sh'

and mc-wrapper.sh would do everything else.  Sourcing the script is
essential.  I didn't notice that your example didn't have that little
detail.

Unfortunately, I don't see enough interest to this feature (setting the
last directory on exit).  Asking for help resulted in just one reply so
far, and it wasn't exactly helpful.  This feature seems to be more a
maintenance burden than a useful asset.  I cannot believe that there is 
nobody subscribed to this list who doesn't know csh syntax.

After a long consideration I decided to implement wrappers.  It adds some
complexity, but makes it possible to write bigger, safer scripts without
stuffing them into the shell memory in the form of an alias or a function.  
The new code is now on CVS, the snapshot will be generated shortly.

If there will be problem reports about the new scheme and nobody
volunteers to help, I'll remove -P altogether.  If nobody cares enough
about a feature to answer simple questions in the mailing list, then that
feature should not be wasting time of the present and future maintainers.

-- 
Regards,
Pavel Roskin




More information about the mc-devel mailing list