$ echo '~'
~
In the bash source, tilde-escaping code already exists, but it is
commented out. How about turning this back on? Or am I just
misunderstanding what %q should do?
Have a nice day
-Jens Stimpfle
- From lib/sh/shquote.c --
char *
sh_backslash_quo
Hi, please Cc: me as I'm not subscribed.
When I abort a bash prompt using Ctrl-c, the $? variable is set to 130
just as if a job had been aborted. To illustrate, some terminal
contents:
jfs@knirps:~$ echo Hello
Hello
jfs@knirps:~$ echo $?
0
jfs@knirps:~$ echo H^C
jfs@knirps:~$ echo $?
130
jfs@kni
On Wed, Jun 04, 2014 at 01:34:22PM -0600, Eric Blake wrote:
> On 06/04/2014 01:28 PM, Dennis Williamson wrote:
> >> My feeling is that aborting a prompt should not change the $? variable.
>
> I agree that it is annoying behavior that Ctrl-C changes $?, but at
> least we're in good company, since k
On Wed, Jun 04, 2014 at 05:40:10PM -0700, Ryan Cunningham wrote:
> According to Dennis's e-mail, this is normal behavior, not a bug. Do not
> attempt to fix it.
That email only calculates 130 = 128 + SIGINT which I had already
figured out.
There was no argument that setting $? on prompt abort wa