Skip to content
New issue

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

Implement fg n and %n? #2097

Open
nisbet-hubbard opened this issue Oct 20, 2024 · 3 comments
Open

Implement fg n and %n? #2097

nisbet-hubbard opened this issue Oct 20, 2024 · 3 comments

Comments

@nisbet-hubbard
Copy link
Contributor

Currently, the fg %n syntax has been implemented.

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

@nisbet-hubbard
Copy link
Contributor Author

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

@andychu
Copy link
Contributor

andychu commented Oct 28, 2024

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants