Skip to main content

Questions tagged [portability]

1 vote
3 answers
208 views

Let's suppose that you have a super python 2&3 one-liner that you need to use in a shell script. On system A the python command works, but on system B you have to use python3, on system C you need ...
Fravadona's user avatar
  • 1,668
1 vote
1 answer
90 views

MSYS2-built Linux applications internally rewrite Linux paths to Windows paths. This can be problematic if those are supposed to interface with other, proper-Linux applications (e.g. in my case, MSYS2 ...
Zsar's user avatar
  • 121
1 vote
2 answers
212 views

If I include a shebang line in my script like following #! /bin/sh Would it prevent from execution on other operating systems like Windows which may not have sh in bin folder? Is this better to omit ...
Patlatus's user avatar
  • 123
6 votes
3 answers
1k views

This code works fine on Linux but not Mac OS: #!/usr/bin/env bash foo=$(cat <<EOF "\[^"\]+" EOF ) printf "%s" "$foo" It fails on Mac with ./test.sh: line 6: ...
Jason Gross's user avatar
1 vote
1 answer
159 views

I have used the dd command to backup my Linux partition (openSUSE Tumbleweed) into a .img file that I saved on an external hard drive. However, I guess dd-ing it on another computer may cause problems,...
Ul Tome's user avatar
  • 137
1 vote
0 answers
306 views

I know how to change the icon of a file/folder on Linux (using Dolphin in my case). I know also how to change the icon of a file/folder on Windows 11, both directly in the parameters and using a ...
Ul Tome's user avatar
  • 137
-1 votes
1 answer
246 views

For portable wrapper scripts intended to run on UNIX systems (not necessarily Linux), should the shift command be preferred over array syntax? #!/bin/sh exec command ${1+"$@"} Compared with:...
ideasman42's user avatar
  • 1,491
-1 votes
1 answer
326 views

I have recently migrated from bash to zsh. I used to use the following token_refresh.sh script to ssh-add my private key to the session: #!/usr/bin/env bash echo "configuring ssh access.." ...
StuperUser's user avatar
1 vote
1 answer
324 views

Do somebody know what are the Operating Systems that implemented capabilities (i.e. Posix 1e)? are they compatible? will capabilities reduce portability to Linux only?
user3435121's user avatar
0 votes
0 answers
77 views

Hardware: Laptop [ Daily driver ] Desktop [ Server - Normally has Windows installed ] USB Thumb Drive [ Linux Installation Medium ] External Drive [ Linux Installation Destination ] Situation: ...
Jannies - They do it for free's user avatar
1 vote
0 answers
38 views

I decided to switch to Linux, so I installed Arch (with xfce4). Neither speakers, nor mic worked out of the box. I installed sof-firmware and was able to make speakers work, but not the mic. Meanwhile,...
InfiniteLoop's user avatar
3 votes
1 answer
493 views

I want to use VirtualBox to set up a stable software environment, which I may then export to other systems running VirtualBox. I also want to install guest additions. Are guest additions host system ...
abukaj's user avatar
  • 165
1 vote
1 answer
637 views

If you go to the download site of nodejs you can select Linux Binaries (x64) which is a tar archive that (among other files) contains a bin/ folder with a binary called nodejs. How is nodejs able to ...
Marco's user avatar
  • 158
2 votes
1 answer
2k views

Is it safe to call snprintf(NULL, 0, "…", …)? I can also ask in other way: Does snprintf write the NUL char if size is 0? The example in Linux man-pages manpage printf(3) provides an example ...
jiwopene's user avatar
  • 1,101
1 vote
1 answer
279 views

I have my Linux installed on a portable SSD, so I can switch devices (laptop at home, desktop in office) easily and don't need to consider any syncronization problems. This is called Linux To Go. It's ...
Lingfeng Fu's user avatar

15 30 50 per page
1
2 3 4 5
12