bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

noclobber vs command not found


From: jidanni
Subject: noclobber vs command not found
Date: Sun, 09 Jun 2013 08:39:10 +0800

Hello noclobber fans. It was a cheery day, until during an aptitude
"safe-upgrade",

   Processing triggers for hicolor-icon-theme ...

   (gtk-update-icon-cache:13613): GdkPixbuf-WARNING **: Cannot open
   pixbuf loader module file
   '/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No
   such file or directory

   This likely means that your installation is broken.
   Try running the command #OH NO they forgot to mention the full path!
     gdk-pixbuf-query-loaders > 
/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
   to make things work again for the time being.

So ever obedient, I do

# gdk-pixbuf-query-loaders > 
/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
bash: /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache: cannot 
overwrite existing file
# gdk-pixbuf-query-loaders >| 
/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
bash: gdk-pixbuf-query-loaders: command not found

Now you can guess the feeling:
Why didn't it (bash) tell me in the first place (first line) before I destroyed 
the file?
It (bash) was already talking to me on the first line, goading me along,
things were looking good, and then like the O'Jays Backstabbers song,
whammo there on the second line. A sucker punch!

So,
I know it is not in the traditional order of operations, but you might
consider telling the user somehow, "oh and by the way...'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]