oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.85k stars 159 forks source link

Implement `fg n` and `%n`? #2097

Open nisbet-hubbard opened 1 month ago

nisbet-hubbard commented 1 month ago

Currently, the fg %n syntax has been implemented.

Bash has fg n (undocumented) and %n (ie omitting fg) as shorthands.

nisbet-hubbard commented 3 weeks ago

According to Chet Ramey, the syntax fg n is ‘wrong or deprecated. But it's been that way forever.’

andychu commented 3 weeks ago

This one is probably borderline too -- bash compatibility is generally motivated by making programs run, right now

https://github.com/oils-for-unix/oils/wiki/Shell-Programs-That-Run-Under-OSH

nisbet-hubbard commented 2 weeks ago

Agreed. %n is very nice to have on the command line, but I doubt it's ever useful in scripts.