Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-13 Thread John McKown
about POSIX sh scripts? > > This seems like a fairly big proposal for something I'm not even seeing > a definite argument as being actually wrong. > > -- > Eli Schwartz > Arch Linux Bug Wrangler and Trusted User > > -- People in sleeping bags are the soft tacos of the bear world. Maranatha! <>< John McKown

Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-12 Thread John McKown
of adding these alternatives? > I think this would need to go to the bash-dev list. Have you tried tcsh? I understand it tries to be C like. -- People in sleeping bags are the soft tacos of the bear world. Maranatha! <>< John McKown

Re: why not update bash syntax while maintaining backwards compatibility?

2019-02-15 Thread John McKown
; ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ > > -- I just burned 2000 calories! That's the last time I'll nap with brownies in the oven. Maranatha! <>< John McKown

Re: A background ssh can take over the tty from bash?

2017-06-10 Thread John McKown
.0.1 sleep & Try: ​ ssh -f -o ControlMaster=no -o ControlPath=/tmp/socket.tmp 127.0.0.1 sleep -- Windows. A funny name for a operating system that doesn't let you see anything. Maranatha! <>< John McKown

Re: RFE: Please allow unicode ID chars in identifiers

2017-06-04 Thread John McKown
On Sat, Jun 3, 2017 at 8:51 PM, L A Walsh wrote: > > > John McKown wrote: > >> On Sat, Jun 3, 2017 at 4:48 PM, L A Walsh > b...@tlinx.org>> wrote: >> ​ >> > > ​OK, I did a port of BASH to an IBM "mainframe" system (IBM z) which uses >&g

Re: RFE: Please allow unicode ID chars in identifiers

2017-06-03 Thread John McKown
back end work. There is another mid-range IBM system which also uses EBCDIC, but I don't know if it has a BASH port or not.​ -- Windows. A funny name for a operating system that doesn't let you see anything. Maranatha! <>< John McKown

Re: Interested in contributing to Bash

2017-05-23 Thread John McKown
On Tue, May 23, 2017 at 1:55 PM, John McKown wrote: > > > On Tue, May 23, 2017 at 1:39 PM, Chet Ramey wrote: > >> >> The best thing to read to learn about how the shell is structured -- other >> than the code itself -- is the unedited version of the chapter I wrote

Re: Interested in contributing to Bash

2017-05-23 Thread John McKown
``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~ > chet/ > > -- Windows. A funny name for a operating system that doesn't let you see anything. Maranatha! <>< John McKown

Re: Bash monopolizing or eating the RAM MEMORY

2017-03-20 Thread John McKown
00 U.S.; example (not recommendation): http://www.thinkmate.com/system/rax-xs4-1160v4​. Honestly: you need to change your algorithm for processing your problem. In your example, perhaps a series of nested loops. -- "Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'." -- Michael McClary, in alt.fusion Maranatha! <>< John McKown

Re: popd with garbage parameter removes entry from dirs but doesn't cd.

2017-03-07 Thread John McKown
ee Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. [tsh009@it-johnmckown-linux tmp]$ [/transcript] -- "Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'." -- Michael McClary, in alt.fusion Maranatha! <>< John McKown

Re: echo -n

2017-02-02 Thread John McKown
in, then you are doomed to disappointment. If you want a replacement for "echo -n", you might try using a function (defined in ~/.bashrc) similar to: function echo-n() { printf '%s ' "$@" | sed -r 's/ $//'; }​ > > Thanks & Regards > --Jyoti > > -- There’s no obfuscated Perl contest because it’s pointless. —Jeff Polk Maranatha! <>< John McKown

Re: echo -n

2017-02-02 Thread John McKown
another told me "echo is _evil_". You could use "printf" instead: $ printf '%s\n' '-n' -n -- There’s no obfuscated Perl contest because it’s pointless. —Jeff Polk Maranatha! <>< John McKown

Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread John McKown
pvs'? > > ​Probably a part of LVM (Logical Volume Manager), VS(8) System Manager's Manual PVS(8) NAME pvs — report information about physical volumes ​ -- There’s no obfuscated Perl contest because it’s pointless. —Jeff Polk Maranatha! <>< John McKown

Re: Could bash do what make does?

2016-12-03 Thread John McKown
provides, and send patches to add said > functionality to bash. > > [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html > [2] https://www.gnu.org/software/make/ > [3] http://lists.gnu.org/archive/html/bug-make/ > > -- Heisenberg may have been here. Unicode: http://xkcd.com/1726/ Maranatha! <>< John McKown

Re: Not operator (~) fail on arithmetic expansion.

2016-11-27 Thread John McKown
token is > "/home/user") > > > > Repeat-By: > > Use $((~0)) (without spaces) to generate the error. > -- Heisenberg may have been here. Unicode: http://xkcd.com/1726/ Maranatha! <>< John McKown

Re: [PATCH] Add-rm-rf-as-examples-loadables-rm.c

2016-10-31 Thread John McKown
e > by > 6-7%. > ​Am I understand you correctly? You say that it __increases__ overall execution time? That is, using rm as a builtin makes the script take more time to execute (slows it down)?​ > > Tim > -- Heisenberg may have been here. Unicode: http://xkcd.com/1726/ Maranatha! <>< John McKown

Re: bug in [ -f file ] test

2016-07-28 Thread John McKown
wrote: > > > > As far as I'm aware, the inability to use symlinks owned by another user > in a sticky directory is a security feature of some kernels. It helps to > prevent symlink attacks. > > > > -- Klein bottle for rent -- inquire within. Maranatha! <>< John McKown

Re: bash "while do echo" can't function correctly

2016-04-13 Thread John McKown
On Wed, Apr 13, 2016 at 6:45 AM, Pierre Gaston wrote: > > > On Wed, Apr 13, 2016 at 2:34 PM, John McKown > wrote: > >> On Wed, Apr 13, 2016 at 1:10 AM, Geir Hauge wrote: >> >> ​... >> >> >>> though printf should be preferred over echo: &

Re: bash "while do echo" can't function correctly

2016-04-13 Thread John McKown
ve used it myself in special cases, such as wanting leading zeros (i=0;printf '%03d\n' "${i}";) > > -- > Geir Hauge > > -- How many surrealists does it take to screw in a lightbulb? One to hold the griffon and one to fill the bathtub with brightly colored LEDs. Maranatha! <>< John McKown

Re: scripts one after the other

2016-03-26 Thread John McKown
section echo "Congratulations, you decided to continue on!" ​ -- How many surrealists does it take to screw in a lightbulb? One to hold the giraffe and one to fill the bathtub with brightly colored power tools. Maranatha! <>< John McKown

Re: Looking for tutorials

2016-03-18 Thread John McKown
ht you were "funnin" him. But this page looks like it _might_ be an interesting start: https://gist.github.com/sshaw/8017032 -- A fail-safe circuit will destroy others. -- Klipstein Maranatha! <>< John McKown

Re: [Help-bash] help

2016-03-06 Thread John McKown
that when I run t1.sh, you see it in the list as "/bin/bash ./t1.sh"​. But notice when I run t2, the PID is the same as the top /bin/bash and there is _no_ sign of "t2" itself. That's because the current BASH program is running the function "in line". So an "exit" in the function is like typing "exit" at the prompt and "the terminal goes away" > -- > A fail-safe circuit will destroy others. -- Klipstein > > Maranatha! <>< > John McKown > -- A fail-safe circuit will destroy others. -- Klipstein Maranatha! <>< John McKown

Re: How to lock a terminal

2016-02-15 Thread John McKown
r is expected or me being stupid, or > something else going on. > > Regards, > > Nick > -- > Gosh that takes me back... or is it forward? That's the trouble with > time travel, you never can tell." > -- Doctor Who "Androids of Tara" > > -- The man has the intellect of a lobotomized turtle. Maranatha! <>< John McKown

Re: Add a mirror to github

2016-02-15 Thread John McKown
man has the intellect of a lobotomized turtle. Maranatha! <>< John McKown

Re: combine and ..

2016-01-19 Thread John McKown
erner Heisenberg is driving down the autobahn. A police officer pulls him over. The officer says, "Excuse me, sir, do you know how fast you were going?" "No," replies Dr. Heisenberg, "but I know where I am." Computer Science is the only discipline in which we view adding a new wing to a building as being maintenance -- Jim Horning Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. He's about as useful as a wax frying pan. Maranatha! <>< John McKown

Re: Uniq pattern

2015-12-31 Thread John McKown
ntenance -- Jim Horning Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: count

2015-12-21 Thread John McKown
hich we view adding a new wing to a building as being maintenance -- Jim Horning Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: count

2015-12-21 Thread John McKown
5 at 8:31 AM, Greg Wooledge wrote: > On Mon, Dec 21, 2015 at 08:21:04AM -0600, John McKown wrote: > > find . -maxdepth 2 -mindepth 2 -type f -name '*.csv' -o -name '*.txt' |\ > > egrep '^\./[0-9]' |\ > > xargs awk 'ENDFILE {print FILENAME &q

Re: Only one Friday 13th coming in 2016

2015-12-21 Thread John McKown
ing Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: count

2015-12-21 Thread John McKown
in the APL language as my has [grin].​ Hum, SQL set logic might cause similar "damage". -- Computer Science is the only discipline in which we view adding a new wing to a building as being maintenance -- Jim Horning Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: count

2015-12-21 Thread John McKown
ont of the pattern to "anchor" it at the start of the line created by "find". OK, it probably would have run correctly without it, but I'm a bit anal about such things. On Mon, Dec 21, 2015 at 7:45 AM, John McKown wrote: > Sorry about delay, for some reason Google pu

Re: count

2015-12-21 Thread John McKown
ext: > http://gnu-bash.2382.n7.nabble.com/count-tp16675p16683.html > Sent from the Gnu - Bash mailing list archive at Nabble.com. > > -- Computer Science is the only discipline in which we view adding a new wing to a building as being maintenance -- Jim Horning Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: count

2015-12-19 Thread John McKown
to the order you wanted it to be in. -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: [PATCH/RFC] do not source/exec scripts on noexec mount points

2015-12-16 Thread John McKown
store is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: rewriting a readonly var should exit

2015-12-15 Thread John McKown
Domain Name Registrar >\o/ Hosting For Geeks and more... > Gandi.net No Bullshit ! > > -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: [PATCH/RFC] do not source/exec scripts on noexec mount points

2015-12-12 Thread John McKown
here at home.​ -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: bash closes fd twice.

2015-12-11 Thread John McKown
= ? +++ exited with 0 +++ ​ -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Why does a Bash shell script write prompts followed by reads and do it right?

2015-08-31 Thread John McKown
d Al. Great guys to look up to. > -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Please take a look at this bug

2015-08-23 Thread John McKown
echo -n "${x}" > sample.first #put it in file echo -n "${x}" > sample.second # do it again } ​I'm really not sure if the -n switch is the right thing to do on the "echo" commands or not​ -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Integer Overflow in braces

2015-08-18 Thread John McKown
n of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread John McKown
ondition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Sourcing a file ending in \ disables aliases for 1 command

2015-04-03 Thread John McKown
ocumented that aliases are not expanded when quoted. -- If you sent twitter messages while exploring, are you on a textpedition? He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Incomplete 'command not found' error message if command name contains spaces

2015-03-31 Thread John McKown
t; > Expected: > > $ "a nonexistent command name with spaces" > bash: a nonexistent command name with spaces: command not found... > -- If you sent twitter messages while exploring, are you on a textpedition? He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Strange file -i

2015-03-04 Thread John McKown
ot; (at least to me) files. > > > -- > Eric Blake eblake redhat com+1-919-301-3266 > Libvirt virtualization library http://libvirt.org > -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: BUG: echo call function

2015-03-04 Thread John McKown
could see the top command. > Thousands of bash were being opened, I would report this bug. > > One question, I tried to fix myself but I did not really bash the error > files. > > In this case how it could contribute? > > Thank U -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: BUG: echo call function

2015-03-04 Thread John McKown
ontribute? > > Thank U -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: Is this a design oversight? BASH redirection failure

2015-02-24 Thread John McKown
On Tue, Feb 24, 2015 at 2:10 PM, Chet Ramey wrote: > On 2/24/15 1:32 PM, John McKown wrote: > > I run with "set -o noclobber". I know to use >| to redirect stdout and > > overwrite an existing file. But I often want to redirect both stdout > > and stderr to

Fwd: Is this a design oversight? BASH redirection failure

2015-02-24 Thread John McKown
PLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Yes, I'm a lazy typist. :-) -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Is this a design oversight? BASH redirection failure

2015-02-24 Thread John McKown
PLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Yes, I'm a lazy typist. :-) -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown