Re: bash - shell events "!"

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, May 10, 2016 at 11:32:47AM +0200, Die Optimisten wrote: > Hello > > echo hello!# displays that, BUT: > echo "Hello!" # tells: > -su: !": event not found# this worked years before without problem! > Is that intended? These leads to

Re: bash Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, May 10, 2016 at 11:20:23AM +0200, Die Optimisten wrote: > On 2016-05-10 11:18, Die Optimisten wrote: > >Hi, > > > >How can I escape a ' inside '...' > >e.g. perl -e 'print '$ and a' '# I don't want to use " The short answer is... you can't

Re: bash - shell events "!"

2016-05-10 Thread Jonathan bartoua Schneider
Hi, It is the historical part of C shell, you can disable it typing or adding it to your profile : set +H Regards, Jonathan Le 10 mai 2016 11:48 AM, "Die Optimisten" a écrit : Hello echo hello!# displays that, BUT: echo "Hello!" # tells: -su: !": event not found# this worked years

Re: bash shell variables with spaces

2004-07-18 Thread Matthias Czapla
On Mon, Jul 19, 2004 at 10:33:02AM +1000, Zenaan Harkness wrote: > Which raises the question - what if the expansion contains double quote > chars? Perhaps using double-backslash (or quad??) would do the trick? You mean like this?: $ FOO='foo "more foo" bar' $ echo "$FOO" foo "more foo" bar This

Re: bash shell variables with spaces

2004-07-18 Thread Zenaan Harkness
On Mon, 2004-07-19 at 10:27, Zenaan Harkness wrote: > Does anyone know why the following works: > > #!/bin/sh -x > FONT=-jmk-neep\ alt-medium-r-semicondensed-*-*-100-*-*-c-*-iso8859-15 > xterm -sl $BUFFER -fn $FONT -geometry 87x96+447+26 Sorry, the last line above should be: xterm -sl $BUFFER -f

RE: bash shell

2000-10-05 Thread Sean 'Shaleh' Perry
On 05-Oct-2000 XEN O wrote: > I am currently running a red hat derivative linux and an looking to change to > debian (as reports speak highly of it). However, it seems from looking at > the list of shells packaged with debian it does not come with the bash shell > - it this right ?? > you proba

Re: bash shell

2000-10-05 Thread Paul D. Smith
%% XEN O <[EMAIL PROTECTED]> writes: xo> I am currently running a red hat derivative linux and an looking xo> to change to debian (as reports speak highly of it). However, it xo> seems from looking at the list of shells packaged with debian it xo> does not come with the bash shell - it th

Re: bash shell

2000-10-05 Thread -dsr-
On Thu, Oct 05, 2000 at 10:39:34AM -0700, XEN O wrote: > I am currently running a red hat derivative linux and an looking to change to > debian (as reports speak highly of it). However, it seems from looking at > the list of shells packaged with debian it does not come with the bash shell > - i

Re: bash shell

2000-10-05 Thread Aaron Brashears
Bash is the default shell. XEN O wrote: > > I am currently running a red hat derivative linux and an looking to change to > debian (as reports speak highly of it). However, it seems from looking at > the list of shells packaged with debian it does not come with the bash shell > - it this righ

Re: bash shell prompt

1998-09-04 Thread E.L. Meijer \(Eric\)
[...] > .bashrc only gets read for subshells. .bash_profile always get read no > matter what. You can also source .bashrc from .bash_profile and you can > forget about order. -marlon Not true. The file ~/.bash_profile is sourced only in interactive _login_ shells. If you rea

Re: bash shell prompt

1998-09-03 Thread Marlon Urias
On Thu, 3 Sep 1998, M.C. Vernon wrote: > > > My guess was that the .bashrc in my home directory needed the > > same PS1 environment as the .bashrc in the root directory so I > > added > > > > export PS1='\h:\w\$ ' > > > > but this does not solve the problem UNLESS I login as myself and >

Re: bash shell prompt

1998-09-03 Thread David Warnock
To everyone who has replied to my question. Thanks I have my prompt as I want it, I also now understand some of the bash man information. I also just wanted to check that my new netscape 4.06 is working. Dave

Re: bash shell prompt

1998-09-03 Thread Nathan E Norman
On Thu, 3 Sep 1998, Julian Gilbey wrote: : > Hi, : > : > On Hamm, if I login as root or while logged in as myself do a "su" : > then my shell prompt shows the host and current directory. : > : > When I am logged in as myself my prompt is just a $ : > : > I much prefer to see the curren

Re: bash shell prompt

1998-09-03 Thread Julian Gilbey
> Hi, > > On Hamm, if I login as root or while logged in as myself do a "su" > then my shell prompt shows the host and current directory. > > When I am logged in as myself my prompt is just a $ > > I much prefer to see the current directory in my prompt. So how do > I change it? > > My guess

Re: bash shell prompt

1998-09-03 Thread M.C. Vernon
> My guess was that the .bashrc in my home directory needed the > same PS1 environment as the .bashrc in the root directory so I > added > > export PS1='\h:\w\$ ' > > but this does not solve the problem UNLESS I login as myself and > then type > > bash > > at which point the prompt change

Re: bash shell script questions

1998-01-11 Thread Rob S. Wolfram
David Stern wrote: [snip] > > You should use '#!/bin/bash' really, because now sh is just a link > > to bash, but you are not guaranteed that in a future version it will > > be another shell, or that bash _will_ act more (dumb) Bourne like in > > the future when called as 'sh' (I for one would app

Re: bash shell script questions

1998-01-10 Thread David Stern
On Fri, 09 Jan 1998 23:01:54 +0100, "Rob S. Wolfram" wrote: > David Stern wrote: >>[..] > news://comp.unix.shell I know now. > > 1.) How do I insert a newline character in a "double-quoted" string? > If you mean "when using bash's built-in echo command", use > echo -e "Test\nMoreText" I'll use

Re: bash shell script questions

1998-01-10 Thread Rob S. Wolfram
David Stern wrote: > I know this isn't a bash shell script news group, but the fact is I > can't find one. Since bash is the default linux shell, I was hoping news://comp.unix.shell > someone could answer a few pretty simple questions. > > 1.) How do I insert a newline character in a "double-

Re: bash shell script questions

1998-01-08 Thread David Stern
On Wed, 07 Jan 1998 21:27:01 +1030, John Spence wrote: > > I know this isn't a bash shell script news group, but the fact is I > > can't find one. Since bash is the default linux shell, I was hoping > > someone could answer a few pretty simple questions. > > Hi David. > > Try this link for an

Re: bash shell script questions

1998-01-07 Thread bhmit1
On Tue, 6 Jan 1998, David Stern wrote: > Hi, > > I know this isn't a bash shell script news group, but the fact is I > can't find one. Since bash is the default linux shell, I was hoping > someone could answer a few pretty simple questions. > > 1.) How do I insert a newline character in a "do

Re: bash shell script questions

1998-01-07 Thread John Spence
> I know this isn't a bash shell script news group, but the fact is I > can't find one. Since bash is the default linux shell, I was hoping > someone could answer a few pretty simple questions. Hi David. Try this link for an intro to Bourne shell scripts. http://riceinfo.rice.edu/Computer/Doc