msysGit Bash cannot escape its home directory?
I start the msysGit Bash using the provided batch file (the one that simulates a Linux environment). Bash starts up in msysGit's home directory (on my flashdrive). I would like to leave this directory to go to my project's directory (also on my flashdrive). So, I enter "$ cd .." This has no effect at all. I type "$ ls" and I'm definitely still in the Git folder. I try "cd ~" which brings me to my user folder, but I can't get to the root directory of my flashdrive. How can I get there with msysGit Bash?
I cannot use git-cmd.bat because the computers at my school deny access to cmd.exe. Alternative question: How can I run git-cmd without needing administrator permissions?
If there is another distributed-model version control system that works better on portable devices (especially on systems where cmd is restricted and I'm not an administrator), I'll gladly switch to it (if you know of one, please tell).
here's the scenerio - you are in bash :~/dirA$cd /dirb :/dirb$cp filex __here_i_want_trick_to_reference_dirA example of a similar trick is cd -, which puts you into the previously visited directory.
When calling the tkFileDialog.askopenfile() method in tkinter, how do I set the default directory to the home directory of the user? Is there a way to do this independent of operating system, or is
I've created a directory at Environment.getExternalStorage() called '/My Webs'. When the app starts it loads the contents of the directory files and sub directories into a list I have a button to go t
I'm looking to run a bash script in a subdirectory from a python script. This bash script should perform all its actions as if it is in its current directory. Is there any way to do this aside from pa
I have my PHP files stored under FreeBSD under this directory: /home/david/public_html/code/php In my browser, I access them through this URL: http://192.168.6.7/~david/code/php And I have an htacce
I'm working on a C kernel and I want to make it easier to compile all of the sources by using a bash script file. I need to know how to do a foreach loop and only get the files with a .c extension, an
I'm new to using Iceberg, and making packages in general. I added the files I want installed on the users machine, but am not sure how to add them to the users home directory. When I build the package
I am developing on a windows machine. The only place I need for linux command line is Git Bash. The problem is: When I open it, I am in the home directory. I have to change the directory to my workspa
I am using a Java Logger in my application with FileHandler set to /DemoApp/AAA.log. But my JVM creates empty java.log and java.log.lck files in my home directory every time i run the app. Does any o
How can I use bash tab completion on a fixed directory within a script? Suppose I have a directory ~/pdf containing pdf-files. I want to make a simple script to view these files, e.g. viewpdf: #! /bin
I have to find live.php and its path within a directory suppose module and its all sub directories such as user, blog and etc. Search also if sub directory blog contains further sub directories. I am
I have configured an IPA domain for my systems and also enabled automatically creating home directory when user logs in with --enablemkhomedir option. the problem I have is whenever a user logs in, a
I have written a simple piece of code for extracting zip files using unzip. It works fine when output directory is not set but returns error is directory is set Archive: /home/vishvesh.kumar/tempFo
I am getting this error Warning: include(/home/me/some_folder): failed to open stream: Permission denied in /var/www/html/my_web.php on line 6 I have tried modifying permissions like this chown apac
How can I get the path of home directory in Mac OS X using C language in XCode editor.
Java has the convienient System.getProperty(user.home) to get the user's home directory in a platform-independent way. What's the equivalent in Ruby? I don't have a Windows box to play around with
I did git init and git add . on my home directory, which slowed every operation down, I think, because the directory is so large. How can I undo git init of the home directory?
I know 'esc' is the shortcut to escape from 'visual' mode, but it types ^[ character instead when I press 'esc' in PUTTY somehow. Therefore, I cannot ever escape from it except that I have to turn o
Is it possible to save the last working directory when you do an exit in bash. So, the next time you login, it will be at the directory you were at when you last logged out.
I have been working to insert strings from text files into a MySQL database. However in these strings there could be random escape characters that will effect either BaSH or MySQL. Originally I was tr
I am using this code to copy a directory with all of its sub-directories from a remote server to local disk. scp -q -r userbane@ip:/var/myFolder /home/ It copies all files except 2 which gives this e
So I'm learning some bash and I'm trying to figure out how to get the directory a script is run from. So given that I have my script ~/scripts/bash/myscript, if I execute my scipt like: user@localhost
I am working on a script called to that bookmarks file system locations in bash (with limited support for zsh). You can find the source here: https://github.com/resultsreturned/to The script supports
Getting error in if clause which says: /home/files unexpected. I do not know what is wrong, here's the KornShell (ksh) script. #!/bin/ksh selectPart=SELECT. filePart=_FILE while read -r indxFile;
I'm having problem with listing home directory of current user without knowing absolute path to it. I've tried with the following, but it doesn't work: [root@blackbox source]# python Python 2.6.6 (r26
I am trying to make a bash script that moves a file or directory from source directory to destination directory and puts a symlink to it into source directory. So, <source_path> can be a file or
Under my version of msysgit, I can't use process substitution. cat <(echo 'foo') sh.exe: cannot make pipe for process substitution: Function not implemented If I upgraded to the latest version of
I'm trying to execute a bash script from java and it returns error /bin/bash: '/home/nika/NetBeansProjects/Parallel Framework/process-executor.sh': No such file or directory, I'm working on ubuntu 14.
How do I change to a directory A, run wget in directory A, then change to another directory B, and run wget in directory B? I have the following code: #!/bin/bash cd directory_A && wget --spid
I am trying to get a bash script to run in git bash while specifying a different .bashrc than the one in my home directory (or none at all) however it is proving an impossible task. To my understandin
Assume someuser has a home directory /home/someuser NAME=someuser In bash - what expression to I use combining tilde (~) and $NAME to return the users home directory? HOMEDIRECTORY=~someuser echo $HOM
In my .bashrc I added the following: export PYTHONPATH=$PYTHONPATH:/home/tbao/src/Cython-0.14.1 When I relogin, I get the error: -bash: /home/tbao/src/Cython-0.14.1: is a directory I want to add the t
$ git clone ssh://host/repo.git ~/ destination directory '/home/username/' already exists. Can anyone tell me how to make this work? I'm trying to quickly be able to replicate common dev scripts and
Im trying to install pydev using the official tutorial My issue is that i can not locate my java.home directory. I have checked Applications/eclipse to no avail. The second step is discovering the j
I need to remove escape character from the string in bash. I get a data structure, which contains url paths with / escaped so I receive the regular link: http://stackoverflow.com/questions/ask as one
What's the best way to print all the files listed in a directory and the numer of files using a for loop? Is there a better of doing this? #!/bin/bash target=/home/personal/scripts/07_22_13/ford/$1
I was installing RVM and added the line [[ -s $HOME/.rvm/scripts/rvm ]] && . $HOME/.rvm/scripts/rvm into my .bashrc file. Now RVM works fine, but i have next message find: cannot stat cu
I am trying to understand the Windows Phone 7 application sandbox in detail. So I want to understand things such as: Does each app. run as its on unique user? Where is the home (installation. data)
When I run gem install <somegem> command the gem utility tries to access my home directory. It contains some non-latin characters and installation fails because of that. For example: E:\ruby\
Sometimes I feel the urge to put some more expressiveness in my git commit messages. Unfortunately bash does not seem to like this. iblue@silence ~/git/wargames $ git commit -m Frustrating <insert
I need a bash script to get the age of the newest file in given directory (in hours or seconds). For example: -rw-r--r-- 1 root root 3.0M 2012-12-31 12:36 2012_12_31_1236_redis_dump_encrypted.tgz -rw-
You can references asset files with a file url by using android_asset, as in file:///android_asset/whatever. Is there something equivalent for the app's home directory? I'll be using the references
I am using getenv(HOME) in C to get the user's home directory in order to read/write a settings file. But is it possible that the home directory filename could contain characters that cannot be repr
I was using msysgit and git-bash in cmder when I accidentally exited out of it. Now I can't seem to figure out how to get to the unix environment I previously had. Git bash is not recognized as a com
I am trying to send a query to SQLite from the command line using bash. I need to escape both single quotes and double quotes, and escape them so that bash does not misinterpret them. Here is a typica
I've installed the latest Git Bash (msysgit). If I create a simple ruby file named test.rb with the following content: #!/usr/bin/env ruby puts `dir` puts `ls -al` Running ruby test.rb will print the
My app is written in Objective-C. How can I get the user name and home directory of the currently logged in user through directory services? Detail: My Cocoa app gets the current username and home dir
I want to get home directory of current script user (nginx/www/apache etc.) in PHP. I use $output_message = shell_exec('echo ~'); var_dump($output_message); It's working correctly on my local server
I'm new to objective-c and would like to understand how to set a file path to the app's home directory. For testing and development I've been manually putting in the path of the property list on my ha
I love git and use it on OS X pretty much constantly at home. At work, we use svn on Windows, but want to migrate to git as soon as the tools have fully matured (not just TortoiseGit, but also somethi