Search Results

Search: Posts Made By: Demon
10,614
Posted By Demon
Thank you for your suggestion. I learn a lot of...
Thank you for your suggestion.
I learn a lot of things from the reply of you kind mates.
I think it is worth learning because now I have a clearer pirture about what the stuff is going on.:)
...
10,614
Posted By Demon
Thank you very much.This help me a lot.:) And...
Thank you very much.This help me a lot.:)
And one more thing that puzzle me is when typing the following commands in bash
echo --versionscreen output --version
echo --helpscreen output --help...
10,614
Posted By Demon
I use #!/bin/bash in my script. Plus, ...
I use #!/bin/bash in my script.

Plus,
bash firstscript.sh output
Hello,World
sh firstscript.sh output
-e Hello,World
10,614
Posted By Demon
echo -e "Hello,World\a\n" goes right when I type...
echo -e "Hello,World\a\n" goes right when I type it in my bash,but goes wrong when I add it in my shell script.
10,614
Posted By Demon
I got the same output when I type the code above....
I got the same output when I type the code above.
-e testing

And if my shell is using posix by default,when I type
echo -eit should print -e ,right?
But it just print a blank line.

By the...
10,614
Posted By Demon
The first command return xpg_echo off
The first command return xpg_echo off
10,614
Posted By Demon
GNU bash, version 4.1.5(1)-release...
GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu)

---------- Post updated at 08:09 PM ---------- Previous update was at 07:53 PM ----------

Regarding your problem, perhaps your environment...
10,614
Posted By Demon
I try that and it turn out to return /bin/echo...
I try that and it turn out to return /bin/echo both

Plus,when I type
/bin/echo -e "Hello,world\a\n" in the script ,it work right
Can you tell me why ?
10,614
Posted By Demon
Both of the command return /bin/bash
Both of the command return /bin/bash
10,614
Posted By Demon
bash I typed #!/bin/bashin the script ...
bash
I typed
#!/bin/bashin the script

---------- Post updated at 11:49 AM ---------- Previous update was at 11:43 AM ----------



Yes, in the description it says
-e enable...
10,614
Posted By Demon
echo doesn't work right
Hi,when I run my first shell script,I got something that doesn't work right.
I wrote this code in the script.
echo -e "Hello,World\a\n"But the screen print like this:

-e Hello,World

The "-e"...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 02:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy