NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/58687: sh: implement suspend builtin



The following reply was made to PR bin/58687; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/58687: sh: implement suspend builtin
Date: Tue, 24 Sep 2024 00:15:49 +0700

     Date:        Sun, 22 Sep 2024 21:00:03 +0000 (UTC)
     From:        "Valery Ushakov via gnats" <gnats-admin%NetBSD.org@localhost>
     Message-ID:  <20240922210003.5EF691A923E%mollari.NetBSD.org@localhost>
 
   |  Plus a builtin may add extra safety features, like not suspending a
   |  login shell, etc...
 
 I'll think about it...
 
   |  That's another pet peeve of mine :), shell doesn't tab-complete
   |  functions (and/or aliases) in the initial position.
 
 Anyone who wants that is going to need to write the code themselves,
 I detest tabcomplete (for any use).   That one would mostly need at
 the very least, interaction with libedit (which is where that support,
 such as it is, exists) with some kind of callback to sh to generate the
 list of possibilities (which may mean extending libedit), I don't know.
 
   |  But one can always do
   |      z() suspend
 
 Yes, I know, I do that for bash (except using the correct function
 definition syntax, rather than sh's  shorthand, which bash doesn't support)
 
 kre
 
 ps: no-one should be expecting suspend "out of the box" in /bin/sh,
 suspend isn't a posix utility, so there's no reason to expect it anywhere.
 
 


Home | Main Index | Thread Index | Old Index