LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 10-23-2004, 01:46 AM   #1
user222
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Rep: Reputation: 0
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???
 
Old 10-23-2004, 02:02 AM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
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.
 
Old 10-23-2004, 02:02 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
##########
 
Old 10-23-2004, 02:06 AM   #4
user222
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 10-23-2004, 02:11 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
 
Old 10-23-2004, 02:36 AM   #6
user222
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Original Poster
Rep: Reputation: 0
[...]

Last edited by user222; 11-28-2004 at 10:52 AM.
 
Old 10-23-2004, 02:37 AM   #7
user222
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Original Poster
Rep: Reputation: 0
[...]

Last edited by user222; 11-28-2004 at 10:52 AM.
 
Old 10-23-2004, 03:49 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 10-25-2004, 12:52 AM   #9
user222
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Original Poster
Rep: Reputation: 0
[...]

Last edited by user222; 12-05-2004 at 11:52 PM.
 
Old 10-25-2004, 12:53 AM   #10
user222
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Original Poster
Rep: Reputation: 0
[...]

Last edited by user222; 11-28-2004 at 10:54 AM.
 
Old 10-25-2004, 01:11 AM   #11
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove messages displayed by GRUB Very Maqbool Linux - Software 2 07-28-2005 05:37 AM
how to produce pop-up message box / alert window from shell script peb Linux - Newbie 3 02-25-2004 03:14 AM
remote shell error message slice4e Linux - General 1 05-12-2003 08:55 PM
Error messages when launching apps from shell prompt correro Linux - General 2 03-25-2003 07:20 PM
Recurring inetd error message in /var/log/messages jkcunningham Linux - Networking 6 08-27-2002 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration