when I try to enter an escape sequence in the interactive mode of dash, it keeps on spewing out the <ESC> character as ^[ displayed in plain text instead of catching it as a control character. I vaguely remember encountering this on some UNIX shell but for the life of me I can't find anything on it. So how do I properly enter escape sequences in dash's interactive mode? (it supposedly supports vi line edit mode but I can't access it at all because of the ESC situation)It's not a make-or-break thing.
"When first starting, the shell inspects argument 0, and if it begins with a dash '-', the shell is also considered a login shell" - from the dash man page. Could someone please explain this to me in a way that I actually understand?
I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.
The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.
I searched for it and found this link:url
My plan is to include this function:
Code: sub system_bash { my @args = ( "bash", "-c", shift ); system(@args); } Then I could simply change all calls to system into system_bash and it should work?
The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?
In the script there are lots of places like this:
my $error = system($cmd); if ($error) { die/warn "some error message"; }
Shouldn't there be a return in the system_bash function?
i have a script where i need to pass an argument "1234:-)"if i run this as ./shell.sh 1234:-)it wont work because invalid character. i need to handle this with expect utility so if i pass it as ./shell.sh "1234:-)"no issue in bash but expect does not recognize this.
I am bouncing a file across platforms (windows->solaris->mainframe), and the file is starting out with a "special" character (the registered trademark "circle R") in some of the records. This character is not in the EBCDIC character set on the MF, so it is unrecognizable. The MF developer I am working with asked if it is possible to replace the character with a specific hex value (AF) before it gets to the MF.
I was putzing around with sed, tr, etc. on the ksh command line, hoping to find an easy way to get one of them to substitute hex instead of ASCII. I have found that the usual shell utilities recognize the trademark character, so homing in on what to replace is solved. But I cannot get anything to actually substitute in the hex sequence I want. E.g. I was thinking something like...
>cat special_file | sed 's/R/AF/g'
But my version of sed does not seem to have hex "editing" capability.
Inside a loop i'm populating a string variable. Because csh doesn't have very good support for arrays I thought of doing this. I want to add a new line character to the end of the concatenation each time the loop iterates. Then at the end print this variable out.
I tried " and some resources said it was just a "". Neither work. What am I doing wrong?
i was attempting to "speed up boot time" by using the "dash" shell instead of "bash"there is a post on here which describes this.i installed the scripts and uhhhh....rebootednow it seems that i kinda sorta forgot to install "dash" before reboot and now ihave no system shell.no root user accessonly my regular user works, kinda...it seems that i cannot edit anything eitherit won't do any temp dataso with mc i cannot save any edited files.....prompt looks like thismichael@(none):i am hoping i just need to install dash....but with limited power at the command prompt this may be interesting.
I would like to know what shell command I could use for finding a phrase (which is a URL) in many files, with a different phrase. I have tried the "sed" command, but it does not like the forward slash.
I was messing around with the alternate character panel app and made a custom character set. I then wanted to put it on a new panel and created a new panel. I moved the character set to that panel, and then started to mess around with the panel settings (auto hide, show hide buttons, and expand, to be specific.) So far so good, until I moved the panel from the right side of the screen to the top. I already had a panel here, and it seemed not to like hiding a panel when there was already one on the top.
When the new panel hid itself, all my panels stopped responding (any clicks on them did nothing) and my processor started going at 100%. I tried a reboot and the only thing that changed is that now I can't even see my panels. I'm guessing I need to change the settings back manually through the prompt, but I don't know how to do that. I am using 10.04 and have not upgraded gnome since upgrading to 10.04.
I did install awn and setup. Nice look I got, but, some mess I must did, and the top/bottom panel disappeared, and the dash did too. After some search on the web, got back top panel, although it is not automatic, I must to start it.
I have this crazy idea to map an em dash to AltGr+Dash, replacing the yen symbol currently produced by that key combination. Is there a way to do that?
Unless, of course, there is another way to produce an em dash with the US International keyboard? Not including OpenOffice's autocorrect feature.
i get the hashed string with 3 white spaces and a dash, how do i remove the 3 whitespaces and dash? I need it to match with md5 over at mysql server but it fails, i'm guessing the problem is with the whitespaces and the dash
I have Ubuntu 11.04, upgraded from 10.10, and I'm logging into the default Ubuntu, Unity. In Dash, if I search for "firefox", I get three results:
Firefox Web Browser Mozilla Firefox Mozilla Firefox (Safe Mode)
Clicking Firefox Web Browser brings up Firefox just fine. But both Mozilla Firefoxes do nothing. I have a feeling that they're left over from Wine, but I'm not sure. The Uninstall Wine Software program doesn't show Firefox, but I may have uninstalled it through there a long time ago.
I want to remove these shortcuts from Dash. I tried checking the Main Menu program, but Mozilla Firefox isn't in there (though Firefox Web Browser is). I looked in /usr/share/menu/, and found a file called "firefox". That file specifies a title of "Firefox Browser", so I'm not sure if it even applies. The command it gives, "/usr/bin/firefox", is good, anyway. I don't see any other firefox related file there.
So, does anyone know how I remove those shortcuts from Dash?
I have read about it, looked at screen shots of it but I don't think Unity runs on a virtual machine yet so I have not laid hands on it. Still it looks to me like a remake of the old Windows 3.x "program groups" concept (at least it was called something like that back before the fall of the Roman empire). Looks like a waste of space to me to have all the program and file icons in a box instead of tucked out of the way along a panel.
I upgraded to 11.04 with pretty much no issues. But, I do have one: When I opened "Files and Folders" in Dash and clicked on a .jpg image, a GNOME-looking dialogue popped up asking me which program I wanted to use to displayed the image. So, I went to make sure that opening an image on my desktop had the correct results. It did, and opens in Eye of Gnome. I messed up and made a typo, and now when I try to click on ANY folder or file in Dash, it says that it can't find the program "E" (which was my mistake/typo/whatever/I didn't finish typing and had a twitch or something xD). I cannot figure out how to set Dash to open [x file] with [x program].
Starting today, I have a new problem with "Files & Folders". No matter what file I click on, I get the same error message. For example, "Could not display "/work/photos/2011/March_LA/DSC_1585.JPG" The location is not a folder." Of course it's not a folder, since it is obviously an image file. If I navigate to this same file via Nautilus and double-click, it is opened properly. Is there some way to reset everything Unity back to some sort of default state? The only thing I did recently was to uninstall Thorin (XFCE file manager) which I had previously said to use for folders selected in the Dash. By the way, actual folders now work fine (and come up in Nautilus), but it now thinks everything is a folder. It doesn't make any difference what kind of file (.JPG, .mp4, .gnumeric,...) always the same "not a folder" error.
I just installed Ubuntu on my cr-48 laptop and i wanted to map the Search button to open the Unity Dash. It was initally mapped to it, but when I tried to map some of the function keys to control volume and screen brightness it changed it when I imported the Cr-48 keyboard using keytouch.When I go into the System Settings> Keyboard Shortcuts I've tried to add a custom shortcut but I don't know what command to put into the prompt when I make it so that the Unity Dash will open. At the moment all the special keys (forward, backward, refresh, backlight, and volume) are working like i want them to, its just the search button i want to change.
In Fedora 14 I used to have some links to often used folders in the top panel, and now I would like to have some shortcuts in the Gnome 3 dash. I tried adding a custom launcher to the applications menu using alacarte, but it doesn't show up there. There is, however, an entry in alacarte-made.desktop. Is there any way to accomplish this?
I have just recently installed Linux Lime along with windows 7 Home Premium. Before, there would be a menu asking me which operating system I would like to use. When I click linux it goes to linux and windows 7 goes to windows 7. Now when I click Linux, the black screen you get at the beginning shows a - (dash) constantly flashing on a black screen and won't boot to linux. This is normal as it does that for a second then boots. Now its stuck on that flashing dash on a black screen and won't boot.
I have thousands files in which there are numbers and a dash followed by file name (which are different from each other), but have the same suffix. I would like to remove all the numbers and dash that precedes the file names.
i am using natty 11.04. can you please guide me how to clear recent history in dash under search files folders?also tell me how to customize dash application menu etc...
In natty, if I hit the super key once, it opens the launcher, but it also opens the dash. And the launcher doesn't work the same when the dash is open. It takes two clicks on a program icon to open the program when the dash is open, and only one click when the dash is closed. Just enough to keep me from getting into a rhythm.Hitting the super key twice will open the launcher and close the dash, but only if you don't hit the super key twice too quickly. Is there some way I can configure unity so the super key (or some other key) opens the launcher but does not open the dash?
I did my best to search for any solutions but came up empty-handed. Is it possible to reduce the size of the dash icons in Natty? They are unnecessarily massive for my taste. Please note that I am not talking about the launcher icons which can be resized in Tweak.
Is it possible to remove the workspace switcher icon from the launcher? [solved] I've removed the places icons as per this thread and wouldn't mind removing this icon as well.
Now my desktop wont even boot up... I get stuck on a flashing input dash... or whatever, but cant type anything. It looks like this _ only flashing. How do I go about fixing this?