BASH: Can bash do this?
I input a long command in bash, and then I found I must run some other
command such as man, but I must not run this long command to save it in
the history, because it may harmful, Is there a way to save it in the
history without running it?
On 17 Dec 2006 19:10:48 -0800, "email@example.com" <firstname.lastname@example.org> wrote:
>I input a long command in bash, and then I found I must run some other
>command such as man, but I must not run this long command to save it in
>the history, because it may harmful, Is there a way to save it in the
>history without running it?
I have recently installed bash from IBM toolbox and I'm trying to set up
/etc/bash.bashrc but it seems (truss says so) that version for AIX
uses only rc files in user home directories. I need to set up dates in
bash history with environment variable HISTTIMEFORMAT="%FT%T" because
bash doesn't use EXTENDED_HISTORY. How to force bash to read some global
Thanks for help in advance
Filip Kata <email@example.com> typed:
> I have recently installed bash from ...(patch for Bash) XML + Bash
After looking at Expat XML parser (www.libexpat.org), I've decided to
patch a simple interface to Bash shell. Mainly, so that Gawk can't brag
about it having an interface. :-)
In C code, you would register callback functions, and Expat will call
them as it encounters various XML components. So, I made it similar in
shell. That is, you specify shell functions/commands to be called. You
still have to do some bookkeeping, but I think it's easier in shell. Of
course, you can do other things in C which you can't do in shell.
http://freshmeat.net/projects/bashdiff/ -...Bash calls TCL, TCL calls Bash, 2nd Bash never reads input
I'm sorry but it's the ONLY way I can write this. I don't know how to
read standard in in TCL; I don't know how to do complex string
manipulation in Bash. So I have to write in the languages based on
what I know.
The bash script cmds.sh will read in various files. Check it out:
# Check to see if the user has entered a valid option if any
if ! [ $1 ]; then
echo 'You must enter an option: '
echo '------------------------- '
echo " $0 -t = Transfer files "
echo " $0 -a [--transferfiles] [--delete] [-d directory] [-f
I've reinstalled all the djgpp onto my new disk. I seem to remember
that invoking bash from a dos bat file worked and it still does. What I
also remember and that seems to be correct from looking at the docs is that
the _bashrc file should be run under bash so as it can configure itself and
I can set the prompt to PS1='\w-->' cwd. The _bashrc file does not run. I
also notice from my bash book that this should use double quotes " not
single '. It does what I want using source _bashrc from the bash command
line. Any comments?
Does bash really mean
Bunch of Assholes Spouting Hogwash?
> Does bash really mean
> Bunch of Assholes Spouting Hogwash?
Yes. As much per se, as the man on the moon is frowning upon you at night..
I have been banging my head against a wall trying to make a 2-way pipe work
It works in Korn shell and shoudl work in bash but I keep gettin the same
I go :-
and get the error message
-bash: syntax error near unexpected token `&'
In ksh it is fine
My bash version is GNU bash, version 2.05b.0(1)-release (i586-suse-linux)
running on SCO Linux (I know, I know, don't hate me for it)
Any ideas ?
Tim Pailthorpe wrote:
> I have been banging my head against a wall trying to make a 2-way pipe work
> in bash.
> It works in Korn she...Bash
I would like the users get the prompt "bash" whne they log in . How can I do
"bernard" <firstname.lastname@example.org> writes:
> I would like the users get the prompt "bash" whne they log in . How can I do
> this ???
Install bash (from ports) and make it the users' default shell (with
chsh(1), vipw(8), pw(8), etc...).
Lowell Gilbert, embedded/networking software engineer
On 22 Dec 2005 10:23:19 -0500, Lowell Gilbert wrote:
>> I would like the users get the ...BASH
I haven't done anything with a shell script since I got rid of Tandy XENIX
and my Tandy Model 16. Can anyone point me to a web site that has bash for
dummies or something similar?
On Sat, 13 Sep 2003 21:25:37 GMT, cmsix wrote:
> I haven't done anything with a shell script since I got rid of Tandy XENIX
> and my Tandy Model 16. Can anyone point me to a web site that has bash for
> dummies or something similar?
"Bit Twister" <BitTwister@localhost.localdomain> wrote in message
news:slrnbm7bq...(patch for Bash) GTK+2 + Bash
I'm very excited to announce shell interface to GTK+2 (2.6.1) for Bash.
It read XML syntax describing the widget layout, and returns user selection as
shell variable or runs shell command as callback. It's designed for
simple GUI dialog or layout, with the emphasis on getting the user data
back into shell.
For the moment, the shell variable and command are disabled. It just
prints to stdout, instead. But, you can change it easily.
gtk < file.xml