We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sh/bash has a number of different styles, and Oil implements many of them:
PS1
PS4
compgen -W
PROMPT_COMMAND
trap
strict_trap_builtin
compgen -C
command_not_found
This is inconsistent, so
eval $PROMPT_COMMAND
Note: sometimes we will need "out params", e.g. completion plugins set COMPREPLY=()
COMPREPLY=()
In Oil, this might be setref comp_reply = @(...). Or you can get a legacy -n param and just assign to it.
setref comp_reply = @(...)
-n
EXIT
DEBUG
bind -x
ble.sh
$PROMPT_COMMAND
The text was updated successfully, but these errors were encountered:
This is a pretty ambitious, long term issue... but I take suggestions / proposals / patches based on real usage.
Sorry, something went wrong.
No branches or pull requests
sh/bash has a number of different styles, and Oil implements many of them:
PS1
for the prompt (Provide a prompt hook in bin/ysh #498), andPS4
for tracing (Better tracing for Oil #583)compgen -W
lets you provide a wordPROMPT_COMMAND
-- not a word!trap
(strict_trap_builtin
is supposed to restricted this to a function name instead of a code string)compgen -C
is an external commandcommand_not_found
-- a function invoked interactively, that Debian uses (not implemented in Oil yet)This is inconsistent, so
Oil should provide Functions instead
eval $PROMPT_COMMAND
Note: sometimes we will need "out params", e.g. completion plugins set
COMPREPLY=()
In Oil, this might be
setref comp_reply = @(...)
. Or you can get a legacy-n
param and just assign to it.Use Cases
EXIT
,DEBUG
, tracing; interactive commands that aren't found; completionbind -x
does. See Provide APIs to allow users to write their own line editor / interactive interface #663 andble.sh
$PROMPT_COMMAND
isabused for. history should be customizable by the end user (HN thread summary) #320 and history should not behave like a "two-level store" #324
The text was updated successfully, but these errors were encountered: