Martin:
> In variables.c at line 6243 we have
> eof_encountered_limit = (*temp && all_digits (temp)) ? atoi (temp) : 10;
>
> Presumably in your build of Bash, as in mine, `int` is
> 32-bit, so the maximum value convertible by atoi would
> be 2147483647. Larger values are returned modulo
> 4294
Sorry, my earlier description was a bit unclear—my apologies.
I accidentally left out the ‘$’ before INT_MAX when copying it over, but I did
include the ‘$’ in my actual testing.
As for `IGNOREEOF=127`, I expected it to let me press C-d over a hundred times
without exiting bash, and in my testin
```
INT_MAX=`echo \`printf '%u' -1\`/2 | bc`
IGNOREEOF=INT_MAX
# Then I typed C-d, bash exited...
```
```
IGNOREEOF=127
# C-d, C-d, C-d, ...
```
Why doesn’t the first piece of code work as expected?
In Bash, what exactly is the INT_MAX that I can safely use anywhere?
--
shynur
type:
IGNOREEOF=INT_MAX
should be
IGNOREEOF=$INT_MAX
(Doesn't impact the conclusion.)
> Do these editors have an option that sets the language for syntax
> checking?
I don't know. I usually use Emacs, so I'm only familiar with Emacs.
For Emacs, yes, and I've already submitted a patch to address this
issue to the Emacs mailing list. But clearly, not all editors are
as highly custo
Oğuz:
>
> shynur:
> >
> > Oğuz:
> > >
> > > shynur:
> > > >
> > > > "bash-fc.Esf9by", which seldom benefits from editors
> > > > that use *suffixes* to infer what syntax highlighting
> > > > should b
- When Emacs opens a file named "bash-fc.NN.bash",
it'll enable sh-mode automatically, and even start
a LSP server for Bash if configured properly.
- VS Code behaves similarly.
If you've never used a code editor with automatic syntax
highlighting, give them a try.
`fc` will create a temporary file named something
like "bash-fc.Esf9by", which seldom benefits from
editors that use *suffixes* to infer what syntax
highlighting should be enabled.
(This improvement may not only apply to `fc`.)
--
shynur
x27;...
Can anyone give me a practical example? Thanks in advance!
--
shynur
> ... but that would increase the "build toolset" that
> everyone would have to install ...
This doesn't make much sense unless every other program
is built the same way. (A stark counterexample is Emacs.)
IOW, that wouldn't increase the "build toolset" much
because there probably be
king it much harder for
future maintainers to understand and manage the repository.
--
shynur
Should Use Straight Single Quote instead of Curved
View this page
in browser:
> Character sequences of the form $’string’ are treated as a special
> kind of single quotes.
should be
> Character sequences of the form $'string' are treated as a special
> kind of single quotes.
--
shynur
12 matches
Mail list logo