Andreas Schwab wrote:
Bob Proulx writes:
Neither of those produce any output.
$ printf '%d\n'
0
Since the command substitution is not quoted the result of the expansion
is subject to field splitting, thus expands to nothing at all instead of
a single empty argument.
Ah, yes
Peng Yu wrote:
I have some filenames that have the character ^J. I can not figure out
a way to input such a character. Does anybody know if it is possible
to input ^J?
Several ways. One is you can quote the characters verbatim with C-v
before the character. As in C-v C-j. (A.K.A. ^v ^j) But
Greg Wooledge wrote:
Bob Proulx wrote:
P.S. In the old days mixing sleep(3) and SIGALRM was frowned upon. ...
But this is bash, so you're using sleep(1) not sleep(3).
Actually on GNU systems it is the coreutils sleep(1) and not related
to bash at all. :-)
In other words, the sleep 5
Chet Ramey wrote:
Andreas Schwab wrote:
Clark J. Wang writes:
It does not work as I expected. The running script was not
terminated after 5 seconds. So what's wrong here?
The shell is waiting for foreground process (sleep) to finish. During
this time no other process will be
Peng Yu wrote:
I use bash --noprofile to start a bash session. Since this doesn't
source any profile files, I'd think that no environment variable
should be set. But I still see environment variables set. Are they
inherit from the parent session. Is there a way to start a bash
session without
Mike Frysinger wrote:
Bob Proulx wrote:
$ env -i HOME=$HOME PATH=$PATH env | wc -l
since the args are being passed on the command line and the shell
itself isnt evaluating it, you'll want to make sure to quote them if
you have spaces:
$ env -i HOME=$HOME PATH=$PATH env | wc -l
Oh, good
Matthew Woehlke wrote:
How should bash interpret escapes in constructs like `...`?
The quoting rules for backticks are complex enough that the entire
construct has long been replaced with a completely different one. I
strongly suggest that instead of struggling to get the backtick syntax
quoted
Matthew Woehlke wrote:
True, but... not really relevant. The original question deals with how
kate should highlight this, ergo we need to know if the current behavior
is intended. Using a syntax that doesn't confuse kate is a workaround,
not a fix. (Also, if you'd read the bug report,
Peng Yu wrote:
ls -go gives me permission and file sizes. But I only want to show
time and file names. Would you please let me know what command to use?
Since this has nothing to do with bash it is off topic for the
bug-bash list. In the future think about sending general help
questions to the
fpo wrote:
Well, I am not sure it is a bug. I just tried this after reading the
manual page and the exec built-in command. I was expecting to have the
iconv command be called on the standard output of the shell script.
Thank you for the report. But this is not a bug. You are
Pierre Gaston wrote:
Peng Yu wrote:
Suppose that I have a symbolic link link1 pointing to file1. When I
write to link1, I don't want file1 change. I want it to remove the
link generated a new file and write to it.
pipe '' will change file 1. I'm wondering if there is way to do so,
so
Peng Yu wrote:
Is there a way to overload operators like '' and '' in bash, just
as overloading in C++, etc. Suppose I have already made some bash
program using '' and '' without thinking about symbolic link, but I
begin aware of them later. I would be cumbersome to add a test
statement and
Chuck Remes wrote:
Some scripts like rvm (rvm.beginrescueend.com) need to run at the
tail end of the login process to tack on more data to PATH or set
other environment variables (think of it as a post-login
hook). These kinds of scripts fail to execute with the code above.
Thank you for the
Chuck Remes wrote:
The standard .bashrc contains a line of code that precludes certain
scripts from executing. It has to do with the logic for checking if
the session is interactive.
e.g.
[ -z $PS1 ] return
Usually a few other lines are included afterward to, for example,
alias 'ls' and
Peng Yu wrote:
I'm wondering how to start bash without inheriting any environment
variables and user level profiles (such as .bash_profile). Would you
please let me know what option to use?
At login time only a bare minimum of environment variables exist. It
is already almost a minimal set.
Eric Blake wrote:
Clark J. Wang wrote:
In C code I can use lockf(), flock(), semaphore and mutex for locking /
unlocking. Can bash provide some similar mechanisms?
man 1 flock
If necessary, you may need to install:
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/
There is also
Clark J. Wang wrote:
Bob Proulx wrote:
There is also 'lockfile' distributed with 'procmail'.
By using `lockfile' we must make sure that our script will not crash and
the file is unlocked when the script exits.
True. That is true of any of the file based locking methods. And
advantage
Greg Wooledge wrote:
Vadym Chepkov wrote:
A company I work for is trying to migrate their applications to
Linux platform and have selected RedHat as the vendor. Redhat
installs bash as the standard shell :
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jul 7 2009 /bin/sh - bash
Greg Wooledge wrote:
Bob Proulx wrote:
Greg Wooledge wrote:
Migrating FROM something that used Korn shell, I presume? Why not
just install Korn shell and use #!/bin/ksh on your scripts, if you need
to rely on Korn shell features?
When I read this I was torn about suggesting
Vadym Chepkov wrote:
I found out a very unusual feature of bash which makes it to act
really unexpected. I understand that pipelines are executed in a
separate subshell, but I really think 'exit' command should be
absolute. Consider a trivial code:
Note that dash also behaves this way too.
Peng Yu wrote:
My grep is aliased to grep --color=auto.
I then use grep TAB, where TAB is a tab character. But the
result is not colored. How to make the tabs colored?
You might try asking that question on bug-grep. This is bug-bash and
your issue does not seem to be with bash.
Bob
Greg Wooledge wrote:
That leaves names which contain -. The tricky part here is that we
can't easily tell whether an extra - is in the symbolic link or in
the target.
imadev:~$ ln -s tmp 'x - y'
imadev:~$ ln -s 'y - tmp' x
imadev:~$ ls -ld x*
lrwxr-xr-x 1 wooledgpgmr 8
Dave Moore wrote:
I didn't read this carefully -- should I try the patch you suggested
before we do anything else?
Yes. (Dave and I had some private email exchange where we discussed
the contents of inttypes.h on his system. I see that he is
suffering from the bug that I described.)
The
Greg Wooledge wrote:
Dave Moore wrote:
Machine: hppa2.0w
OS: hpux11.00
Compiler: gcc
...
My version of GCC is
gcc -v
Using built-in specs.
Target: hppa64-hp-hpux11.00
Configured with: ../src/configure --enable-languages=c,c++
--prefix=/usr/local/pa20_64
Peng Yu wrote:
I got the following message. Is there a way to configure bash such
that there is not a limit like this?
/bin/bash: Argument list too long
This is a kernel limitation not a bash limitation. Note that POSIX
only requires that 4k be available. However some kernels have removed
Rodney Varney III wrote:
I've noticed that if you full screen bash in a graphical
interface, and click view then uncheck menubar, you cannot escape
the terminal unless you type in exit. Kinda annoying when you are
doing something important in bash.
With the background you listed I will
Jan Schampera wrote:
The official patches should be there as individual commits. Though, I
admit it's not a small amount of work to do all that for the past
releases. Such a GIT or SVN repository technically is easy to do, but
who feeds it :(
Moving forward from now it should be reasonably
Sergei Steshenko wrote:
Greg Wooledge wrote:
And the only way you'll know that is by reading the patch itself.
No, there shouldn't be
But so it is just the same. Patches may be created in different ways
and that causes the recorded paths to either have no leading
directories, one leading
Peng Yu wrote:
I make my ~/.bash_profile empty. I still see
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
What is in your ~/.bashrc file?
I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set
in the two files. I'm wondering from which
Dobromir Romankiewicz wrote:
And run this code:
:2() { x1=0; x2=0; x3=0; x4=8
echo $[$x1$x2$x3$x4]
}
It crashes with message:
bash: 0008: value too great for base (error token is 0008).
Thank you for the report. But you have run into Bash FAQ E8.
Numbers with leading zeros are read as
Chet Ramey wrote:
Jari Aalto was setting up a git repository of current and older bash
versions on savannah. I'll keep him up to date with public versions
of bash (including, probably, public betas).
It looks like it has just recently been partially implemented.
Sitaram Chamarty wrote:
Cool thanks! Tantalisingly, it also says nth arg, but I can't
figure out how to give it that n (when n != 1). However, it seems
I can do this with M-. -- I just prefix an M-1 before the
M-. (thought my terminal does get messed up; probably because I have
a very
Sitaram Chamarty wrote:
Chet Ramey wrote:
Sitaram Chamarty wrote:
When the previous command was backgrounded (say gvim
filename.c ) and then you try some other command using
Alt-., it expands to and not filename.c.
Is this considered a bug? Or correct behaviour that just
happens
Todd Partridge wrote:
The cp command will copy to a subdirectory without an appending /
You have reached bug-bash, not bug-coreutils. The 'cp' program is in
the GNU Coreutils project and so bug reports for 'cp' should go to
bug-coreut...@gnu.org and not to bug-bash. The bug-bash list is for
Pierre Gaston wrote:
Please consider asking in a sed mailing list like:
http://sed.sourceforge.net/#mailing
or maybe in the usenet group comp.unix.shell
I would think help-gnu-ut...@gnu.org would be the better place to ask
for help about GNU utilities. :-)
Bob
Greg Wooledge wrote:
Bob Proulx wrote:
I would think help-gnu-ut...@gnu.org would be the better place to ask
for help about GNU utilities. :-)
We don't know that he's using GNU sed.
True, we don't know for sure. But I think it likely that it is GNU
sed given the behavior. Plus either
Marc Herbert wrote:
Bob Proulx a écrit :
Note that if 'cat' didn't exactly reproduce the contents of input on
the output I would consider that a grave bug.
Well... GNU cat has a number of options, and almost every single one is
munging the output :-)
And they aren't desirable
Tamlyn1978 wrote:
I have a file with a list of programs with comments describing what they do,
e.g.
unison # file syncronisation
grass # gis program
I have a script, which I run as root and includes the command:
m...@me:~$ aptitude install $(cat programs) -y
where 'programs' is the
peter360 wrote:
Can someone explain this to me? Why am I not seeing correct results from
ulimit after ssh into localhost? Thanks!
$ ssh localhost bash -c 'ulimit -a'
unlimited
You have insufficiently quoted your argument to ssh. This is causing
bash not to get ulimit -a but to get ulimit
peter360 wrote:
So, just to make sure I really understand this, here is how I understand ssh
worked: even thought I gave the command bash -c 'ulimit -a' as 3 separate
strings,
Yes.
ssh (either the client or the server) actually concatenate them into
one,
No. It isn't put into one string
ken wrote:
Doing very simple math in bash fails if a number begins with a zero (0).
Thanks for the report. However it isn't a bug but simply a
misunderstanding. Numbers starting with 0 are octal numbers not
decial numbers. And as you know octal numbers includes zero through
seven but does not
nico raffo wrote:
I'm writing a simple terminal emulator (on linux using standard pty
libraries) and have run across some behavior in bash that I cannot
explain after several weeks of reading documentation.
I am not sure of the exact cause of your trouble. But having been a
few days and no
FlyingShoes12 wrote:
I am writing a script to deal with form input. Most of it is done, but I
can't seem to be able to tell the script to open an html page at the end -
what the user will see when he clicks send. What command should i use?
This really isn't a bash bug nor a bash question.
Alex Reed wrote:
At least one hunk fails on every patch file. What am I doing wrong?
Hmm... Works for me. Here is a trace of the important bits.
$ wget ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0.tar.gz
$ wget ftp://ftp.gnu.org/pub/gnu/bash/bash-4.0.tar.gz.sig
$ wget
Lasse Kärkkäinen wrote:
ftp://ftp.cwru.edu/pub/bash/bash-4.0-patches
So, what format are these and how do I patch (on Linux)? Apparently the
patch program doesn't recognize them automatically.
The patch program recognizes them okay on my machine. Works for me.
P.S. is there some specific
Greg Wooledge wrote:
Erik Olof Wahlstrom wrote:
/usr/bin/mysqldump -uroot -pHardAsMySql321 $DB | bzip2
$DB_`date +%Y-%m-%d_%k.%M`.sql.bz2
# Long line, probably broken by your mailer. For clarity, I'd
# write it on two lines explicitily:
mysqldump
tirengarfio wrote:
IPS={89.17.206.180,89.17.206.185,89.17.206.186,89.17.206.187}
Check the value that you assigned using echo.
$ echo $IPS
{89.17.206.180,89.17.206.185,89.17.206.186,89.17.206.187}
Notice that brace expansion hasn't occurred in variable assignment.
In the bash manual it
Chris Jones wrote:
Is there a 4.0 .deb available..?
A bash 4.0 .deb is available in Debian's experimental distribution. I
don't know if the dependencies it was compiled with are available in
Lenny or Squeeze or not as it would have matched Unstable at one time
and so you would need to check.
Chet Ramey wrote:
It depends on what you mean by `fail'.
...
To do otherwise would have made expr much less useful. Idioms such as
Also I must mention grep too. The exit status of grep isn't just
whether it exits without an error but instead returns an indication of
whether the pattern
Chet Ramey wrote:
Villeneuve wrote:
Fix:
Do not prepend system paths in front of PATH in the bashbug script.
Instead, these default paths could be appended to PATH if necessary.
To do otherwise is a potential security hole.
It seems okay to leave PATH alone to me. Why set it
Justin wrote:
I am using a command line ssh tool called qtssh on windows to
connect to a redhat server. qtssh is a command line ssh tool built
upon putty that is included with the visualization toolkit VisIt.
This tool is designed to run commands remotely and does not create
an interactive
Brandon F wrote:
When I do traceroute in bash I am always getting
12-215-11-193.client.mchsi.com as the third or fourth site. I want to know
how to clear this from my route list. So it will bounce off of a differant
site. Thank you.
Bash is running the program traceroute for you. Having
Chris Jones wrote:
I had posted the following obfuscated explanation a couple of hours ago
but since I was subscribed under a different address, it never made it
to the list.
:-(
Actually it seems to have made it to the okay. No need for an unhappy
face. You do not need to be subscribed
lehe wrote:
As to changing to new bash from the beginning, I added into .bash_profile:
SHELL='/cis/home/tingli/bin/bash-3.2.48/bin/bin/bash'
exec $SHELL
It works quite well. The new bash starts automatically if I ssh to the
server from my laptop.
Good. Is there really two /bin/bin/s
lehe wrote:
Lately I am trying to install a higher version of emacs under my ${HOME} on
my office server. I add the new emacs path into PATH. It works quite well
when I ssh to the server, but encounters this /home/emacs/bin/emacs: cannot
execute binary file error when I am working on my office
lehe wrote:
I just solve my problem by adding the path of my newly-installed bash to the
beginning of PATH. However I now have some new questions:
1. The change to PATH is effective only in the current shell session. I was
wondering if it is possible to run the new bash instead of the old
lehe wrote:
Since the old shell is the login shell reading ./bash_profile and the new
one isn't but reading ./bashrc, how could there possibly be infinite loop
at login-in?
There shouldn't be, so you should be okay there. But people rarely
leave things alone. If you mutated that into a few
Ray Parrish wrote:
And as another note, even 'though I've used the -d switch to show only
directories in the output I'm still getting filenames with it.
Please see the Coreutils FAQ on 'ls -d'.
http://www.gnu.org/software/coreutils/faq/#ls-_002dd-does-not-list-directories_0021
I had to
Andreas Schwab wrote:
smallnow writes:
PROMPT_COMMAND='$(cd)'
Since $(cd) expands to nothing this is mostly a no-op.
True. But he did say this as well:
I used $(cd) as a trivial command substitution, but any command
substitution seems to have the same effect.
I actually had some
lehe wrote:
I have some questions about the paragraph in Bash Reference on redirections:
Note that the order of redirections is significant. For example, the
...
ls dirlist 21
directs both standard output (file descriptor 1) and standard error (file
descriptor 2) to the
file dirlist,
garp28 wrote:
ssh -T ${SRI} EOF
su - simrun -c /tmp/stop_sri.sh
EOF
I would like to redirect the output of the stop_sri.sh into a local log.
How can I do that?
Use '' to redirect the outout. For example:
ssh -T ${SRI} stop_sri.log EOF
su - simrun -c /tmp/stop_sri.sh
EOF
Bob
Dan Nicolaescu wrote:
Chet Ramey writes:
Dan Nicolaescu wrote:
Unfortunately the behavior is not consistent with what dabbrev-expand
does in Emacs (and tcsh), so it will be quite confusing for users to
use.
...
It might not be exactly the way emacs and tcsh do it, but
eneville_ wrote:
Bob Proulx wrote:
Look at the documentation for BASH_ENV in the bash manual.
Thanks. But this isn't having the effect that I wished for.
What I'm hoping to achieve is to have bash run something like a wrapper
around each and every command line that I run.
For example
Martin Schwenke wrote:
Paul Jarc writes:
It's documented, but it's easy to miss. Just before the
list of parameter expansion forms is this paragraph:
In each of the cases below, word is subject to tilde
expansion, parameter expansion, command substitution,
and
Tim Hattrell wrote:
Problem solved. After inspecting the binary I discovered it was asking
for /lib/ld-linux.so.2. This wasn't installed on my system (only 64 bit
libs were) but having installed it Sun Studio is back up and running.
Ah. I will have to add 'ldd -r -d ./programfile' to the
men8th wrote:
And now run into a brick wall. The IDE starts OK but then complains that it
can't run a file called CC (i.e. the C compiler presumably)
CC would be the normal name for a legacy C++ compiler. The ATT C++
compiler was always named CC. GNU calls the gcc version g++.
I've opened
Paul Jarc wrote:
Bob Proulx wrote:
Also, using full paths is frowned upon.
You mean invoking /directory/some-command directly instead of
PATH=$PATH:/directory
some-command
?
Yes. That is what I am saying.
It depends on the situation.
I can't disagree with that.
If you think some
AT-HE wrote:
if you have a simlink pointing to a directory, chdir to that
symlink dir, and type something with '..', you access the
parent of real directory, not previous simlinked one.
Symlinks violate some principles of least surprise. Therefore it is
not surprise
Jose Manuel wrote:
No se ha podido inicializar la información de los paquetes
Ha ocurrido un problema imposible de corregir cuando se inicializaba la
información de los paquetes.
Pardon me for my reply in English but my Spanish is not intelligible.
You have reached the GNU Bash mailing
Larry Clapp wrote:
A coworker of mine scatters wait around his code a lot. I've seen
wait after echo (and no, he's not waiting on some previously
backgrounded process):
echo something
wait
Hmm... I am surprised I am the first person to weigh in on this
matter.
He asserts The wait
maybee wrote:
I have a string mq001234ms00567_b3.45_323x7,
and I want to subtract the numbers from it, that is,
I will get
mq=001234
ms=00567
b=3.45
These number may have various digits.
Any neat way doing this under bash?
I myself would use 'sed' (because I always have):
martin schneebacher wrote:
i'm stuck into a strange problem. i'm piping the output of one
program into a textfile, and with a ruby script i'm parsing it.
Did you mean redirecting to a text file? Piping implies that there is
a program reading from the pipe but then there wouldn't be any files
Chet Ramey wrote:
Björn Augustsson wrote:
fun_bad() { local bah=$( false ); }
fun_good() { local bah ; bah=$( false ); }
The `local' command returns success if the variable assignment succeeds,
which it does. The command substitution doesn't affect its exit status.
This is how all
Richard Neill wrote:
Dear All,
In the future please start a new message for a new thread of
discussion. When you reply to old messages from three months ago
those of us who actually keep months worth of email see the message
threaded with the previous discussion about variables and subshells.
Tony Zanella wrote:
I have a directory listing of files like:
img.bc03.547.1.gif?
I need to trim the last character off for each file in the dir.
I know I can use:
mv img.bc03.547.1.gif? img.bc03.547.1.gif
to rename each by hand, but I want to do this as a batch.
I know it would start with:
Chet Ramey wrote:
Toralf Förster wrote:
I'm wondering why in the example (see below) the right side is
prefixed with a '\' wheras the left side is unchanged.
...
[EMAIL PROTECTED] ~ $ echo 1 2 3 4 | while read a b c d; do [[
$a =
$b || $a = $c || $a = $d
Mr Aras wrote:
$ ./setuid_test_script.sh
mode of `/nfsroot/bin/busybox' changed to 4755 (rwsr-xr-x)
-rwsr-xr-x 1 root root 515956 2008-07-18 11:46 /nfsroot/bin/busybox
$ ls /nfsroot/bin/busybox
-rwxr-xr-x 1 root root 515956 2008-07-18 11:45 /nfsroot/bin/busybox
With only this information I
Eric Blake wrote:
According to Poor Yorick:
| What's up with all the [EMAIL PROTECTED] strings in the web archives for
| bug-bash? For example:
|
| http://lists.gnu.org/archive/html/bug-bash/2008-07/msg00063.html
It is the gnu mailing archive's list way of protecting email address from
[EMAIL PROTECTED] wrote:
My real meaning in my last mail is that when we carry out a
command exactly in a second time ,in fact we could not need
to create a new one but we use the old one and locate
ourselves on the location of the old command.If we could
Abhinandan wrote:
[EMAIL PROTECTED] wrote:
Abhinandan wrote:
I wanted to add a new internal command to bash, how shall I do it.
Have you tried simply creating the executable (or script) and placing
it in your PATH somewhere?
thats not what i intend to do. I want to write my own
Carl-Valentin Schmitt wrote:
please check out if bash 3.2.0 is broken ???
as root after TAB-TAB only 2178 possibilities are shown ???
Should be about 3.300 possibilities, or not ???
Unfortunately there isn't quite enough information in your report to
determine if things are working or if
Peter Volkov wrote:
Bob Proulx пишет:
The $0 is the name used to invoke the shell. If it starts with a '-'
then this is used to instruct the shell that it is a login shell. The
second variable $- is the flags set to the shell. The 'i' for
interactive should be in there.
Actually
Carl Wenrich wrote:
I just log into the box that appears on the standard ubuntu
startup. I enter my username and password, then the desktop comes
up.
You are using GDM (GNOME Display Manager) then. In which case it
won't automatically start up shells as login shells. It is a quirk of
how the
Poor Yorick wrote:
Is there any way to get a handle on what matched in a case
statement? Something like this:
case lawlesspoets in
*poets)
echo $CASEMATCH one
;;
lawless*)
echo $CASEMATCH two
;;
esac
carlwenrich wrote:
I put this in my .bash_profile:
PATH=$PATH:/opt/lampp/bin
export PATH
but when I echo $PATH it doesn't include the /opt/lampp/bin.
The .bash_profile is sourced by bash when it is invoked as an
interactive login shell. Therefore you would need to log in after
having
Carl Wenrich wrote:
Bob Proulx wrote:
Did you log in after having made that change? Was bash invoked as
an interactive login shell so that it would read that file?
echo $0
echo $-
Yes. I (1) made the change to .bash_profile, then (2) restarted the
machine, then (3) logged
Carl Wenrich wrote:
echo $0 gives me bash
echo $- gives me himBH
Then bash hasn't been invoked as a login shell and therefore isn't
instructed to source the .bash_profile.
If it is not a login shell then to suggest improvements it would be
necessary to know the type of system you are using
Poor Yorick wrote:
Looking for a simple ways to output the index at which two strings
differ. Here is one:
cmp (echo hello) (echo help) | cut -d' ' -f5 | tr -d ,
Any other suggestions?
That seems reasonable to me. Although I tend to use awk and sed for
such things. The concept is
Chet Ramey wrote:
Woody Thrower wrote:
It appears that bash cannot bind ctrl-u either by using the bind command,
or by reading .inputrc at startup.
By default, readline binds the tty editing characters (erase, kill,
literal-next, word-erase) to their readline equivalents when it's called,
Chet Ramey wrote:
Bob Proulx wrote:
Normally control-u is bound to tty driver kill. Because of there is a
tty driver value for ^U that value always overrides any readline
binding. But if ^U is remove from the tty driver setting then it
won't.
Note that undefining a tty editing character
Verena Alishahi wrote:
last week I've updated my workstation cluster client (amd 64 bit) from
SuSE 10.0 to openSUSE 10.3. My bash-version is 3.2.25(1)-release.
...
Both the bash-scripts and the output file are stored on an
NFS-Filesystem (on the workstation cluster server), so every client
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 there?
ls -ld /bin/bash /usr/local/bin/bash
I suggested looking
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:
Permission denied
I suspect that the permissions on /usr/bin/bash are preventing you
from running
Darren DeHaven wrote:
I need the deprecated mv and cp command parameter --reply= to stay.
The problem is that it never worked as desired.
I've noticed that the parameter --reply=no is deprecated
cp: the --reply option is deprecated; use -i or -f instead
Yes. See this reference for more
hawa wrote:
Execuse me, would you give me a hand with a simple 'if' bash script?
I want to make folders 00, 01,...,20 and
copy existing files file_00, file_01,,file_20 to each folder.
Something like this (UNTESTED):
for n in $(seq -w 0 20); do
mkdir $n
mv file_$n $n/
done
Or
Eric Blake wrote:
Doug McIlroy wrote:
| So there's a bug in the manual, which does not breathe a word about
| time being executed by the shell. And the shell covers its tracks, too:
Like I said, there's a difference between a builtin (for example,
'builtin' or 'exec') and a reserved word
Paul Jarc wrote:
Charlse Darwin wrote:
i.e. How do I get the latest to be the login shell?
You could add exec bash as the last command in ~/.bash_profile.
I think I would avoid doing that unless the user is aware of the
sublte and complex relationships that exist there. The bash_profile
is
Charlse Darwin wrote:
There are indeed two different versions installed. I have installed
the 3.2.33(1)-release version via macports. 2.05b.0(1)-release comes
with my OS. I guess my question is how do I get
$ echo $BASH_VERSION
to return
3.2.33(1)-release
i.e. How do I get the
Robert Whent (rwhent) wrote:
sleep 100
sleep 200
sleep 300
JOBS=`jobs`
I have also trawled the web and can find no reports of any issues ?
More typically this data would be collected up as you go along.
sleep 100
JOBS=$JOBS $!
sleep 200
JOBS=$JOBS $!
sleep 300
JOBS=$JOBS
UniXman1234 wrote:
./new1a numbers.txt | grep -i -v '^a ' | grep -i -v '^the ' | grep -i -v
'^or ' | sort -f
How would I go about merging all the greps into a scripe and putting all the
words that should be excluded into a data file
Many different ways. Look at the 'grep -f' option.
201 - 300 of 409 matches
Mail list logo