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
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
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
> 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
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
> 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
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
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
-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
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
> 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
&
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
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
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
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
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
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).
> >
> >
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
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}
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
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
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
> -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
> -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
>
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
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
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
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
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
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
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
> 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
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
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
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
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
:
>
> $ 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,
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
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&
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
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
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
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
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
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
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
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
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
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
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
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
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
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. :)
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
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
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
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
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
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,
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
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
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
__
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
&
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
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
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
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
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:
>
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
>
> 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
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
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
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,
>> 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 -
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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-
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
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
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
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
"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:
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
_
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
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
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)
>
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)
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 - 100 of 623 matches
Mail list logo