Re: With fresh 9.1 install, bash completion no longer expands "$HOME"

2013-06-10 Thread Jeremy Chadwick
Re: http://lists.freebsd.org/pipermail/freebsd-questions/2013-June/251607.html This has nothing to do with FreeBSD 9.0 vs. 9.1 other than the fact that the package on 9.0 is older than 9.1. Instead, this has everything to do with the difference between bash versions you're using. Rem

With fresh 9.1 install, bash completion no longer expands "$HOME"

2013-06-10 Thread David P. Caldwell
On my 9.0-based machines, if I typed $HOME[tab] when typing a command in bash, the $HOME would be overwritten by the actual path to my home directory (the value of $HOME) and tab completion would work as expected. After a fresh 9.1 install, this does not work as well. $HOME is still detected by

Re: Bash history empty on login

2013-01-08 Thread Trond Endrestøl
On Tue, 8 Jan 2013 18:49-0500, Andre Goree wrote: > > > I think I've found the culprit, however: > > [agoree@desktop ~]$ echo $HISTFILESIZE > > 1024000 > > [agoree@desktop ~]$ echo $HISTFILE > > /home/agoree/.bash_history > > [agoree@desktop ~]$ ll /home/agoree/.bash_history > > -rw--- 1 ago

Re: Bash history empty on login

2013-01-08 Thread Andre Goree
> I think I've found the culprit, however: > [agoree@desktop ~]$ echo $HISTFILESIZE > 1024000 > [agoree@desktop ~]$ echo $HISTFILE > /home/agoree/.bash_history > [agoree@desktop ~]$ ll /home/agoree/.bash_history > -rw--- 1 agoree agoree12k Jan 5 14:09 /home/agoree/.bash_history > [agore

Re: Bash history empty on login

2013-01-08 Thread Andre Goree
t;>> command being issued from anywhere upon logout or reboot? >>> >>> Just some thoughts. >>> >> >> No offense at all, thanks for your suggestions! I'm currently at work so >> I'll >> test this when I get home (this is on a des

Re: Bash history empty on login

2013-01-08 Thread Trond Endrestøl
> Just some thoughts. > > > > No offense at all, thanks for your suggestions! I'm currently at work so I'll > test this when I get home (this is on a desktop running 8.3-stable). I've > never had to do anything special when using bash on FreeBSD. I'll b

Re: Bash history empty on login

2013-01-08 Thread Andre Goree
a desktop running 8.3-stable). I've never had to do anything special when using bash on FreeBSD. I'll be sure to check th output of "set -o" and report back here. If there's an erroneous 'clear' command somewhere, it must be on logout since I can easily test

Re: Bash history empty on login

2013-01-08 Thread Dimitri Yioulos
x27;sudo nmap' > alias updatedb='sudo updatedb' > alias pkg_add='sudo pkg_add' > alias pkg_delete='sudo pkg_delete' > alias top='top -aPStzj -s 1' > alias portinstall='sudo portinstall' > alias updatedb='sudo updatedb' > &g

Bash history empty on login

2013-01-07 Thread Andre Goree
-aPStzj -s 1' alias portinstall='sudo portinstall' alias updatedb='sudo updatedb' PS1='\[\e[1;37m\][\u@\h \W]\$\[\e[0m\] ' export PATH=$PATH:/home/agoree/bin:/usr/local/kde4/bin/ #BASH history export HISTTIMEFORMAT="%h/%d - %H:%M:%S " export HISTFILE

Re: bash pipe redirection gets stuck

2012-12-04 Thread jb
rule.lv> writes: > > Dear all, > I stumbled upon a problem where multiple pipe redirection occasionally get > stuck when trying to get sha256 sum of a stream. > > You can try to reproduce the problem if you have /usr/ports/shells/bash > installed (output redirection

Re: bash pipe redirection gets stuck

2012-12-03 Thread long
> On 03.12.12 15:35, l...@rule.lv wrote: > [...] >> I stumbled upon a problem where multiple pipe redirection occasionally >> get >> stuck when trying to get sha256 sum of a stream. >> >> You can try to reproduce the problem if you have /usr/ports/shells/bash &

Re: bash pipe redirection gets stuck

2012-12-03 Thread jb
jb gmail.com> writes: > ... > Do you get stuck with this ? Does it make any difference ? I missed a redirector - sorry about that; the entry should be: /usr/local/bin/bash -c 'cat /tmp/file1 | tee /tmp/file1.copy | /sbin/sha256 > \ /tmp/file1.sha256&#x

Re: bash pipe redirection gets stuck

2012-12-03 Thread jb
rule.lv> writes: > > Dear all, > I stumbled upon a problem where multiple pipe redirection occasionally get > stuck when trying to get sha256 sum of a stream. > > You can try to reproduce the problem if you have /usr/ports/shells/bash > installed (output redirection

Re: bash pipe redirection gets stuck

2012-12-03 Thread Frank Reppin
On 03.12.12 15:35, l...@rule.lv wrote: [...] I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is

Re: bash pipe redirection gets stuck

2012-12-03 Thread Jerry
On Mon, 3 Dec 2012 16:35:15 +0200 (EET) l...@rule.lv articulated: > Dear all, > I stumbled upon a problem where multiple pipe redirection > occasionally get stuck when trying to get sha256 sum of a stream. > > You can try to reproduce the problem if you > have /usr/ports/she

bash pipe redirection gets stuck

2012-12-03 Thread long
Dear all, I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is possible only in bash). Create

Re: bash Shell Scripting Question

2012-09-20 Thread Polytropon
On Thu, 20 Sep 2012 11:16:40 +0200, Jan Henrik Sylvester wrote: > On 09/20/2012 04:29, Polytropon wrote: > > Correct. You could use different approaches which may or may > > not fail due to the directory names you will encounter (like > > directories with spaces or special characters). > > > >

Re: bash Shell Scripting Question

2012-09-20 Thread Martin McCormick
Many thanks! The for loop was what was needed. Polytropon writes: > Just a sidenote: If you're not using bash-specific functionality > and intend to make your script portable, use #!/bin/sh instead. I always start out that way for that very reason. I needed some random number fu

Re: Re: bash Shell Scripting Question

2012-09-20 Thread Jan Henrik Sylvester
On 09/20/2012 04:29, Polytropon wrote: Correct. You could use different approaches which may or may not fail due to the directory names you will encounter (like directories with spaces or special characters). #!/bin/sh for DIR in `ls -LF | grep \/`; do cd ${DIR}

Re: bash Shell Scripting Question

2012-09-19 Thread Polytropon
On Wed, 19 Sep 2012 21:03:11 -0500, Martin McCormick wrote: > I just discovered a knowledge deficiency on my part that > I can't seem to resolve. > > If one writes a loop of the following form: > > #!/usr/local/bin/bash Just a sidenote: If you

Re: bash Shell Scripting Question

2012-09-19 Thread Mihai Donțu
On Wed, 19 Sep 2012 21:03:11 -0500 Martin McCormick wrote: > #!/usr/local/bin/bash > ls -LF |grep \/ >/tmp/files > while read dirname; do > cd $dirname > #Do whatever commands to be repeated in each directory. > done < /tmp/files > How about: ls -LF | grep \/ | w

bash Shell Scripting Question

2012-09-19 Thread Martin McCormick
I just discovered a knowledge deficiency on my part that I can't seem to resolve. If one writes a loop of the following form: #!/usr/local/bin/bash ls -LF |grep \/ >/tmp/files while read dirname; do cd $dirname #Do whatever commands to be repeated in each directory. don

RE: A bash scripting question

2012-06-21 Thread dteske
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of dte...@freebsd.org > Sent: Thursday, June 21, 2012 12:57 PM > To: 'Odhiambo Washington' > Cc: 'questions' &g

RE: A bash scripting question

2012-06-21 Thread dteske
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of Devin Teske > Sent: Thursday, June 21, 2012 9:24 AM > To: Odhiambo Washington > Cc: questions > Subject: Re: A bash scripting question >

Re: A bash scripting question

2012-06-21 Thread Julian H. Stacey
CyberLeo Kitsana wrote Odhiambo Washington: > By the way, what's gammu, /usr/ports/comms/gammu presumably ( for mobile phone connection ) > and why is it in /usr/bin ? Pass. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above

Re: A bash scripting question

2012-06-21 Thread CyberLeo Kitsana
eed BUT reading one line at a time > untill the 10th line, if i want more i add manually... > This might help some1 someday! But if there is a way to perfect it please > do so. > > #!/usr/local/bin/bash > > smsfile=email_to_sms > `grep Subject /var/spool/mail/sms &g

Re: A bash scripting question

2012-06-21 Thread Devin Teske
what i need BUT reading one line at a time > untill the 10th line, if i want more i add manually... > This might help some1 someday! But if there is a way to perfect it please > do so. > > #!/usr/local/bin/bash > > smsfile=email_to_sms > `grep Subject /var/spool/m

A bash scripting question

2012-06-21 Thread Odhiambo Washington
add manually... This might help some1 someday! But if there is a way to perfect it please do so. #!/usr/local/bin/bash smsfile=email_to_sms `grep Subject /var/spool/mail/sms >>$smsfile` if [[ -s $smsfile ]] ; then cat /dev/null > /var/spool/mail/sms sed -i 's/Subject: //g' $s

Re:[SOLVED] bash LC_COLLATE or LC_ALL set “C” not sort in dictionary order.

2012-02-01 Thread Edward Martinez
On 01/31/12 12:22, Robert Bonomi wrote: ` Edward wrote: On 01/31/12 06:31, Robert Bonomi wrote: Hi, Been trying to get BASH to sort set characters in dictionary order. I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C" thought tha

Re: bash LC_COLLATE or LC_ALL set “C” not sort in dictionary order.

2012-01-31 Thread Jerry
I thought it could be also done in FreeBSD's bash > when LC_COLLATE is set to en_US.UTF-8 What version of Bash? -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore

Re: bash LC_COLLATE or LC_ALL set “C” not sort in dictionary order.

2012-01-31 Thread Edward Martinez
On 01/31/12 06:31, Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Tue Jan 31 05:45:47 2012 Date: Tue, 31 Jan 2012 04:45:36 -0800 From: Edward Martinez To: FreeBSD Questions Subject: bash LC_COLLATE or LC_ALL set =?windows-1252?q?=93C=94_not__sort?= =?windows-1252?q

Re: bash LC_COLLATE or LC_ALL set “C” not sort in dictionary order.

2012-01-31 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Tue Jan 31 05:45:47 2012 > Date: Tue, 31 Jan 2012 04:45:36 -0800 > From: Edward Martinez > To: FreeBSD Questions > Subject: bash LC_COLLATE or LC_ALL set =?windows-1252?q?=93C=94_not__sort?= > =?windows-1252?q?_in_d

bash LC_COLLATE or LC_ALL set “C” not sort in dictionary order.

2012-01-31 Thread Edward Martinez
Hi, Been trying to get BASH to sort set characters in dictionary order. I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C" thought that was enough to work, however when i type metacharacters: set character; any character, something like t

Re: why newline scape sequence does not work in Freebsd's bash

2011-12-30 Thread Dan Nelson
es not mention the -e option is needed to enable > > backslash escapes. I remembered why it worked on linux is because i > > created an echo alias with the -e option. So i will do the same for > > FreeBSD. > > The echo(1) manpage on FreeBSD doesn't say anything ab

Re: why newline scape sequence does not work in Freebsd's bash

2011-12-30 Thread Erik Trulsson
ed why it worked on linux > is because i created an echo alias with the -e option. > So i will do the same for FreeBSD. The echo(1) manpage on FreeBSD doesn't say anything about '-e' because that version of echo doesn't have such an option. The echo you were actually

Re: why newline scape sequence does not work in Freebsd's bash

2011-12-30 Thread Edward Martinez
On 12/30/11 17:06, Любомир Григоров wrote: I used ' singe quotes, so double quotes is: $ FRUIT_BASKET="apples oranges pears" $ echo -e "My fruit basket contains: \n $FRUIT_BASKET" My fruit basket contains: apples oranges pears Thanks for the help, it worked. I find it interesting that Free

Re: why newline scape sequence does not work in Freebsd's bash

2011-12-30 Thread Любомир Григоров
: > > $ FRUIT_BASKET="apples oranges pears" > $ echo -e 'My fruit basket contains: \n $FRUIT_BASKET' > My fruit basket contains: > $FRUIT_BASKET > > > >Why the scape sequence; newline (\n) does not work in FreeBSD's bash, > However,

Re: why newline scape sequence does not work in Freebsd's bash

2011-12-30 Thread Любомир Григоров
try with the -e flag: $ FRUIT_BASKET="apples oranges pears" $ echo -e 'My fruit basket contains: \n $FRUIT_BASKET' My fruit basket contains: $FRUIT_BASKET >Why the scape sequence; newline (\n) does not work in FreeBSD's bash, However, it works bot

why newline scape sequence does not work in Freebsd's bash

2011-12-30 Thread Edward Martinez
Hello, Why the scape sequence; newline (\n) does not work in FreeBSD's bash, However, it works both in Linux and Solaris bash? For instance, when i type something basic using the newline scape sequence in FreeBSD bash i get this: $ FRUIT_BASKET="apple oranges pears&

Re: bash can not find most of my commands

2011-02-22 Thread Chip Camden
Quoth David Brodbeck on Tuesday, 22 February 2011: > On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin wrote: > > Just do us all a favor; don't write code in bash. What's with all the bash bashing? Sorry, couldn't resist. > > Yeah, I try to avoid bash-specific

Re: bash can not find most of my commands

2011-02-22 Thread Chad Perrin
On Tue, Feb 22, 2011 at 01:10:20PM -0800, David Brodbeck wrote: > > Yeah, I try to avoid bash-specific syntax unless it's for one-off > scripts. csh suffers the same kinds of problems; I only write csh > code under extreme duress, like when forced to maintain the > system-w

Re: bash can not find most of my commands

2011-02-22 Thread David Brodbeck
On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin wrote: > Just do us all a favor; don't write code in bash. Yeah, I try to avoid bash-specific syntax unless it's for one-off scripts. csh suffers the same kinds of problems; I only write csh code under extreme duress, like when force

Re: bash can not find most of my commands

2011-02-22 Thread Chad Perrin
on, and I know my environment well enough that hints aren't generally helpful. > > Personally, I usually just use sudo, or run bash as my first command > after gaining root powers. But it's very interesting to finally find > out what "toor" is for. I'd always wonde

Re: bash can not find most of my commands

2011-02-22 Thread David Brodbeck
On Tue, Feb 22, 2011 at 9:53 AM, Chad Perrin wrote: > Thus, if you *really* want a superuser account with bash as its default > shell, you can always use toor for that purpose.  I don't much see the > point in setting a superuser account to use bash anyway -- or any other > accou

Re: bash can not find most of my commands

2011-02-22 Thread Chad Perrin
f you *really* want a superuser account with bash as its default shell, you can always use toor for that purpose. I don't much see the point in setting a superuser account to use bash anyway -- or any other account, really -- but the option is there if you must have it. Just don't change the sh

Re: bash can not find most of my commands

2011-02-22 Thread Warren Block
On Tue, 22 Feb 2011, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh

Re: bash can not find most of my commands

2011-02-22 Thread Lars Eighner
On Tue, 22 Feb 2011, Alokat wrote: Paul has satisfied me. I have changed back to csh. If you want to run as root and use bash, well, that is what the user toor is for (examine master.passwd -- use vipw to edit master.passwd to enter a password for toor and the path to bash for toor, but set

Re: bash can not find most of my commands

2011-02-22 Thread Jason Helfman
On Tue, Feb 22, 2011 at 12:08:30PM -0500, Randy Ramsdell thus spake: Alokat wrote: On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call "reboot" like /sbin/reboot. How can I c

Re: bash can not find most of my commands

2011-02-22 Thread Randy Ramsdell
Alokat wrote: On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :) don't change your root sh

Re: bash can not find most of my commands

2011-02-22 Thread Alokat
On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh

Re: bash can not find most of my commands

2011-02-22 Thread Rolf G Nielsen
2011-02-22 17:47, Alokat skrev: On 02/22/11 17:44, Rolf Nielsen wrote: 2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call "reboot" like /sbin/reboot. How can I change th

Re: bash can not find most of my commands

2011-02-22 Thread Paul Macdonald
On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will alwa

Re: bash can not find most of my commands

2011-02-22 Thread Alokat
On 02/22/11 17:44, Rolf Nielsen wrote: 2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :)

Re: bash can not find most of my commands

2011-02-22 Thread Rolf Nielsen
2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr

bash can not find most of my commands

2011-02-22 Thread Alokat
Hi, I have changed my shell from csh to bash ... But after that I have to call "reboot" like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin export PATH HOME=/root e

Re: bash increment in a given way

2010-12-11 Thread Charlie Kester
On Sat 11 Dec 2010 at 09:57:08 PST Charlie Kester wrote: On Sat 11 Dec 2010 at 06:34:20 PST S Mathias wrote: It's ok, that i can use this, when i want an incrementing sequence, in a given way: # {START..END..INCREMENT} $ for i in {0..10..2}; do echo "Welcome $i times"; done Welcome 0 times Wel

Re: bash increment in a given way

2010-12-11 Thread Charlie Kester
On Sat 11 Dec 2010 at 06:34:20 PST S Mathias wrote: It's ok, that i can use this, when i want an incrementing sequence, in a given way: # {START..END..INCREMENT} $ for i in {0..10..2}; do echo "Welcome $i times"; done Welcome 0 times Welcome 2 times Welcome 4 times Welcome 6 times Welcome 8 tim

Re: bash increment in a given way

2010-12-11 Thread Samuel Martín Moro
also... if (nwrote: > with seq starting with 0, to fit your example... > > On Sat, Dec 11, 2010 at 5:34 PM, Samuel Martín Moro wrote: > >> something like that? >> for i in `seq 1 20 | awk 'BEGIN{n=0; max=4; avg=max/2}{if (n<=avg) {print >> $0;} n++; if (n>=max) {n=0;} }'` >> do >> echo welcome

Re: bash increment in a given way

2010-12-11 Thread Samuel Martín Moro
with seq starting with 0, to fit your example... On Sat, Dec 11, 2010 at 5:34 PM, Samuel Martín Moro wrote: > something like that? > for i in `seq 1 20 | awk 'BEGIN{n=0; max=4; avg=max/2}{if (n<=avg) {print > $0;} n++; if (n>=max) {n=0;} }'` > do > echo welcome $i times > done > > > > On Sat,

Re: bash increment in a given way

2010-12-11 Thread Samuel Martín Moro
something like that? for i in `seq 1 20 | awk 'BEGIN{n=0; max=4; avg=max/2}{if (n<=avg) {print $0;} n++; if (n>=max) {n=0;} }'` do echo welcome $i times done On Sat, Dec 11, 2010 at 3:34 PM, S Mathias wrote: > , that i can use this, when i want -- Samuel Martín Moro {EPITECH.} tek5 Ca

bash increment in a given way

2010-12-11 Thread S Mathias
It's ok, that i can use this, when i want an incrementing sequence, in a given way: # {START..END..INCREMENT} $ for i in {0..10..2}; do echo "Welcome $i times"; done Welcome 0 times Welcome 2 times Welcome 4 times Welcome 6 times Welcome 8 times Welcome 10 times $ but what's the "magic" for this

Re: bash command line - can not type " c" char (not echoed)

2010-12-03 Thread JB
Chris Rees gmail.com> writes: > > Glad you solved it. > > Are you aware that packages and ports are identical once installed? > ... > > ... > > There are packages, no ports on my system. > > Yes, I am. I made a statement that looks incomprehensible -:) JB __

Re: bash command line - can not type "c" char (not echoed)

2010-12-03 Thread Chris Rees
nome xterm. > No problem when change from bash prompt to sh subshell. > There are packages, no ports on my system. > > $ uname -r > 8.1-RELEASE > $ env |grep -i shell > SHELL=/usr/local/bin/bash > $ ls /var/db/pkg/bash-4.1.7/ > No readline lib present. > > JB &

console and bash - how to get Delete key working properly ?

2010-12-03 Thread J B
elete-next-char # for console bind ^[[3~ ed-delete-next-char # for xterm but not in bash (with or w/o the hint). Having readline lib installed does not make any difference as well. $ uname -r 8.1-RELEASE $ env |grep -i shell SHELL=/usr/local/bin/bash $ ls /var/db/pkg/bash-4.1.7/ No readline lib

bash command line - can not type "c" char (not echoed) [SOLVED]

2010-12-03 Thread J B
my .bashrc had some bind commands and that probably had something to do with it. I relogged in and all is OK. JB ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "f

bash command line - can not type "c" char (not echoed)

2010-12-03 Thread JB
Hi, this happens both in console and gnome xterm. No problem when change from bash prompt to sh subshell. There are packages, no ports on my system. $ uname -r 8.1-RELEASE $ env |grep -i shell SHELL=/usr/local/bin/bash $ ls /var/db/pkg/bash-4.1.7/ No readline lib present. JB

Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Polytropon
On Thu, 02 Sep 2010 15:52:25 +0200, Bernard Scharp wrote: > Neither am I. Hadn't even thought of grepping in /usr/src for the error > message :-) It's often a good starting point to see where problems might be caused from. > Can I just `rm /dev/nsmbX` them? (messing in /dev/ is a level of Fre

Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Bernard Scharp
On 02/09/2010 15:29, Polytropon wrote: > On Thu, 02 Sep 2010 14:02:35 +0200, Bernard Scharp > wrote: >> >>> >>> Could you post the script? Anything else would be pure guess work. You >> >> Well, I can recreate it with something as simple as: >

Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Polytropon
On Thu, 02 Sep 2010 14:02:35 +0200, Bernard Scharp wrote: > > > > > Could you post the script? Anything else would be pure guess work. You > > Well, I can recreate it with something as simple as: > > #!/usr/local/bin/bash > mount_smbfs //u...@remotehost/share

Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Bernard Scharp
> > Could you post the script? Anything else would be pure guess work. You Well, I can recreate it with something as simple as: #!/usr/local/bin/bash mount_smbfs //u...@remotehost/share1/ /tmp/mnt/ mount_smbfs //u...@remotehost/share2/ /tmp/mnt2/ > also might consider posting th

Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Jerry
On Thu, 02 Sep 2010 10:24:05 +0200 Bernard Scharp articulated: > Hi all, > > I'm having some problems with a bash script. > > It's a backup script that periodically checks if a list of systems is > online, and if so, uses samba to mount a specified list of shar

Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Bernard Scharp
Hi all, I'm having some problems with a bash script. It's a backup script that periodically checks if a list of systems is online, and if so, uses samba to mount a specified list of shares, rsyncs them to a local directory and unmounts again. This used to run fine till a few months ag

Re: Bash Script Help - File Names With Spaces -- SOLVED

2010-08-17 Thread Anonymous
Drew Tomlinson writes: > It finally occurred to me that I needed the shell to see a new line as > the delimiter and not whitespace. Then a simple search revealed my > answer: > > O=$IFS > IFS=$(echo -en "\n\b") > > IFS=$O Old IFS value can be preserved by using `local' keyword or (...) braces,

Re: Bash Script Help - File Names With Spaces

2010-08-17 Thread Karl Vogel
>> On Tue, 17 Aug 2010 07:47:25 -0700, >> Drew Tomlinson said: D> Then I attempt to use 'basename' to extract the file name to a variable D> which I can later pass to 'ln'. This seems to work: D> basename "/archive/Multimedia/Audio/Music/Billboard Top USA D> Singles/1980-028 Kenny Loggins -

Re: Bash Script Help - File Names With Spaces

2010-08-17 Thread Timm Wimmers
Am Dienstag, den 17.08.2010, 08:22 -0700 schrieb Chip Camden: > find -E ... | while read i; do; basename $i; done The semicolon behind "do" isn't necessary. -- Timm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listin

Re: Bash Script Help - File Names With Spaces

2010-08-17 Thread Drew Tomlinson
On 8/17/2010 8:22 AM, Chip Camden wrote: Quoth Drew Tomlinson on Tuesday, 17 August 2010: I have a collection of yearly top 100 Billboard mp3s in this format (all one line - sorry if it wraps): /archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny Loggins - This Is It.mp3

Re: Bash Script Help - File Names With Spaces -- SOLVED

2010-08-17 Thread Drew Tomlinson
On 8/17/2010 7:47 AM, Drew Tomlinson wrote: I have a collection of yearly top 100 Billboard mp3s in this format (all one line - sorry if it wraps): /archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny Loggins - This Is It.mp3 I want to create symbolic links to the top 30

Re: Bash Script Help - File Names With Spaces

2010-08-17 Thread Chip Camden
Quoth Drew Tomlinson on Tuesday, 17 August 2010: > I have a collection of yearly top 100 Billboard mp3s in this format (all > one line - sorry if it wraps): > > /archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny > Loggins - This Is It.mp3 > > I want to create symbolic link

Bash Script Help - File Names With Spaces

2010-08-17 Thread Drew Tomlinson
I have a collection of yearly top 100 Billboard mp3s in this format (all one line - sorry if it wraps): /archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny Loggins - This Is It.mp3 I want to create symbolic links to the top 30 in 1966-1969 in another directory for easy m

Re: Bash logging: two questions

2010-07-21 Thread Anonymous
jimbob palmer writes: > Hello, > > I would like to run a bash script but to log output and exit codes. > Essentially I would like to run the script with bash -x, but for that > output to the log to go to a file, and the normal output as from > running a normal script to

Bash logging: two questions

2010-07-21 Thread jimbob palmer
Hello, I would like to run a bash script but to log output and exit codes. Essentially I would like to run the script with bash -x, but for that output to the log to go to a file, and the normal output as from running a normal script to go to the terminal. That's my first question :) My s

Re: Switched to Bash and Comparison of Shells

2010-06-14 Thread Dan D Niles
On Fri, 2010-06-11 at 11:46 +0930, Malcolm Kay wrote: > On Fri, 11 Jun 2010 02:49 am, Dan D Niles wrote: > > I had been using csh/tcsh for 20 years and I just switched to > > bash. The recent discussion about the differences between the > > shells prompted me to take ano

Re: Switched to Bash and Comparison of Shells

2010-06-10 Thread Malcolm Kay
On Fri, 11 Jun 2010 02:49 am, Dan D Niles wrote: > I had been using csh/tcsh for 20 years and I just switched to > bash. The recent discussion about the differences between the > shells prompted me to take another look at bash. I thought > I'd share my perception of the differe

Re: Switched to Bash and Comparison of Shells

2010-06-10 Thread Jerry
On Thu, 10 Jun 2010 13:41:32 -0400 Lowell Gilbert articulated: > bash (like most other sh-style shells) has no "which" builtin. You > end up running /usr/bin/which. bash (like most other sh-style > shells) does have a (rough) equivalent, which is "type" Personal

Re: Switched to Bash and Comparison of Shells

2010-06-10 Thread Dan Nelson
In the last episode (Jun 10), Lowell Gilbert said: > Dan D Niles writes: > > > The which command functions differently between bash and tcsh. For > > example, I have ls aliased to do color output and add some other options > > that I like. With tcsh, &#x

Re: Switched to Bash and Comparison of Shells

2010-06-10 Thread Lowell Gilbert
Dan D Niles writes: > The which command functions differently between bash and tcsh. For > example, I have ls aliased to do color output and add some other options > that I like. With tcsh, 'which ls' returns > "ls: aliased to \ls -GFB"; with bash it returns

Switched to Bash and Comparison of Shells

2010-06-10 Thread Dan D Niles
I had been using csh/tcsh for 20 years and I just switched to bash. The recent discussion about the differences between the shells prompted me to take another look at bash. I thought I'd share my perception of the differences between tcsh and bash. The big thing tcsh is lacking, and the r

Re: bash instead of csh (completely)

2010-06-05 Thread ill...@gmail.com
On 4 June 2010 14:56, Stefan Miklosovic wrote: > Hi list, > > title says it, i would like completely remove csh and install bash > instead. As far I know, csh is build in system, could I remove it > manually and install bash (of course, in reverse order :D) > > Are there suc

Re: bash instead of csh (completely)

2010-06-04 Thread Chad Perrin
ere, though I do agree with him on a lot of other topics, particularly where Perl is concerned), you still have no reason based on that screed to avoid using csh (or tcsh) as your interactive shell. Furthermore, there are reasons you shouldn't use bash for scripting. It is rather dependency-

Re: bash instead of csh (completely)

2010-06-04 Thread b. f.
many advantages ... ok, this post isnt about that :)) You're right -- it isn't about that. Don't get sucked into some stupid argument. Bash isn't Linux. Linux isn't bash. If you want to use another shell, just use it. Bear in mind that if you install it from FreeBSD Port

Re: bash instead of csh (completely)

2010-06-04 Thread C. P. Ghost
On Fri, Jun 4, 2010 at 10:54 PM, Stefan Miklosovic wrote: > What I still miss is a way how to "bend" freebsd to my needs. In > linux, it is easy > as hell, remove this, change that, and it still runs. I am afraid that > if I cut off some > parts of system, I will not benefit from it anymore. For e

Re: bash instead of csh (completely)

2010-06-04 Thread Stefan Miklosovic
t if I want to install it in /ExtraStuff ? How do I do it in "make install clean" way? Change port's make file ? no way . On 6/4/10, Michael Powell wrote: > Stefan Miklosovic wrote: > >> Hi list, >> >> title says it, i would like completely remove csh and in

Re: bash instead of csh (completely)

2010-06-04 Thread Polytropon
ned discusses the topic "Why shouldn't I program in csh?" As the OP already noted correctly, in FreeBSD scripting is done by /bin/sh, the Bourne shell. Most people scripting on FreeBSD do also use sh. In fact, I don't know anybody seriously scripting in csh. In terms of dialo

Re: bash instead of csh (completely)

2010-06-04 Thread Eric Masson
"Jerry B. Altzman" writes: Hi, > To get rid of csh? > http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ This link is about csh *programming*, as standard scripts in FreeBSD use sh, this is pointless. Regards -- Ol: ..un plan perdu au fond d'une armoire dont seul Steve Jobs a la clé. BL:

Re: bash instead of csh (completely)

2010-06-04 Thread Jerry B. Altzman
On Fri, Jun 4, 2010 at 14:59, Chris Rees wrote: > Why would you want to do that? > > To get rid of csh? http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ //jbaltz -- jerry b. altzmanjba...@gmail.com www.jbaltz.com foo mane padme hum twitter: @lorvax _

Re: bash instead of csh (completely)

2010-06-04 Thread Michael Powell
Stefan Miklosovic wrote: > Hi list, > > title says it, i would like completely remove csh and install bash > instead. As far I know, csh is build in system, could I remove it > manually and install bash (of course, in reverse order :D) > > Are there such dependencies on

Re: bash instead of csh (completely)

2010-06-04 Thread Uwe Laverenz
Am 04.06.2010 20:56, schrieb Stefan Miklosovic: title says it, i would like completely remove csh and install bash instead. As far I know, csh is build in system, could I remove it manually and install bash (of course, in reverse order :D) What do you want to achieve with this? Installing

Re: bash instead of csh (completely)

2010-06-04 Thread Polytropon
On Fri, 4 Jun 2010 20:56:02 +0200, Stefan Miklosovic wrote: > Hi list, > > title says it, i would like completely remove csh and install bash > instead. As far I know, csh is build in system, could I remove it > manually and install bash (of course, in reverse order :D) >

Re: bash instead of csh (completely)

2010-06-04 Thread Jerry McAllister
On Fri, Jun 04, 2010 at 08:56:02PM +0200, Stefan Miklosovic wrote: > Hi list, > > title says it, i would like completely remove csh and install bash > instead. As far I know, csh is build in system, could I remove it > manually and install bash (of course, in reverse order :D)

Re: bash instead of csh (completely)

2010-06-04 Thread Chris Rees
Why would you want to do that? On 4 Jun 2010 19:57, "Stefan Miklosovic" wrote: Hi list, title says it, i would like completely remove csh and install bash instead. As far I know, csh is build in system, could I remove it manually and install bash (of course, in reverse order :D)

  1   2   3   4   5   6   7   >