Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-23-2004, 01:46 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Posts: 13
Rep:
|
shell error messages not displayed as a message box!!!
why does linux display shell error messages like "dependency not found" in a message box in x???
in windows you would see always see a "dependency not found" message in a message box!!!
by the way, why are file names case-sensitive in the shell???
and why do you need to add "\" before every space in a file name with spaces???
|
|
|
10-23-2004, 02:02 AM
|
#2
|
Member
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481
Rep:
|
Re: shell error messages not displayed as a message box!!!
Quote:
Originally posted by user222
why does linux display shell error messages like "dependency not found" in a message box in x???
|
I didn't know it did. Which distribution are you using?
Quote:
Originally posted by user222
by the way, why are file names case-sensitive in the shell???
|
It's a design decision: in Linux, you can have the same filename, once in uppercase, once in lowercase, and they will point to two different files.
Quote:
Originally posted by user222
and why do you need to add "\" before every space in a file name with spaces???
|
Because parameters are separated by spaces. If you didn't put the backslash, your program would read the two halves of the filename as separate filenames, and hopefully not find them and throw up an error message. You've probably seen this in action...
Samsara
Last edited by Samsara; 10-23-2004 at 02:04 AM.
|
|
|
10-23-2004, 02:02 AM
|
#3
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
Re: shell error messages not displayed as a message box!!!
Quote:
Originally posted by user222
why does linux display shell error messages like "dependency not found" in a message box in x???
|
You left out not between linux and display.
Because it's a terminal, not a X server window, and doesn't display graphics.
Quote:
in windows you would see always see a "dependency not found" message in a message box!!!
|
Not if you're working from command line, such as a DOS prompt.
Quote:
by the way, why are file names case-sensitive in the shell???
|
Because Linux uses case sensitive file names - higher intelligence. This allows
you to have more possibilities of filenames. I won't do the math for you, but
if you're interested enough you can calculate how many more with case
sensitive versus not case sensitive.
Quote:
and why do you need to add "\" before every space in a file name with spaces???
|
Because Linux doesn't use ambiguous spaces in filenames. Here's a script to remove
all the spaces from filenames and replace them with the _ of higher intelligence
Code:
#!/bin/bash
IFS='
'
j=`find $1 -printf "%d\n" | sort -u | tail -n 1`
j=$((j-1))
echo "Max dir depth:" $j
for (( i=0; i<=j ; i++ ))
do
for name in `find -mindepth $i -maxdepth $i -iname "* *" -printf "%p\n"`
do
newname=`echo "$name" | tr " " "_"`
echo "$name" "$newname"
mv "$name" "$newname"
done
done
##########
|
|
|
10-23-2004, 02:06 AM
|
#4
|
LQ Newbie
Registered: Oct 2004
Posts: 13
Original Poster
Rep:
|
SORRY, I MEANT "why DOESN'T linux display shell error messages like "dependency not found" in a message box in x"!!!!
Last edited by user222; 10-23-2004 at 02:11 AM.
|
|
|
10-23-2004, 02:11 AM
|
#5
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
Quote:
Originally posted by user222
SORRY, I MEANT DOESN'T in "why does linux display shell error messages like "dependency not found" in a message box in x"!!!!
|
Quit being so rude. All capitals and exclamation marks are considered
YELLING
|
|
|
10-23-2004, 02:36 AM
|
#6
|
LQ Newbie
Registered: Oct 2004
Posts: 13
Original Poster
Rep:
|
[...]
Last edited by user222; 11-28-2004 at 10:52 AM.
|
|
|
10-23-2004, 02:37 AM
|
#7
|
LQ Newbie
Registered: Oct 2004
Posts: 13
Original Poster
Rep:
|
[...]
Last edited by user222; 11-28-2004 at 10:52 AM.
|
|
|
10-23-2004, 03:49 AM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
This is an official moderator warning.
That kind of language is completely uncalled for,
you have a chance to edit your posts and adjust
your attitude.
Tink
|
|
|
10-25-2004, 12:52 AM
|
#9
|
LQ Newbie
Registered: Oct 2004
Posts: 13
Original Poster
Rep:
|
[...]
Last edited by user222; 12-05-2004 at 11:52 PM.
|
|
|
10-25-2004, 12:53 AM
|
#10
|
LQ Newbie
Registered: Oct 2004
Posts: 13
Original Poster
Rep:
|
[...]
Last edited by user222; 11-28-2004 at 10:54 AM.
|
|
|
10-25-2004, 01:11 AM
|
#11
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
user222, this isn't M$windows. You don't have to pay tons of $ to get the kind of popup dialog you want. This is Linux; open sourse, not commercial development to someones pocketbook. If you want popups like that, and you have the programming skills to make it work, then do so and offer it back to the community. If you don't have the programming skills, but know someone who does, get them involved.
Basically, if you want window$ functionality, stay with window$. Linux is a work in process, still growing and improving. Search the boards; talk to people. Someone will hear your plea and will write the code.
Live long and prosper.
|
|
|
All times are GMT -5. The time now is 01:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|