Re: [PATCH] make 'set +o' useful and POSIX compatible

2020-05-16 Thread Thorsten Glaser
Hi Martijn, >>> We're at R56 now but nothing seems to have changed here. Status? >> >> It’s on the TODO. > > Here's another attempt at a patch. Note that this version checks for OFF(i) != > OF_CMDLINE to exclude immutable command line-only options (interactive, login, > restricted, stdin). I’ve e

Re: [PATCH] make 'set +o' useful and POSIX compatible

2019-06-25 Thread Martijn Dekker
Op 27-09-17 om 03:48 schreef Thorsten Glaser: Martijn Dekker dixit: I’ll put the issue on my TODO only, for now, but thanks anyway. We're at R56 now but nothing seems to have changed here. Status? It’s on the TODO. Here's another attempt at a patch. Note that this version checks for OFF(

Re: [PATCH] make 'set +o' useful and POSIX compatible

2017-09-26 Thread Thorsten Glaser
Martijn Dekker dixit: >> I’ll put the issue on my TODO only, for now, but thanks anyway. > >We're at R56 now but nothing seems to have changed here. Status? It’s on the TODO. bye, //mirabilos -- 11:56⎜«liwakura:#!/bin/mksh» also, i wanted to add mksh to my own distro │ i was disappointed that t

Re: [PATCH] make 'set +o' useful and POSIX compatible

2016-03-01 Thread Thorsten Glaser
Martijn Dekker dixit: >Martijn Dekker schreef op 27-02-16 om 04:44: >> That means it should be possible to do >> >> save_options=$(set +o) No, the rationale says something about dotfiles. so probably: set +o >tempfile . ./tempfile >Hmm. "-o interactive" is killing that wit

Re: [PATCH] make 'set +o' useful and POSIX compatible

2016-02-27 Thread Martijn Dekker
Martijn Dekker schreef op 27-02-16 om 04:44: > That means it should be possible to do > > save_options=$(set +o) > > then change some options, then later restore the shell options with > > eval "$save_options" Hmm. "-o interactive" is killing that with an "interactive: bad optio

[PATCH] make 'set +o' useful and POSIX compatible

2016-02-26 Thread Martijn Dekker
The command 'set -o' shows the current shell options in an unspecified format. Less well-known is the variant 'set +o', which should output the current shell options "in a format that is suitable for reinput to the shell as commands that achieve the same options settings".[*] That means it should