Hot answers tagged

14

Why can we create a folder/file with the percent symbol? The % character is not a reserved character in a file name. The reserved characters for naming files, paths and namespaces are: < (less than) > (greater than) : (colon) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk) Source Naming ...


8

DavidPostill's answer is great, but may confuse newcomers a little. I'll try to rephrase. % is not a reserved character. It is an character with special meaning to the command shell (aka cmd.exe and command.com) The difference is: you cannot use reserved characters at all (but see below) you may be able to use special and escape characters - just not ...


3

In most shells, variables aren't automatically part of the environment until they're exported there (in Bourne shell terminology). For sh/bash, use: ssh $SERVER "su $ORACLE_USER -c 'export ORACLE_HOME=\"/u01/app/oracle/product/11.2.0\"; export PATH=\"/u01/app/oracle/product/11.2.0/Opatch:\$PATH\"; ...


2

I think you can try this: ssh user@host -t 'export var="value"; bash'


2

Only exported environment items are copied to new child environments. You exported BASH_USEFUL so this env-var is copied to your ./say_hello.sh sub process as expected. But you did not do the same for your function hello() which is then a simple local symbol not to be copied in new child environments. Syntax to export functions using bash uses the -f ...


2

My best advice would be to use a virtual machine. There are free virtualization softwares like Virtual Box that you could use. The only drawback is that you would need a Windows install media (I recommend an ISO file). You don't need an activation key if you just plan to use the VM in a temporary manner. EDIT: As the other answerers pointed out, you will ...


2

I should be able to type ffmpeg and see it's recognized but I'm currently still getting the "Not recognized" error. You have added a new environment variable called ffmpeg. You are supposed to add C:\ffmpeg\bin to the existing PATH environment variable. See How to Edit Your System PATH for Easy Command Line Access in Windows or What are PATH and ...


1

this spelling: %SOMEVARIABLE% is how Batch/cmd recognizes environment variables and variables in general. In Powershell this is how a variable is spelled $somevariable, environment variables get recognized like this: $env:somevariable - env: for environment. so all you have to do is change %HOMEPATH% to $env:homepath since you're working with PowerShell. ...



Only top voted, non community-wiki answers of a minimum length are eligible