elementary shell behavior: can kick off a foreground process and

handle signals
This commit is contained in:
Ava Apples Affine 2023-03-24 18:14:33 -07:00
parent 3b1ae0efd5
commit 99cb9e5a2e
Signed by: affine
GPG key ID: 3A4645B8CF806069
17 changed files with 619 additions and 167 deletions

View file

@ -206,13 +206,20 @@ fn process(document: &String) -> Result<Box<Seg>, String> {
}
/* Returns true if token
* - is all alphanumeric except dash and underscore
*
* - is all alphanumeric except dash, question, and underscore
* - equals is also allowed but only for shell command compatibility
* else returns false
*/
fn tok_is_symbol(token: &str) -> Option<String> {
for t in token.chars() {
if !t.is_alphanumeric() && t != '-' && t != '_' && t != '?' {
if !t.is_alphanumeric() &&
t != '-' &&
t != '_' &&
t != '?' &&
t != '=' &&
t != '.' &&
t != '/'
{
return None;
}
}