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
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
uff" on my tablet, not my PC
(which is where I read most of my email - can't stand email on tablet).
On Sun, Dec 20, 2015 at 8:12 PM, Krem wrote:
>
> John,
>
> After trail and error the following works for me but still has to be
> refined.
>
> find . -type f
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
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
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
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
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
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
;INSERT INTO file1 VALUES(\"" $1 "\"," $2 "," $3 ");"} '
file1.txt
awk 'NR > 1 {print "INSERT INTO file2 VALUES(\"" $1 "\"," $2 "," $3 ");"} '
file2.txt
cat < wrote:
>
>
&g
man has the intellect of a lobotomized turtle.
Maranatha! <><
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
Please reply to the list and not just me. There are a lot of helpful people
out there. Perhaps a "reply all"?
On Sun, Mar 6, 2016 at 5:26 PM, Val Krem wrote:
> Hi John,
> Thank you very much!
> I chose to put it as a function in my .bashrc.
> what happened is that
>
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
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
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
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:
&
Hi,
I came across some unusual behaviour in bash using the '-c' parameter.
If I do the following:
bash -c "ping 127.0.0.1 > $HOME/console.log" &
This starts two processes bash and ping:
john 18038 17951 0 09:26 pts/14 00:00:00 bash -c ping 127.0.0.1 >
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
F_VENDOR='apple'
-DLOCALEDIR='/usr/local/Cellar/bash/4.3.42/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -DMACOSX -I. -I. -I./include -I./lib
-I./lib/intl -I/private/tmp/bash20150913-75517-1rfmxak/bash-4.3/lib/intl
-DSSH_SOURCE_BASHRC
uname output: Darwin
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
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
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
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
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
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
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
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
``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
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
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
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
.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
ate: "The convert-meta variable has no
effect if input-meta is off." From the manpage I would think so, but
I'm just not confident. I also can't tell conclusively whether the
output-meta variable is affected by convert-meta, or vice-versa.
Thanks for your time,
John Devin
Hey Chet,
Thanks for getting back so fast. Just a couple points to make.
On Thu, Sep 12, 2024 at 4:38 PM Chet Ramey wrote:
>
> On 9/11/24 3:19 PM, John Devin wrote:
> > While hunting down some problems on a terminal, I ran across the
> > option 'prefer-visible-bell
On line 3987 of bash.1 (here:
https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.1#n3987),
`The\fBextglob\fP` is missing a space between 'The' and 'extglob'.
I'm not sure how small typos have to be before they're not worth an
email, so if this is, let me know.
- John Devin
27;s not documented?
>
I think I can answer 'yes' to that, even if I can't quote any one post
as saying "This isn't documented in the manpage." These two users
(https://superuser.com/a/1620055) seem to have had some trouble, to
the point that they had the right answer first and "un-corrected" it
(see the edit history) to the wrong one: "I could have swore it used
to be different, but so goes my memory!" - user at that link. Again
though, kind of moot, if it's being removed so not much to discuss
there.
- John Devin
, and documentation.
I would like to collect those files into a VMS specific directory, and
would like to know where to put that directory in the current tree for
when the port is complete and I can start submitting patches.
The work is being based on the 4.2 release + patches.
Regards,
-John
In the bash 4.2 source:
jobs.c is not checking HAVE_SYS_PARAM_H.
This prevents it from compiling on VMS which does not supply this header.
Regards,
-John
wb8tyw@qsl.network
Personal Opinion Only
$ diff -ub a/jobs.c b/jobs.c
--- a/jobs.c 2011-09-26 22:28:17.0 -0500
+++ b/jobs.c
I posted this to the gmane.comp.shells.bash.bugs newsgroup two days ago,
but have not seen any response.
Are postings to there by non-subscribers not making to the mailing list?
On 10/10/2011 10:44 PM, John E. Malmberg wrote:
In the bash 4.2 source:
jobs.c is not checking HAVE_SYS_PARAM_H
The lib/glob/ndir.h file has some VMS specific code in it.
That header file is not used by VMS in building bash.
Even if it where to be used, the code is out of date and would not work
on current versions of VMS.
I recommend removing the VMS specific code from that file.
Regards,
-John
.
Regards,
-John
On 5/29/2012 7:12 AM, Chet Ramey wrote:
On 5/28/12 11:32 AM, John E. Malmberg wrote:
https://bugzilla.redhat.com/show_bug.cgi?id=825751
bash-4.2.24-1.fc16.i686
Please take a look at
http://git.savannah.gnu.org/cgit/bash.git/log/?h=direxpand
and see if that behaves the way you like.
Thanks
On 6/4/2012 8:05 AM, Chet Ramey wrote:
On 6/2/12 7:51 PM, John Malmberg wrote:
The lib/sh/mktime.c module has a VMS specific include of to
pick up time_t.
No, it doesn't. VMS systems include.
I see I read it wrong.
On VMS, the time_t type is defined in the module.
So this VMS spe
together.
Regards,
-John
inal patch will still result in a compiler diagnostic about
an unused variable.
So that would need an #if defined (JOBCONTROL) needed around the
declaration.
So what should be the correct patch? Is there another bug hiding in this?
Regards,
-John
wb8tyw@qsl.network
Personal Opinion Only
HLEN appears to be a duplicate for the macros PATH_MAX and
FILENAME_MAX that are defined in other standard headers.
So does anyone know of a link to a reference standard about what should
be in the sys/param.h file.
Regards,
-John
wb8tyw@qsl.network
Personal Opinion Only
de to make this happen.
Glob and readir() only report the foo.exe case, not the foo. I have not
yet found anything that actually cares so far though.
On VMS the hack in the past has been to install a hard link to "foo"
from foo.exe.
Regards,
-John
wb8tyw@qsl.network
Personal Opinion Only
n 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.
GNV-3.0-1-JEM-1 Nov 23 2012 09:17:12
Regards,
-John
wb8tyw@qsl.network
Personal Opinion Only
is that the
VAX/VMS filesystem does not support some of the file names as-is in the
GNU source tree, so some special case code will be need in the Bash.mms
(VMS makefile equivalent).
Regards,
-John
wb8...@qsl.net
Personal Opinion Only
On 12/20/2012 9:36 AM, Chet Ramey wrote:
On 12/16/12 10:51 AM, John E. Malmberg wrote:
For those that want to look at the source, you can examine or check out the
OpenVMS specific changes in the http://gnv.cvs.sourceforge.net/gnv/ cvs
tree from the gnu_vms/bash tree with the cvs tag gnv-bash
directory and consists of both additional
code and VMS specific editing scripts to modify the official bash code.
Regards,
-John
0" [1]="11" [2]="14" [3]="18" [4]="19" [5]="20" [6]="27"
[7]="35" [8]="80" [9]="85" [10]="100" [11]="250" [12]="995" [13]="996"
[14]="10" [15]="1003" [16]="1013")
~ $ # Hmm again. Now shown correctly.
~ $ exit
exit
So far the Bash source code is a somewhat abstruse to me so I thought I'd ask
for a little help.
Thanks in advance.
- John
On 01/11/2014 04:55 PM, Chet Ramey wrote:
On 1/10/14, 6:06 PM, John R. Graham wrote:
Some of the automagically created special array variables (GROUPS and DIRSTACK
for soer; perhaps others) appear to not be fully initialized. Their values
don't appear correctly in some corner cases
On 01/11/2014 06:18 PM, Chet Ramey wrote:
You don't want the value generated in all cases. This has an effect on
some variables: RANDOM, for example. I believe the current behavior is
preferable.
I guess I don't understand why returning stale values for the dynamic variables
under any circum
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b
Thank you for your reply.
I removed the quotes and the script crashes. There must be more
required to convert my code and I hope someone will help. It is
only 1 line, and once I know the new rules I can convert everything
else on my own. I get this when just removing teh quotes on the
right ha
1.tgz =~
\([^-]+\)-\([^-]+\)-\([^-]+\)-0*\([1-9][0-9]*\)\.tgz ]]
set | grep BASH_REMATCH
On Thu, 12 Oct 2006, Andreas Schwab wrote:
John Gatewood Ham <[EMAIL PROTECTED]> writes:
Thank you for your reply.
I removed the quotes and the script crashes. There must be more
required to conv
Ok, so at least I'm not crazy; there is some kind of bug.
When you have a patch I'm eager to help test it.
Thank you,
JGH
On Thu, 12 Oct 2006, Chet Ramey wrote:
Ok, here is a smaller 3 line test case. I have attempted to handle
the parenthesis as you instructed. Under bash 3.0.17 BASH_REMAT
I have attached an example program that can deal with
the different regex parsing in 3.0.x vs. 3.1.x and
regex sub-expressions. I have tested with
3.1.17 and 3.2.3 successfully. Since creating a
script that actually worked with both bash versions
took me a while, I suspect other people might wan
You can do this without external programs or pipes.
See the attachment.
JGH
On Mon, 6 Nov 2006, Dan Jacobson wrote:
Regarding the
${parameter/pattern/string}
${parameter//pattern/string}
discussion on the man page:
You don't mention what if pattern is null.
Seems that will never ma
attempting to configure source for compiling. So
far, any UNIX and Linux packages act the same; the above error.
Fix:
attempting to revert bash versions is not working; the
older program will not download from openSuSE update sites.
Shalom,
John B. Brown.
[EMAIL PROT
Dear Bob,
Thank you for that reminder of my mortality.
Bob Proulx wrote:
John B. Brown wrote:
Description: Attempting to run 'configure', or any shell
script with #! /bin/sh, results in the error message:
"bash: ./configure: /usr/bin/bash: bad interpreter:
Permiss
Dear Bob,
Thank you for your answers.
Bob Proulx wrote:
John B. Brown wrote:
Thank you for that reminder of my mortality.
:-)
Bob Proulx wrote:
Also, /usr/bin/bash is not a normal location for bash. Normally bash
would reside in /bin/bash . Perhaps you also have one
"; fi
This does not match either (more like the line in my broken shell
script)
xp=310; if [[ $xp =~ "[0-9][0-9]*" ]]; then echo "$xp matched"; else
echo "$xp not matched"; fi
This message was generated with openeSUSE 11.0 Linux and sent with
Thunderbird.
Best regards - John E. Wulff
this will probably be considered a non-bug (because the same behavior
exists in bash, ksh, pdksh, irix, and gnu coreutils!) but i'ld at least
like to hear an explanation if possible.
-e file exists test fails if file is a dangling symlink, this to me does
not seem like the correct behavior, the te
baz'
But
$ ls foo\[\]/
Expands to 'foo[]//' and does not list 'baz' or the directory contents.
I had a knowledgeable person in #bash (freenode) confirm this bug and they
said it happens in the development branch as well.
It does work correctly in bash 4.4.12.
Thanks,
John Van Sickle
e not current.
Regards,
-John
wb8tyw@qsl.network
ld probably be more clear.
No need to return a pointer to a static empty string.
Regards,
-John
wb8tyw@qsl.network
*, char *, int));
SHELL_VAR is a struct declared in variables.h.
So passing it const char * should be causing problems.
Regards,
-John
27;\0';
This would cause sample[-2] to be set to 0. Most likely it would set
part of fd to 0, but all that depends on the compiler.
Since fd is not in use at this point, the under run would not be noticed.
Regards,
-John
Thanks, Greg!!!
On Friday, March 7, 2025 at 01:19:28 PM EST, Greg Wooledge
wrote:
On Fri, Mar 07, 2025 at 17:23:57 +, John Wiersba via Bug reports for the
GNU Bourne Again SHell wrote:
> - Is our conversation being recorded somewhere in the gnu archives, so
>that I can l
at
https://unix.stackexchange.com/questions/306940/what-is-the-purpose-of-the-do-keyword-in-bash-for-loops/306944#306944
Thanks!-- John Wiersba
constructs?
- Is our conversation being recorded somewhere in the gnu archives, so that
I can link to it in my stackoverflow question? Otherwise, I'll just clip
quotes from it to paste there.
-- John
On Friday, March 7, 2025 at 12:03:18 PM EST, Chet Ramey
wrote:
On 3/7/25 9:23 A
be documented here
would serve both aims?
-- John
On Monday, March 10, 2025 at 09:23:08 AM EDT, Chet Ramey
wrote:
On 3/7/25 12:23 PM, John Wiersba wrote:
> You're discouraging it's use by not documenting it. BTW, according to
> those links below, apparently zsh documen
On Monday, March 10, 2025 at 12:38:38 PM EDT, Zachary Santer
wrote:
> Another alternative would be for bash to print a warning whenever it
> encounters this syntax.
There are precedents for this kind of behavior in languages like perl which
issue warnings
for deprecated features for several rel
middle ground between the two concerns.
I understand that, ultimately, you have to chose the solution that you feel is
the best balance overall.
Thanks for your maintenance of a critical piece of modern infrastructure!
-- John
On Monday, March 10, 2025 at 09:51:44 AM EDT, Chet Ramey
wrote:
201 - 278 of 278 matches
Mail list logo