LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   shell error messages not displayed as a message box!!! (https://www.linuxquestions.org/questions/linux-general-1/shell-error-messages-not-displayed-as-a-message-box-246230/)

user222 10-23-2004 01:46 AM

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???

Samsara 10-23-2004 02:02 AM

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

Bruce Hill 10-23-2004 02:02 AM

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
##########


user222 10-23-2004 02:06 AM

SORRY, I MEANT "why DOESN'T linux display shell error messages like "dependency not found" in a message box in x"!!!!

Bruce Hill 10-23-2004 02:11 AM

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

user222 10-23-2004 02:36 AM

[...]

user222 10-23-2004 02:37 AM

[...]

Tinkster 10-23-2004 03:49 AM

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

user222 10-25-2004 12:52 AM

[...]

user222 10-25-2004 12:53 AM

[...]

bigrigdriver 10-25-2004 01:11 AM

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 11:42 PM.