The default Unix shell used by Terminal in Mac OS X

learn more… | top users | synonyms

1
vote
1answer
289 views

How can I fix this CODESIGNING error?

After having successfully compiled bash and sh for OS X Mavericks our OS X Server's System Log is flooded every 2 or 3 seconds with: ... kernel[0]: CODESIGNING: rejected new signature for ...
3
votes
6answers
1k views

Can bash be replaced entirely in OS X?

Because of CVE-2014-6271 and CVE-2014-7169 on OS X I was wondering: can bash be replaced entirely by another, non-affected shell (eg dash or others)?
4
votes
1answer
343 views

How to mitigate Bash risk while waiting for a patch (sans a recompile)?

This is related to How do I recompile Bash to avoid the remote exploit CVE-2014-6271 and CVE-2014-7169?, Are Macs vulnerable to the Bash shellshock bug? and Are Bash, Bourne, and Korn shells compiled ...
49
votes
5answers
27k views

Are Macs vulnerable to the Bash shellshock bug?

Red Hat recently announced a major security-related bug in the Bash shell. Some are calling it the "shellshock" bug. Since OS X is built off of Unix, is it vulnerable to attacks that exploit this bug? ...
336
votes
7answers
245k views

How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)?

Given that Bash 3.2 (the version shipped by OSX) is vulnerable to the remote execution exploit known as "Shell Shock" (CVE-2014-6271 and CVE-2014-7169) how do I rebuild Bash and secure my system ahead ...
3
votes
1answer
83 views

Is there a command line utility to display a string or an image in the status bar in Mavericks?

Basically I want to issue a command in a bash script or an Apple Script and see some string (or icon) in the status bar aka "where the clock is". Something similar to osascript but for the status ...
1
vote
1answer
475 views

Bash Script to Auto-Update (and reboot) all Updates to Mavericks & Yosemite?

I'm seeking a script that I can execute on a newly installed Mavericks or Yosemite computer, that will install all updates, rebooting as necessary and starting again automatically. For instance, I'd ...
1
vote
3answers
215 views

How to close a file and a folder using bash?

Is it possible? I would like something which is the opposite of the command open file_or_folder_name. I have searched on the web but I got no results.
1
vote
1answer
125 views

Switching between proxy and no-proxy config in .bash_profile

I have configured proxy settings (on mavericks) within $HOME/.bash_profile (purpose: to make npm, rvm, git use the corporate proxy) and the configs are as follows: git config --global http.proxy ...
0
votes
2answers
35 views

How to access a folder which name is composed of more than 1 word via shell?

I have tried with a simple command: cd Name of the Folder but it's not working, of course. I have also been searching on the web, but the methods I found are not actually working. How can I ...
0
votes
1answer
40 views

core dumps in Mac OS X

I was wondering if core dumps are disabled by default in Mac OS X, or if we have to add the following line to our .bash_profile: ulimit -S -c 0
2
votes
1answer
157 views

Updating and running Git through Homebrew instead of XCode

On my new 2014 Mac (OS X 10.9 Mavericks), I have just installed Git using Homebrew. In order to install Homebrew, I had to download and install XCode 5. So now, when I enter the command which git, I ...
0
votes
1answer
119 views

Mac OS X Terminal - Basic commands not found by shell [duplicate]

I've had some problems recently with terminal. The shell isn't able to execute basic commands, since they are not being found. Here's an example : -bash: ls: command not found I've been doing some ...
1
vote
1answer
36 views

Installing software on a MacBook

I'm switching from PC to a MacBook and wondered the best convention for installing new software. For example, I've downloaded the Atom IDE, unzipped the 4 files and put into the ...
4
votes
2answers
98 views

How to check the exit status of an application after using 'open' in shell

I've looked all over for this and I'm not entirely sure how to do this. I want to use a bash script to open an application using 'open' and then check the exit status of the application after it has ...
6
votes
2answers
617 views

Change *.txt to *.csv

How can I rename all *.txt in a directory to *.csv files in the terminal (Mavericks). I tried following inside the directory: mv *.txt *.csv
3
votes
5answers
186 views

Shell script help

I am new to writing shell scripts for Unix and need a little help. I am not sure why cURL now all of the sudden after running the script is downloading corrupts packages which cannot be mounted and ...
0
votes
0answers
144 views

Apple installer issue in terminal where -target keeps saying; error cannot find Volume

I am trying to use the Apple Installer commands to install a package and the output is that it was successful, however, the end result is that nothing actually happens meaning the package never gets ...
2
votes
2answers
56 views

Terminal window title rapidly changes when first opening

When I open a fresh terminal window, the title at the top has this format: [house icon][username]-[command]-[terminal size] The command portion of the title initially says login, then it very quickly ...
2
votes
0answers
55 views

How to make files safe so users can download and OS will not quarantine them?

I work with Axure software that generates dynamic and navigable prototypes in HTML. Once they are done I need to send a ZIP file of those HTML files to clients via e-mail or any download internal ...
1
vote
1answer
175 views

read creation date from file name and change - batch

I have files that are named like "clip-2014-01-31 18;50;15.mp4", i.e. "clip-YYYY-MM-DD hh;mm;ss.mp4". How can I set the creation date and time according to how it is specified in the file name for ...
1
vote
4answers
212 views

Getting my old Terminal back after uninstalling fish

Recently I got tired of the smaller kinks that the Fish Shell presented me with (undiscoverable commands etc.) so I decided I wanted to change the shell back to normal and uninstall fish. However in ...
1
vote
0answers
63 views

bash autocompletion scripts in OS X

Here is what I learned so far: # settings on mac if [[ $(uname) == "Darwin" ]]; then # enable bash completion if [ -f `brew --prefix`/etc/bash_completion ]; then . `brew ...
1
vote
1answer
249 views

Why does this bash script not work as an automator service?

I know very little about bash scripting or Terminal commands, this is all very new to me so please bear with me. Original script I would like to use a script I found on littlefield.info as an ...
1
vote
1answer
125 views

How to get a fall-through behavior in case statements in bash v3?

I just tested the following syntax on Linux: case "$OSTYPE" in linux-gnu*) ;;& linux*) echo $OSTYPE; ;; esac case "$OSTYPE" in linux-gnu*) ;& linux*) echo $OSTYPE; ;; esac which works ...
1
vote
0answers
83 views

Issues with Unicode symbols in some applications running in Terminal.app and iTerm2

Darwin DeoGloria 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 Fresh user account. Terminal.app and iTerm2 with UTF-8 set. Accented ...
1
vote
3answers
62 views

echo works incorrectly with GeekTool

I am trying to use echo in GeekTool to print text without a newline like this: echo -n "test" When I run that command in Terminal it prints this: test In geek tool it prints this: -n test What is ...
0
votes
0answers
24 views

The .command file in my Login Items stops running after a while

I have a .command file that I have added to my Login Items (System Preferences > Users & Groups > Login Items) on an iMac (OS X 10.8.5). The .command file is a script that should be running at all ...
0
votes
0answers
81 views

How to provide password to dsconfigad without specifying it from command line?

It seems that dsconfigad allows you to specify the password using -password XXX and if you do not specify it, it will ask you to type the password. I tried the usually bash approach with dsconfigad ...
0
votes
3answers
119 views

“Command not found” when attempting to cd in Terminal

I am getting errors trying to set up web starter kit via Terminal. I get an error trying to install the kit: $ cd web-starter-kit $ npm install returns -bash: $: command not found. How do I get this ...
0
votes
1answer
130 views

Converting Automator Action in applescript to bash script

I just wrote an Automator app using AppleScript (along with a couple of bash lines) to start FTP with a single click. However it runs more than a tad slow. Here's the code: set ftpstatus to "off" try ...
0
votes
1answer
74 views

Problems With Terminal (/usr/bin)

I'm experimenting around with my computer and I realized that all the commands in the terminal that aren't bash builtins were stored in the /usr/bin. So I wanted to see (to confirm my realization) ...
0
votes
1answer
255 views

I get errors when trying to install GTK+3 on my Mac OSX 10.9 system

I'm trying to install GTK+3 on my Mac OSX 10.9 system to run a pyGObject project I've been developing in Ubuntu. It runs perfectly on Ubuntu, so I wanted to test cross-platform compatibility. I'm ...
1
vote
2answers
446 views

What does update_terminal_cwd do in the terminal of OS X

I am puzzled by it for quite some while now. In $PROMPT_COMMAND of the bash in OS X, there is a command called update_terminal_cwd. I am sure it's not a bash built in, and most likely only exists in ...
0
votes
1answer
66 views

How to download images from an xml feed using terminal?

How can I download png images from an xml feed that looks the following way? <ListBucketResult xmlns="http://url1.com"> <Name>imagesToUse</Name> <Prefix/> <Marker/> ...
0
votes
1answer
561 views

Fix Terminal error message “-bash: /etc/profile.d/rvm.sh: No such file or directory”

I am trying to remove the following Terminal error message: -bash: /etc/profile.d/rvm.sh: No such file or directory I recently uninstalled RVM (Ruby Version Manager) from my MacBook Air. The ...
1
vote
2answers
685 views

Attempting to run find command gives “Permission denied”

I am attempting to obtain a list of applications on my Mac using find to search for *.app. However, when running the command, I get a lot of Permission denied messages, as below. The computer is mine ...
3
votes
1answer
128 views

How can I define CLASSPATH variable

For a school assignment I need to add a folder to my classpath. It says that I should do this by adding a line to the file .bashrc. However, this file doesn't appear to exist in my computer. I also ...
1
vote
1answer
202 views

Trying to get Sublime Text 3 working from terminal

I am trying to get the Sublime Text to work with Git from the following tutorials http://www.sublimetext.com/docs/3/osx_command_line.html and ...
3
votes
1answer
366 views

-d option for split is illegal on OS X 10.9

I have bash script that works on Ubuntu but for OS X 10.9 i get the error for split command: split -b 1000000 -a 3 -d $F $F && rm $F || { echo "Error: 'split' command not installed" ; exit 1 ...
2
votes
2answers
98 views

What's a way to run an automator/bash/applescript command right when a laptop starts charging and right when it stops being charged?

I'm trying to automate running a background application only when my laptop is charging to save battery. So it will launch when I plug the laptop in, and quit when I take it out.
0
votes
1answer
46 views

Show today’s anniversaries (if any) from contacts

I would like to be able to run a script which would look through my Contacts list and output the name (and, preferably, phone number) of anyone whose ‘Anniversary’ date matches today. (The script ...
3
votes
1answer
38 views

how to run alias using bash -c from IDEA

I'm trying to run a program defined in an alias (and the alias is defined in a source file) alias myapp="/somepath/app -arg1 -arg2" Then I go to IDEA and create an External Tool Program: Bash ...
3
votes
1answer
60 views

Automatically stop a terminal script when locking MacBook Pro

I have written a bash script that I manually start when logging in onto the laptop, but I want it to stop running when I lock my laptop. This doesn't seem a very standard scenario, but I don't want ...
0
votes
0answers
209 views

Terminal Bash Issue Installing ArgComplete To Use Conda Completion

MBP 13.3 inch Mid-2012 Model, Running Latest Mavericks. Tried many methods such as - Method 1) activate-global-python-argcomplete --dest=/path/to/bash_completion.d Method 2) ...
2
votes
1answer
33 views

Terminal sometimes scrambles initial output

I switched to iTerm 2 a while ago, but would like to fix this small problem that I have with OS X's built-in Terminal. Terminal is supposed to look like this when it first opens on my machine: ...
1
vote
1answer
153 views

Automate mobile terminal?

I have a jailbroken iPhone. I use it to reboot my router when my wifi is going slow or messing up. But I'm lazy and I was looking for a way to automate the process. I use shortcuts that mobile ...
0
votes
0answers
123 views

Installing Ruby 1.9.2 and having trouble

I'm trying to install Ruby 1.9.2 and receiving the following error. "Warning! Requested ruby installation which requires another ruby available - installing ruby-2 first. Checking requirements for ...
2
votes
1answer
24 views

Date trash was last emptied bash

I'm trying to find out at what date and time the trash was last emptied. Would it be the date modified of the least recently modified file? Does moving it to the trash count as modifying it?
3
votes
3answers
169 views

Get full path of script in PATH environment variable

I was wondering if there is a built-in command in Bash (or even something OSX-specific) that would display the fully resolved path of a script that is in the current PATH environment variable. For ...